mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
adding molecular dynamics sources/app/utility
This commit is contained in:
26
applications/utilities/preProcessing/molConfig/createPositions.H
Executable file
26
applications/utilities/preProcessing/molConfig/createPositions.H
Executable file
@ -0,0 +1,26 @@
|
||||
vector latticePosition;
|
||||
|
||||
vector globalPosition;
|
||||
|
||||
if (latticeStructure == "SC")
|
||||
{
|
||||
# include "SC.H"
|
||||
}
|
||||
|
||||
else if (latticeStructure == "FCC")
|
||||
{
|
||||
# include "FCC.H"
|
||||
}
|
||||
|
||||
else if (latticeStructure == "BCC")
|
||||
{
|
||||
# include "BCC.H"
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
FatalErrorIn("createPositions.H\n")
|
||||
<< "latticeStructure " << latticeStructure
|
||||
<< " not supported."
|
||||
<< abort(FatalError);
|
||||
}
|
||||
Reference in New Issue
Block a user