mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
moved tuts in line with change in application structure
This commit is contained in:
16
tutorials/discreteMethods/molecularDynamics/gnemdFoam/Allclean
Executable file
16
tutorials/discreteMethods/molecularDynamics/gnemdFoam/Allclean
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cd constrictedChannel
|
||||
rm -rf 0
|
||||
rm -rf Ar-Ar Ar-Ne Ne-Ne
|
||||
rm -rf constant/idList
|
||||
cleanCase
|
||||
cd ..
|
||||
|
||||
cd nanoNozzle
|
||||
rm -rf processor[0-9]
|
||||
cleanCase
|
||||
cd ..
|
||||
25
tutorials/discreteMethods/molecularDynamics/gnemdFoam/Allrun
Executable file
25
tutorials/discreteMethods/molecularDynamics/gnemdFoam/Allrun
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application="gnemdFoam"
|
||||
|
||||
cd constrictedChannel
|
||||
runApplication blockMesh
|
||||
runApplication molConfig
|
||||
runApplication $application
|
||||
cd ..
|
||||
|
||||
cd nanoNozzle
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication decomposePar
|
||||
hostname > system/machines
|
||||
|
||||
runParallel molConfig 4 system/machines
|
||||
runParallel $application 4 system/machines
|
||||
|
||||
runApplication reconstructPar
|
||||
cd ..
|
||||
|
||||
@ -0,0 +1,163 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 0.25e-9;
|
||||
|
||||
vertices
|
||||
(
|
||||
(0 0 0) //0
|
||||
(15 0 0)
|
||||
(15 3 0)
|
||||
(0 3 0)
|
||||
(0 0 12)
|
||||
(15 0 12)
|
||||
(15 3 12)
|
||||
(0 3 12) //7
|
||||
(22 0 0)
|
||||
(22 3 0)
|
||||
(22 0 12)
|
||||
(22 3 12) //11
|
||||
(31 0 0)
|
||||
(31 3 0)
|
||||
(31 0 12)
|
||||
(31 3 12) //15
|
||||
(20 9 0)
|
||||
(17 9 0)
|
||||
(20 9 12)
|
||||
(17 9 12) //19
|
||||
(0 9 0)
|
||||
(0 9 12) //21
|
||||
(31 9 0)
|
||||
(31 9 12) //23
|
||||
(17 18 0)
|
||||
(0 18 0)
|
||||
(17 18 12)
|
||||
(0 18 12) //27
|
||||
(31 18 0)
|
||||
(20 18 0)
|
||||
(31 18 12)
|
||||
(20 18 12) //31
|
||||
(17 21 0)
|
||||
(0 21 0)
|
||||
(17 21 12)
|
||||
(0 21 12) //35
|
||||
(31 21 0)
|
||||
(20 21 0)
|
||||
(31 21 12)
|
||||
(20 21 12) //39
|
||||
(17 25 0)
|
||||
(0 25 0)
|
||||
(17 25 12)
|
||||
(0 25 12) // 43
|
||||
(31 25 0)
|
||||
(20 25 0)
|
||||
(31 25 12)
|
||||
(20 25 12) // 47
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) bottomWall (15 3 6) simpleGrading (1 1 1) //1
|
||||
hex (1 8 9 2 5 10 11 6) bottomWall (3 3 6) simpleGrading (1 1 1) //2
|
||||
hex (2 9 16 17 6 11 18 19) bottomWall (3 6 6) simpleGrading (1 1 1) //3
|
||||
hex (8 12 13 9 10 14 15 11) bottomWall (9 3 6) simpleGrading (1 1 1) //4
|
||||
hex (3 2 17 20 7 6 19 21) liquid (15 6 6) simpleGrading (1 1 1) //5
|
||||
hex (20 17 24 25 21 19 26 27) liquid (15 9 6) simpleGrading (1 1 1) //6
|
||||
hex (25 24 32 33 27 26 34 35) liquid (15 3 6) simpleGrading (1 1 1) //6A
|
||||
hex (17 16 29 24 19 18 31 26) liquid (3 9 6) simpleGrading (1 1 1) //7
|
||||
hex (16 22 28 29 18 23 30 31) liquid (9 9 6) simpleGrading (1 1 1) //8
|
||||
hex (29 28 36 37 31 30 38 39) liquid (9 3 6) simpleGrading (1 1 1) //8A
|
||||
hex (9 13 22 16 11 15 23 18) liquid (9 6 6) simpleGrading (1 1 1) //9
|
||||
hex (33 32 40 41 35 34 42 43) topWall (15 3 6) simpleGrading (1 1 1) //10
|
||||
hex (32 37 45 40 34 39 47 42) topWall (3 3 6) simpleGrading (1 1 1) //11
|
||||
hex (24 29 37 32 26 31 39 34) topWall (3 3 6) simpleGrading (1 1 1) //12
|
||||
hex (37 36 44 45 39 38 46 47) topWall (9 3 6) simpleGrading (1 1 1) //13
|
||||
);
|
||||
|
||||
patches
|
||||
(
|
||||
cyclic
|
||||
periodicX
|
||||
(
|
||||
(0 4 7 3)
|
||||
(3 7 21 20)
|
||||
(20 21 27 25)
|
||||
(25 27 35 33)
|
||||
(33 35 43 41)
|
||||
(12 13 15 14)
|
||||
(13 22 23 15)
|
||||
(22 28 30 23)
|
||||
(28 36 38 30)
|
||||
(36 44 46 38)
|
||||
)
|
||||
|
||||
cyclic
|
||||
periodicZ
|
||||
(
|
||||
(0 3 2 1)
|
||||
(1 2 9 8)
|
||||
(8 9 13 12)
|
||||
(2 17 16 9)
|
||||
(2 3 20 17)
|
||||
(9 16 22 13)
|
||||
(17 20 25 24)
|
||||
(16 29 28 22)
|
||||
(16 17 24 29)
|
||||
(24 25 33 32)
|
||||
(28 29 37 36)
|
||||
(32 33 41 40)
|
||||
(36 37 45 44)
|
||||
(32 40 45 37)
|
||||
(24 32 37 29)
|
||||
(4 5 6 7)
|
||||
(5 10 11 6)
|
||||
(10 14 15 11)
|
||||
(6 11 18 19)
|
||||
(7 6 19 21)
|
||||
(11 15 23 18)
|
||||
(19 26 27 21)
|
||||
(18 23 30 31)
|
||||
(18 31 26 19)
|
||||
(26 34 35 27)
|
||||
(30 38 39 31)
|
||||
(34 42 43 35)
|
||||
(38 46 47 39)
|
||||
(34 39 47 42)
|
||||
(26 31 39 34)
|
||||
)
|
||||
|
||||
wall
|
||||
outerBoundaryBottom
|
||||
(
|
||||
(0 1 5 4)
|
||||
(1 8 10 5)
|
||||
(8 12 14 10)
|
||||
)
|
||||
|
||||
wall
|
||||
outerBoundaryTop
|
||||
(
|
||||
(40 41 43 42)
|
||||
(44 45 47 46)
|
||||
(40 42 47 45)
|
||||
)
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
4
|
||||
(
|
||||
periodicX
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 288;
|
||||
startFace 10710;
|
||||
featureCos 0.9;
|
||||
}
|
||||
periodicZ
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 1296;
|
||||
startFace 10998;
|
||||
featureCos 0.9;
|
||||
}
|
||||
outerBoundaryBottom
|
||||
{
|
||||
type wall;
|
||||
nFaces 162;
|
||||
startFace 12294;
|
||||
}
|
||||
outerBoundaryTop
|
||||
{
|
||||
type wall;
|
||||
nFaces 162;
|
||||
startFace 12456;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,49 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 8e-11;
|
||||
|
||||
deltaT 1e-14;
|
||||
|
||||
writeControl runTime;
|
||||
|
||||
writeInterval 2e-12;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep no;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,60 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(p) Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
laplacian(nu,U) Gauss linear corrected;
|
||||
laplacian(1|A(U),p) Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
interpolate(HbyA) linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p ;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
p
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
U
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-05;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PISO
|
||||
{
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
pRefCell 0;
|
||||
pRefValue 0;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,23 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object mdSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
integrationMethod verletLeapfrog;
|
||||
|
||||
potentialEnergyLimit 5.256e-20;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object molConfigDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
bottomWall
|
||||
{
|
||||
massDensity 1220;
|
||||
temperature 300;
|
||||
velocityDistribution maxwellian;
|
||||
bulkVelocity ( 0 0 0 );
|
||||
id Ar;
|
||||
mass 6.63352033e-26;
|
||||
latticeStructure FCC;
|
||||
anchor ( 1.05e-09 3.18e-09 2.87e-09 );
|
||||
anchorSpecifies molecule;
|
||||
tethered yes;
|
||||
orientationAngles ( 30 0 0 );
|
||||
}
|
||||
|
||||
liquid
|
||||
{
|
||||
massDensity 1100;
|
||||
temperature 250;
|
||||
velocityDistribution maxwellian;
|
||||
bulkVelocity ( 245 0 0 );
|
||||
id Ne;
|
||||
mass 3.350996347e-26;
|
||||
latticeStructure SC;
|
||||
anchor ( 1.05e-09 3.18e-09 2.87e-09 );
|
||||
anchorSpecifies molecule;
|
||||
tethered no;
|
||||
orientationAngles ( 45 0 0 );
|
||||
}
|
||||
|
||||
topWall
|
||||
{
|
||||
massDensity 1220;
|
||||
temperature 200;
|
||||
velocityDistribution maxwellian;
|
||||
bulkVelocity ( 0 0 0 );
|
||||
id Ar;
|
||||
mass 6.63352033e-26;
|
||||
latticeStructure BCC;
|
||||
anchor ( 1.05e-09 3.18e-09 2.87e-09 );
|
||||
anchorSpecifies corner;
|
||||
tethered yes;
|
||||
orientationAngles ( 0 0 0 );
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,104 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object potentialDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
removalOrder 2 ( Ne Ar );
|
||||
|
||||
pair
|
||||
{
|
||||
Ar-Ar
|
||||
{
|
||||
pairPotential maitlandSmith;
|
||||
rCut 1e-09;
|
||||
rMin 1.5e-10;
|
||||
dr 5e-14;
|
||||
maitlandSmithCoeffs
|
||||
{
|
||||
m 13;
|
||||
gamma 7.5;
|
||||
rm 3.756e-10;
|
||||
epsilon 1.990108438e-21;
|
||||
}
|
||||
|
||||
energyScalingFunction doubleSigmoid;
|
||||
doubleSigmoidCoeffs
|
||||
{
|
||||
shift1 9e-10;
|
||||
scale1 -64771072;
|
||||
shift2 9.7e-10;
|
||||
scale2 -259084288;
|
||||
}
|
||||
|
||||
writeTables yes;
|
||||
}
|
||||
|
||||
Ar-Ne
|
||||
{
|
||||
pairPotential maitlandSmith;
|
||||
rCut 9e-10;
|
||||
rMin 1e-10;
|
||||
dr 5e-14;
|
||||
maitlandSmithCoeffs
|
||||
{
|
||||
m 13;
|
||||
gamma 4;
|
||||
rm 3.48e-10;
|
||||
epsilon 8.765026657e-22;
|
||||
}
|
||||
|
||||
energyScalingFunction shiftedForce;
|
||||
writeTables yes;
|
||||
}
|
||||
|
||||
Ne-Ne
|
||||
{
|
||||
pairPotential maitlandSmith;
|
||||
rCut 8e-10;
|
||||
rMin 1e-10;
|
||||
dr 5e-14;
|
||||
maitlandSmithCoeffs
|
||||
{
|
||||
m 13;
|
||||
gamma 5;
|
||||
rm 3.0739e-10;
|
||||
epsilon 5.813260729e-22;
|
||||
}
|
||||
|
||||
energyScalingFunction shiftedForce;
|
||||
writeTables yes;
|
||||
}
|
||||
}
|
||||
|
||||
tether
|
||||
{
|
||||
Ar
|
||||
{
|
||||
tetherPotential restrainedHarmonicSpring;
|
||||
restrainedHarmonicSpringCoeffs
|
||||
{
|
||||
springConstant 0.1;
|
||||
rR 1.2e-09;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
external
|
||||
{
|
||||
gravity ( 0 0 0 );
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,146 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 3e-9;
|
||||
|
||||
vertices
|
||||
(
|
||||
(0 0 0)
|
||||
(3.5 0 0)
|
||||
(3.5 3 0)
|
||||
(0 3 0)
|
||||
(0 0 3)
|
||||
(3.5 0 3)
|
||||
(3.5 3 3)
|
||||
(0 3 3)
|
||||
(7.5 1 0.5)
|
||||
(7.5 2 0.5)
|
||||
(7.5 1 2.5)
|
||||
(7.5 2 2.5)
|
||||
(10 1 0.5)
|
||||
(10 2 0.5)
|
||||
(10 1 2.5)
|
||||
(10 2 2.5)
|
||||
(11.5 0.5 -0.5)
|
||||
(11.5 2.5 -0.5)
|
||||
(11.5 0.5 3.5)
|
||||
(11.5 2.5 3.5)
|
||||
(16 0.5 -0.5)
|
||||
(16 2.5 -0.5)
|
||||
(16 0.5 3.5)
|
||||
(16 2.5 3.5)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) sectionA (16 15 15) simpleGrading (1 1 1)
|
||||
hex (1 8 9 2 5 10 11 6) sectionA (16 15 15) simpleGrading (0.4 1 1)
|
||||
hex (8 12 13 9 10 14 15 11) sectionB (16 15 15) simpleGrading (1 1 1)
|
||||
hex (12 16 17 13 14 18 19 15) sectionC (11 15 15) simpleGrading (2.8 1 1)
|
||||
hex (16 20 21 17 18 22 23 19) sectionC (16 15 15) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
simpleSpline 12 16
|
||||
(
|
||||
(10.375 0.875 0.4)
|
||||
(10.75 0.75 0)
|
||||
(11.125 0.625 -0.4)
|
||||
)
|
||||
|
||||
simpleSpline 14 18
|
||||
(
|
||||
(10.375 0.875 2.6)
|
||||
(10.75 0.75 3)
|
||||
(11.125 0.625 3.4)
|
||||
)
|
||||
|
||||
simpleSpline 15 19
|
||||
(
|
||||
(10.375 2.125 2.6)
|
||||
(10.75 2.25 3)
|
||||
(11.125 2.375 3.4)
|
||||
)
|
||||
|
||||
simpleSpline 13 17
|
||||
(
|
||||
(10.375 2.125 0.4)
|
||||
(10.75 2.25 0)
|
||||
(11.125 2.375 -0.4)
|
||||
)
|
||||
);
|
||||
|
||||
patches
|
||||
(
|
||||
patch
|
||||
sectionAEnd
|
||||
(
|
||||
(0 4 7 3)
|
||||
)
|
||||
|
||||
patch
|
||||
sectionCEnd
|
||||
(
|
||||
(20 21 23 22)
|
||||
)
|
||||
|
||||
wall
|
||||
front
|
||||
(
|
||||
(0 1 5 4)
|
||||
(1 8 10 5)
|
||||
(8 12 14 10)
|
||||
(12 16 18 14)
|
||||
(16 20 22 18)
|
||||
)
|
||||
|
||||
wall
|
||||
back
|
||||
(
|
||||
(2 3 7 6)
|
||||
(2 6 11 9)
|
||||
(9 11 15 13)
|
||||
(13 15 19 17)
|
||||
(17 19 23 21)
|
||||
)
|
||||
|
||||
wall
|
||||
top
|
||||
(
|
||||
(4 5 6 7)
|
||||
(5 10 11 6)
|
||||
(10 14 15 11)
|
||||
(14 18 19 15)
|
||||
(18 22 23 19)
|
||||
)
|
||||
|
||||
wall
|
||||
bottom
|
||||
(
|
||||
(0 3 2 1)
|
||||
(1 2 9 8)
|
||||
(8 9 13 12)
|
||||
(12 13 17 16)
|
||||
(16 17 21 20)
|
||||
)
|
||||
);
|
||||
|
||||
mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
6
|
||||
(
|
||||
sectionAEnd
|
||||
{
|
||||
type patch;
|
||||
nFaces 225;
|
||||
startFace 48150;
|
||||
}
|
||||
sectionCEnd
|
||||
{
|
||||
type patch;
|
||||
nFaces 225;
|
||||
startFace 48375;
|
||||
}
|
||||
front
|
||||
{
|
||||
type wall;
|
||||
nFaces 1125;
|
||||
startFace 48600;
|
||||
}
|
||||
back
|
||||
{
|
||||
type wall;
|
||||
nFaces 1125;
|
||||
startFace 49725;
|
||||
}
|
||||
top
|
||||
{
|
||||
type wall;
|
||||
nFaces 1125;
|
||||
startFace 50850;
|
||||
}
|
||||
bottom
|
||||
{
|
||||
type wall;
|
||||
nFaces 1125;
|
||||
startFace 51975;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,49 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 3e-11;
|
||||
|
||||
deltaT 1e-14;
|
||||
|
||||
writeControl runTime;
|
||||
|
||||
writeInterval 1e-12;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep no;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,50 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method metis;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n ( 4 1 1 );
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n ( 1 1 1 );
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
metisCoeffs
|
||||
{
|
||||
processorWeights ( 1 1 1 1 );
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots ( );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,60 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(p) Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
laplacian(nu,U) Gauss linear corrected;
|
||||
laplacian(1|A(U),p) Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
interpolate(HbyA) linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p ;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
p
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
U
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-05;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PISO
|
||||
{
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
pRefCell 0;
|
||||
pRefValue 0;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,23 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object mdSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
integrationMethod verletLeapfrog;
|
||||
|
||||
potentialEnergyLimit 5.256e-20;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object molConfigDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
sectionA
|
||||
{
|
||||
massDensity 1220;
|
||||
temperature 300;
|
||||
velocityDistribution maxwellian;
|
||||
bulkVelocity ( -250 0 0 );
|
||||
id Ar;
|
||||
mass 6.63352033e-26;
|
||||
latticeStructure SC;
|
||||
anchor ( 0 0 0 );
|
||||
anchorSpecifies molecule;
|
||||
tethered no;
|
||||
orientationAngles ( 0 0 0 );
|
||||
}
|
||||
|
||||
sectionB
|
||||
{
|
||||
massDensity 1220;
|
||||
temperature 300;
|
||||
velocityDistribution maxwellian;
|
||||
bulkVelocity ( -250 0 0 );
|
||||
id Ne;
|
||||
mass 3.350917e-26;
|
||||
latticeStructure SC;
|
||||
anchor ( 0 0 0 );
|
||||
anchorSpecifies molecule;
|
||||
tethered no;
|
||||
orientationAngles ( 0 0 0 );
|
||||
}
|
||||
|
||||
sectionC
|
||||
{
|
||||
massDensity 1220;
|
||||
temperature 300;
|
||||
velocityDistribution maxwellian;
|
||||
bulkVelocity ( -250 0 0 );
|
||||
id Ar;
|
||||
mass 6.63352033e-26;
|
||||
latticeStructure SC;
|
||||
anchor ( 0 0 0 );
|
||||
anchorSpecifies molecule;
|
||||
tethered no;
|
||||
orientationAngles ( 0 0 0 );
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,86 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object potentialDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
removalOrder 1 ( Ar );
|
||||
|
||||
pair
|
||||
{
|
||||
Ar-Ar
|
||||
{
|
||||
pairPotential maitlandSmith;
|
||||
rCut 1e-09;
|
||||
rMin 1.5e-10;
|
||||
dr 5e-14;
|
||||
maitlandSmithCoeffs
|
||||
{
|
||||
m 13;
|
||||
gamma 7.5;
|
||||
rm 3.756e-10;
|
||||
epsilon 1.990108438e-21;
|
||||
}
|
||||
|
||||
energyScalingFunction doubleSigmoid;
|
||||
doubleSigmoidCoeffs
|
||||
{
|
||||
shift1 9e-10;
|
||||
scale1 -64771072;
|
||||
shift2 9.7e-10;
|
||||
scale2 -259084288;
|
||||
}
|
||||
|
||||
writeTables no;
|
||||
}
|
||||
|
||||
Ar-Ne
|
||||
{
|
||||
pairPotential maitlandSmith;
|
||||
rCut 9e-10;
|
||||
rMin 1e-10;
|
||||
dr 5e-14;
|
||||
maitlandSmithCoeffs
|
||||
{
|
||||
m 13;
|
||||
gamma 4;
|
||||
rm 3.48e-10;
|
||||
epsilon 8.765026657e-22;
|
||||
}
|
||||
|
||||
energyScalingFunction shiftedForce;
|
||||
writeTables no;
|
||||
}
|
||||
|
||||
Ne-Ne
|
||||
{
|
||||
pairPotential maitlandSmith;
|
||||
rCut 8e-10;
|
||||
rMin 1e-10;
|
||||
dr 5e-14;
|
||||
maitlandSmithCoeffs
|
||||
{
|
||||
m 13;
|
||||
gamma 5;
|
||||
rm 3.0739e-10;
|
||||
epsilon 5.813260729e-22;
|
||||
}
|
||||
|
||||
energyScalingFunction shiftedForce;
|
||||
writeTables no;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
11
tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/Allclean
Executable file
11
tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/Allclean
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cd periodicCube
|
||||
rm -rf 0
|
||||
rm -rf Ar-Ar
|
||||
rm -rf constant/idList
|
||||
cleanCase
|
||||
cd ..
|
||||
13
tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/Allrun
Executable file
13
tutorials/discreteMethods/molecularDynamics/mdEquilibrationFoam/Allrun
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application="mdEquilibrationFoam"
|
||||
|
||||
cd periodicCube
|
||||
runApplication blockMesh
|
||||
runApplication molConfig
|
||||
runApplication $application
|
||||
cd ..
|
||||
|
||||
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 2.462491658e-9;
|
||||
|
||||
vertices
|
||||
(
|
||||
(-1 -1 -1)
|
||||
(1 -1 -1)
|
||||
(1 1 -1)
|
||||
(-1 1 -1)
|
||||
(-1 -1 1)
|
||||
(1 -1 1)
|
||||
(1 1 1)
|
||||
(-1 1 1)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) liquid (12 12 12) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
patches
|
||||
(
|
||||
cyclic
|
||||
periodicX
|
||||
(
|
||||
(1 2 6 5)
|
||||
(0 4 7 3)
|
||||
)
|
||||
|
||||
cyclic
|
||||
periodicY
|
||||
(
|
||||
(2 3 7 6)
|
||||
(0 1 5 4)
|
||||
)
|
||||
|
||||
cyclic
|
||||
periodicZ
|
||||
(
|
||||
(0 3 2 1)
|
||||
(4 5 6 7)
|
||||
)
|
||||
)
|
||||
|
||||
mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,43 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
3
|
||||
(
|
||||
periodicX
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 288;
|
||||
startFace 4752;
|
||||
featureCos 0.9;
|
||||
}
|
||||
periodicY
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 288;
|
||||
startFace 5040;
|
||||
featureCos 0.9;
|
||||
}
|
||||
periodicZ
|
||||
{
|
||||
type cyclic;
|
||||
nFaces 288;
|
||||
startFace 5328;
|
||||
featureCos 0.9;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,49 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 1e-10;
|
||||
|
||||
deltaT 1e-14;
|
||||
|
||||
writeControl runTime;
|
||||
|
||||
writeInterval 5e-12;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep no;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,60 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
grad(p) Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default none;
|
||||
laplacian(nu,U) Gauss linear corrected;
|
||||
laplacian(1|A(U),p) Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
interpolate(HbyA) linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p ;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
p
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
U
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-05;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PISO
|
||||
{
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
pRefCell 0;
|
||||
pRefValue 0;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,21 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object mdEquilibrationDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
equilibrationTargetTemperature 300;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,23 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object mdSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
integrationMethod verletLeapfrog;
|
||||
|
||||
potentialEnergyLimit 5.256e-20;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,34 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object molConfigDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
liquid
|
||||
{
|
||||
massDensity 1220;
|
||||
temperature 300;
|
||||
velocityDistribution maxwellian;
|
||||
bulkVelocity ( 0 0 0 );
|
||||
id Ar;
|
||||
mass 6.63352033e-26;
|
||||
latticeStructure SC;
|
||||
anchor ( 0 0 0 );
|
||||
anchorSpecifies molecule;
|
||||
tethered no;
|
||||
orientationAngles ( 0 0 0 );
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,65 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object potentialDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
removalOrder 1 ( Ar );
|
||||
|
||||
pair
|
||||
{
|
||||
Ar-Ar
|
||||
{
|
||||
pairPotential azizChen;
|
||||
rCut 1.2e-09;
|
||||
rMin 1.5e-10;
|
||||
dr 2e-14;
|
||||
azizChenCoeffs
|
||||
{
|
||||
epsilon 1.97742255e-21;
|
||||
rm 3.759e-10;
|
||||
A 9502720;
|
||||
alpha 16.345655;
|
||||
C6 1.0914254;
|
||||
C8 0.6002595;
|
||||
C10 0.3700113;
|
||||
D 1.4;
|
||||
gamma 2;
|
||||
}
|
||||
|
||||
energyScalingFunction noScaling;
|
||||
writeTables yes;
|
||||
}
|
||||
}
|
||||
|
||||
tether
|
||||
{
|
||||
Ar
|
||||
{
|
||||
tetherPotential restrainedHarmonicSpring;
|
||||
restrainedHarmonicSpringCoeffs
|
||||
{
|
||||
springConstant 0.0277;
|
||||
rR 1.2e-09;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
external
|
||||
{
|
||||
gravity ( 0 0 0 );
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user