Skip to content

Commit 13e5989

Browse files
committed
shorter simulation times on test harness for redBloodCell cases
with the original simulation time the case gets to long/large for reasonable testing ...
1 parent 01117a7 commit 13e5989

File tree

6 files changed

+276
-0
lines changed

6 files changed

+276
-0
lines changed
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
location "system";
14+
object controlDict;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
application pisoFoam;
19+
20+
startFrom latestTime;
21+
22+
startTime 0;
23+
24+
stopAt endTime;
25+
26+
endTime 50000;
27+
28+
deltaT 10;
29+
30+
writeControl adjustableRunTime;
31+
32+
writeInterval 10000;
33+
34+
purgeWrite 0;
35+
36+
writeFormat ascii;
37+
38+
writePrecision 6;
39+
40+
writeCompression uncompressed;
41+
42+
timeFormat general;
43+
44+
timePrecision 6;
45+
46+
runTimeModifiable yes;
47+
48+
adjustTimeStep no;
49+
50+
maxCo 1.0;
51+
52+
maxDeltaT 10;
53+
54+
55+
// ************************************************************************* //
56+
DimensionedConstants
57+
{
58+
unitSet micro; // SI;
59+
60+
SICoeffs
61+
{
62+
universal
63+
{
64+
c c [ 0 1 -1 0 0 0 0 ] 2.99792e+08;
65+
G G [ -1 3 -2 0 0 0 0 ] 6.67429e-11;
66+
h h [ 1 2 -1 0 0 0 0 ] 6.62607e-34;
67+
}
68+
electromagnetic
69+
{
70+
e e [ 0 0 1 0 0 1 0 ] 1.60218e-19;
71+
}
72+
atomic
73+
{
74+
me me [ 1 0 0 0 0 0 0 ] 9.10938e-31;
75+
mp mp [ 1 0 0 0 0 0 0 ] 1.67262e-27;
76+
}
77+
physicoChemical
78+
{
79+
mu mu [ 1 0 0 0 0 0 0 ] 1.66054e-27;
80+
k k [ 1 2 -2 -1 0 0 0 ] 1.38065e-23;
81+
}
82+
standard
83+
{
84+
//- Standard pressure [Pa]
85+
Pstd Pstd [ 1 -1 -2 0 0 0 0 ] 100000;
86+
//- Standard temperature [degK]
87+
Tstd Tstd [ 0 0 0 1 0 0 0 ] 298.15;
88+
}
89+
}
90+
91+
microCoeffs
92+
{
93+
universal
94+
{
95+
c c [ 0 1 -1 0 0 0 0 ] 2.99792e+08;
96+
G G [ -1 3 -2 0 0 0 0 ] 6.67429e-20;
97+
h h [ 1 2 -1 0 0 0 0 ] 6.62607e-13;
98+
}
99+
electromagnetic
100+
{
101+
e e [ 0 0 1 0 0 1 0 ] 1.60218e-19;
102+
}
103+
atomic
104+
{
105+
me me [ 1 0 0 0 0 0 0 ] 9.10938e-16;
106+
mp mp [ 1 0 0 0 0 0 0 ] 1.67262e-12;
107+
}
108+
physicoChemical
109+
{
110+
mu mu [ 1 0 0 0 0 0 0 ] 1.66054e-12;
111+
k k [ 1 2 -2 -1 0 0 0 ] 1.38065e-23;
112+
}
113+
standard
114+
{
115+
//- Standard pressure [Pa]
116+
Pstd Pstd [ 1 -1 -2 0 0 0 0 ] 100000;
117+
//- Standard temperature [degK]
118+
Tstd Tstd [ 0 0 0 1 0 0 0 ] 298.15;
119+
}
120+
}
121+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
#- define variables
4+
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
5+
6+
# check if mesh was built
7+
if [ -f "$casePath/CFD/constant/polyMesh/boundary" ]; then
8+
echo "mesh was built before - using old mesh"
9+
else
10+
echo "mesh needs to be built"
11+
cd $casePath/CFD
12+
blockMesh
13+
fi
14+
15+
# adapt settings for test harness run
16+
cp $casePath/CFD/system/controlDict_test $casePath/CFD/system/controlDict

tutorials/cfdemSolverIBContinuousForcing/redBloodCellPoiseuilleFlow/run.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"solver" : "cfdemSolverIBContinuousForcing",
1313
"type" : "CFDEMcoupling/mpi",
1414
"nprocs" : 2,
15+
"pre_scripts" : ["prerun.sh"],
1516
"data" : {
1617
"series" : [
1718
{"name" : "position", "file" : "particle_position.txt", "columns" : ["t", "x1", "y1", "z1", "x2", "y2", "z2", "x3", "y3", "z3", "x4", "y4", "z4", "x5", "y5", "z5", "x6", "y6", "z6", "x7", "y7", "z7", "x8", "y8", "z8", "x9", "y9", "z9", "x10", "y10", "z10"]}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
========= |
3+
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4+
\\ / O peration | Website: https://openfoam.org
5+
\\ / A nd | Version: 6
6+
\\/ M anipulation |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class dictionary;
13+
location "system";
14+
object controlDict;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
application pisoFoam;
19+
20+
startFrom latestTime;
21+
22+
startTime 0;
23+
24+
stopAt endTime;
25+
26+
endTime 5000;
27+
28+
deltaT 1;
29+
30+
writeControl adjustableRunTime;
31+
32+
writeInterval 100;
33+
34+
purgeWrite 0;
35+
36+
writeFormat ascii;
37+
38+
writePrecision 6;
39+
40+
writeCompression uncompressed;
41+
42+
timeFormat general;
43+
44+
timePrecision 6;
45+
46+
runTimeModifiable yes;
47+
48+
adjustTimeStep no;
49+
50+
maxCo 1.0;
51+
52+
maxDeltaT 10;
53+
54+
55+
// ************************************************************************* //
56+
DimensionedConstants
57+
{
58+
unitSet micro; // SI;
59+
60+
SICoeffs
61+
{
62+
universal
63+
{
64+
c c [ 0 1 -1 0 0 0 0 ] 2.99792e+08;
65+
G G [ -1 3 -2 0 0 0 0 ] 6.67429e-11;
66+
h h [ 1 2 -1 0 0 0 0 ] 6.62607e-34;
67+
}
68+
electromagnetic
69+
{
70+
e e [ 0 0 1 0 0 1 0 ] 1.60218e-19;
71+
}
72+
atomic
73+
{
74+
me me [ 1 0 0 0 0 0 0 ] 9.10938e-31;
75+
mp mp [ 1 0 0 0 0 0 0 ] 1.67262e-27;
76+
}
77+
physicoChemical
78+
{
79+
mu mu [ 1 0 0 0 0 0 0 ] 1.66054e-27;
80+
k k [ 1 2 -2 -1 0 0 0 ] 1.38065e-23;
81+
}
82+
standard
83+
{
84+
//- Standard pressure [Pa]
85+
Pstd Pstd [ 1 -1 -2 0 0 0 0 ] 100000;
86+
//- Standard temperature [degK]
87+
Tstd Tstd [ 0 0 0 1 0 0 0 ] 298.15;
88+
}
89+
}
90+
91+
microCoeffs
92+
{
93+
universal
94+
{
95+
c c [ 0 1 -1 0 0 0 0 ] 2.99792e+08;
96+
G G [ -1 3 -2 0 0 0 0 ] 6.67429e-20;
97+
h h [ 1 2 -1 0 0 0 0 ] 6.62607e-13;
98+
}
99+
electromagnetic
100+
{
101+
e e [ 0 0 1 0 0 1 0 ] 1.60218e-19;
102+
}
103+
atomic
104+
{
105+
me me [ 1 0 0 0 0 0 0 ] 9.10938e-16;
106+
mp mp [ 1 0 0 0 0 0 0 ] 1.67262e-12;
107+
}
108+
physicoChemical
109+
{
110+
mu mu [ 1 0 0 0 0 0 0 ] 1.66054e-12;
111+
k k [ 1 2 -2 -1 0 0 0 ] 1.38065e-23;
112+
}
113+
standard
114+
{
115+
//- Standard pressure [Pa]
116+
Pstd Pstd [ 1 -1 -2 0 0 0 0 ] 100000;
117+
//- Standard temperature [degK]
118+
Tstd Tstd [ 0 0 0 1 0 0 0 ] 298.15;
119+
}
120+
}
121+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
#- define variables
4+
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
5+
6+
# check if mesh was built
7+
if [ -f "$casePath/CFD/constant/polyMesh/boundary" ]; then
8+
echo "mesh was built before - using old mesh"
9+
else
10+
echo "mesh needs to be built"
11+
cd $casePath/CFD
12+
blockMesh
13+
fi
14+
15+
# adapt settings for test harness run
16+
cp $casePath/CFD/system/controlDict_test $casePath/CFD/system/controlDict

tutorials/cfdemSolverIBContinuousForcing/redBloodCellShearFlow/run.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"solver" : "cfdemSolverIBContinuousForcing",
1313
"type" : "CFDEMcoupling/mpi",
1414
"nprocs" : 2,
15+
"pre_scripts" : ["prerun.sh"],
1516
"data" : {
1617
"series" : [
1718
{"name" : "position", "file" : "particle_position.txt", "columns" : ["t", "x1", "y1", "z1", "x2", "y2", "z2", "x3", "y3", "z3", "x4", "y4", "z4", "x5", "y5", "z5", "x6", "y6", "z6", "x7", "y7", "z7", "x8", "y8", "z8", "x9", "y9", "z9", "x10", "y10", "z10"]}

0 commit comments

Comments
 (0)