Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iRMB
VirtualFluids
Commits
69855169
Commit
69855169
authored
1 year ago
by
Hkorb
Browse files
Options
Downloads
Patches
Plain Diff
fix wrong type
parent
92131911
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!273
Fix turbulent viscosity
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lbm/collision/TurbulentViscosity.h
+6
-1
6 additions, 1 deletion
src/lbm/collision/TurbulentViscosity.h
with
6 additions
and
1 deletion
src/lbm/collision/TurbulentViscosity.h
+
6
−
1
View file @
69855169
...
@@ -71,7 +71,7 @@ inline __host__ __device__ real calcTurbulentViscositySmagorinsky(real Cs, real
...
@@ -71,7 +71,7 @@ inline __host__ __device__ real calcTurbulentViscositySmagorinsky(real Cs, real
}
}
template
<
typename
T
>
template
<
typename
T
>
__host__
__device__
int
max
(
T
a
,
T
b
)
__host__
__device__
T
max
(
T
a
,
T
b
)
{
{
return
(
a
>
b
)
?
a
:
b
;
return
(
a
>
b
)
?
a
:
b
;
}
}
...
@@ -87,6 +87,11 @@ inline __host__ __device__ real calcTurbulentViscosityQR(real C, real dxux, real
...
@@ -87,6 +87,11 @@ inline __host__ __device__ real calcTurbulentViscosityQR(real C, real dxux, real
return
C
*
max
(
R
,
c0o1
)
/
Q
;
return
C
*
max
(
R
,
c0o1
)
/
Q
;
}
}
inline
__host__
__device__
real
calculateOmegaWithturbulentViscosity
(
const
real
omega_old
,
real
turbulenceViscosity
)
{
return
omega_old
/
(
c1o1
+
c3o1
*
omega_old
*
turbulenceViscosity
);
}
}
// namespace vf::lbm
}
// namespace vf::lbm
#endif //TURBULENT_VISCOSITY_H
#endif //TURBULENT_VISCOSITY_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment