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
ca34ed61
Commit
ca34ed61
authored
2 years ago
by
niikonst
Browse files
Options
Downloads
Patches
Plain Diff
fix Viskomat XL setup for Non-Newtonian fluid
parent
23894b6b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!171
Newest Update
,
!83
Fix MPICommunicator
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/cpu/ViskomatXL/viskomat.cpp
+19
-12
19 additions, 12 deletions
apps/cpu/ViskomatXL/viskomat.cpp
with
19 additions
and
12 deletions
apps/cpu/ViskomatXL/viskomat.cpp
+
19
−
12
View file @
ca34ed61
...
@@ -69,15 +69,19 @@ void bflow(string configname)
...
@@ -69,15 +69,19 @@ void bflow(string configname)
//double nuLB = OmegaLB * R * 1e3 * R * 1e3 / Re;
//double nuLB = OmegaLB * R * 1e3 * R * 1e3 / Re;
// double dx = deltax * 1e-3;
double
dx
=
deltax
*
1e-3
;
// double nuLB = OmegaLB * (R / dx)*(R / dx) / Re;
double
dx
=
1.0
*
1e-3
;
double
nuLB
=
OmegaLB
*
(
R
/
dx
)
*
(
R
/
dx
)
/
Re
;
double
nuLB
=
OmegaLB
*
(
R
/
dx
)
*
(
R
/
dx
)
/
Re
;
double
Bm
=
tau0
/
(
mu
*
Omega
);
double
tau0LB
=
Bm
*
nuLB
*
OmegaLB
;
//double dx = 1.0 * 1e-3;
//double nuLB = OmegaLB * (R / dx)*(R / dx) / Re;
//acustic scaling
//acustic scaling
OmegaLB
/=
2.0
;
//
OmegaLB /= 2.0;
nuLB
*=
2.0
;
//
nuLB *= 2.0;
SPtr
<
LBMUnitConverter
>
conv
=
SPtr
<
LBMUnitConverter
>
(
new
LBMUnitConverter
());
SPtr
<
LBMUnitConverter
>
conv
=
SPtr
<
LBMUnitConverter
>
(
new
LBMUnitConverter
());
//SPtr<LBMUnitConverter> conv = SPtr<LBMUnitConverter>(new LBMUnitConverter(1, 1461, 970, 1e3));
//SPtr<LBMUnitConverter> conv = SPtr<LBMUnitConverter>(new LBMUnitConverter(1, 1461, 970, 1e3));
...
@@ -97,13 +101,13 @@ void bflow(string configname)
...
@@ -97,13 +101,13 @@ void bflow(string configname)
SPtr
<
Rheology
>
thix
=
Rheology
::
getInstance
();
SPtr
<
Rheology
>
thix
=
Rheology
::
getInstance
();
//thix->setPowerIndex(n);
//thix->setPowerIndex(n);
//thix->setViscosityParameter(k);
//thix->setViscosityParameter(k);
thix
->
setYieldStress
(
tau0
);
thix
->
setYieldStress
(
tau0
LB
);
//thix->setOmegaMin(omegaMin);
//thix->setOmegaMin(omegaMin);
SPtr
<
BCAdapter
>
noSlipBCAdapter
(
new
NoSlipBCAdapter
());
SPtr
<
BCAdapter
>
noSlipBCAdapter
(
new
NoSlipBCAdapter
());
noSlipBCAdapter
->
setBcAlgorithm
(
SPtr
<
BCAlgorithm
>
(
new
NoSlipBCAlgorithm
()));
noSlipBCAdapter
->
setBcAlgorithm
(
SPtr
<
BCAlgorithm
>
(
new
NoSlipBCAlgorithm
()));
//noSlipBCAdapter->setBcAlgorithm(SPtr<BCAlgorithm>(new RheologyHerschelBulkleyModelNoSlipBCAlgorithm()));
//noSlipBCAdapter->setBcAlgorithm(SPtr<BCAlgorithm>(new RheologyHerschelBulkleyModelNoSlipBCAlgorithm()));
//
noSlipBCAdapter->setBcAlgorithm(SPtr<BCAlgorithm>(new RheologyBinghamModelNoSlipBCAlgorithm()));
noSlipBCAdapter
->
setBcAlgorithm
(
SPtr
<
BCAlgorithm
>
(
new
RheologyBinghamModelNoSlipBCAlgorithm
()));
SPtr
<
BCAdapter
>
slipBCAdapter
(
new
SlipBCAdapter
());
SPtr
<
BCAdapter
>
slipBCAdapter
(
new
SlipBCAdapter
());
slipBCAdapter
->
setBcAlgorithm
(
SPtr
<
BCAlgorithm
>
(
new
SimpleSlipBCAlgorithm
()));
slipBCAdapter
->
setBcAlgorithm
(
SPtr
<
BCAlgorithm
>
(
new
SimpleSlipBCAlgorithm
()));
...
@@ -167,8 +171,8 @@ void bflow(string configname)
...
@@ -167,8 +171,8 @@ void bflow(string configname)
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new CumulantLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new CumulantLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new CompressibleCumulant4thOrderViscosityLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new CompressibleCumulant4thOrderViscosityLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new IncompressibleCumulantLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new IncompressibleCumulantLBMKernel());
SPtr
<
LBMKernel
>
kernel
=
SPtr
<
LBMKernel
>
(
new
CumulantK17LBMKernel
());
//
SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new CumulantK17LBMKernel());
//
SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new RheologyBinghamModelLBMKernel());
SPtr
<
LBMKernel
>
kernel
=
SPtr
<
LBMKernel
>
(
new
RheologyBinghamModelLBMKernel
());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new HerschelBulkleyModelLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new HerschelBulkleyModelLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new BinghamModelLBMKernel());
//SPtr<LBMKernel> kernel = SPtr<LBMKernel>(new BinghamModelLBMKernel());
kernel
->
setBCProcessor
(
bcProc
);
kernel
->
setBCProcessor
(
bcProc
);
...
@@ -265,11 +269,14 @@ void bflow(string configname)
...
@@ -265,11 +269,14 @@ void bflow(string configname)
UBLOG
(
logINFO
,
"N = "
<<
N
<<
" rpm"
);
UBLOG
(
logINFO
,
"N = "
<<
N
<<
" rpm"
);
UBLOG
(
logINFO
,
"Omega = "
<<
Omega
<<
" rad/s"
);
UBLOG
(
logINFO
,
"Omega = "
<<
Omega
<<
" rad/s"
);
UBLOG
(
logINFO
,
"mu = "
<<
mu
<<
" Pa s"
);
UBLOG
(
logINFO
,
"mu = "
<<
mu
<<
" Pa s"
);
UBLOG
(
logINFO
,
"tau0 = "
<<
tau0
<<
" Pa"
);
UBLOG
(
logINFO
,
"rho = "
<<
rho
<<
" kg/m^3"
);
UBLOG
(
logINFO
,
"Re = "
<<
Re
);
UBLOG
(
logINFO
,
"Re = "
<<
Re
);
UBLOG
(
logINFO
,
"rho = "
<<
rhoLB
);
UBLOG
(
logINFO
,
"Bm = "
<<
Bm
);
UBLOG
(
logINFO
,
"rhoLB = "
<<
rhoLB
);
UBLOG
(
logINFO
,
"uLB = "
<<
OmegaLB
);
UBLOG
(
logINFO
,
"uLB = "
<<
OmegaLB
);
UBLOG
(
logINFO
,
"nuLB = "
<<
nuLB
);
UBLOG
(
logINFO
,
"nuLB = "
<<
nuLB
);
UBLOG
(
logINFO
,
"tau0 = "
<<
tau0
);
UBLOG
(
logINFO
,
"tau0
LB
= "
<<
tau0
LB
);
UBLOG
(
logINFO
,
"deltax = "
<<
deltax
<<
" mm"
);
UBLOG
(
logINFO
,
"deltax = "
<<
deltax
<<
" mm"
);
UBLOG
(
logINFO
,
"number of levels = "
<<
refineLevel
+
1
);
UBLOG
(
logINFO
,
"number of levels = "
<<
refineLevel
+
1
);
UBLOG
(
logINFO
,
"number of threads = "
<<
numOfThreads
);
UBLOG
(
logINFO
,
"number of threads = "
<<
numOfThreads
);
...
...
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