mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Templated MolecularCloud.
This commit is contained in:
@ -3,7 +3,6 @@ EXE_INC = \
|
||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/molecularDynamics/molecule/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/molecularDynamics/potential/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/molecularDynamics/molecularMeasurements/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||
|
||||
@ -13,6 +12,5 @@ EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-llagrangian \
|
||||
-lmolecule \
|
||||
-lpotential \
|
||||
-lmolecularMeasurements
|
||||
-lpotential
|
||||
|
||||
|
||||
@ -62,11 +62,28 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
potential pot(mesh, mdInitialiseDict, idListDict);
|
||||
word cloudName("polyatomicCloud");
|
||||
|
||||
polyatomicCloud molecules(mesh, pot, mdInitialiseDict);
|
||||
potential pot
|
||||
(
|
||||
mesh,
|
||||
mdInitialiseDict,
|
||||
IOdictionary
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
cloudName + "Properties",
|
||||
mesh.time().constant(),
|
||||
mesh,
|
||||
IOobject::MUST_READ_IF_MODIFIED,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
)
|
||||
),
|
||||
idListDict
|
||||
);
|
||||
|
||||
Info<< "Cloud is called " << molecules.name() << endl;
|
||||
polyatomicCloud molecules(cloudName, mesh, pot, mdInitialiseDict);
|
||||
|
||||
label totalMolecules = molecules.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user