mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added monoatomic object and updated applications.
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
EXE_DEBUG = -DFULLDEBUG -g -O0
|
||||
|
||||
EXE_INC = \
|
||||
${EXE_DEBUG} \
|
||||
-I$(LIB_SRC)/lagrangian/molecularDynamics/molecule/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/molecularDynamics/potential/lnInclude \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
|
||||
@ -12,16 +12,16 @@
|
||||
mesh
|
||||
);
|
||||
|
||||
word cloudName("polyatomicCloud");
|
||||
word polyatomicCloudName("polyatomicCloud");
|
||||
|
||||
potential pot
|
||||
potential polyPot
|
||||
(
|
||||
mesh,
|
||||
IOdictionary
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
cloudName + "Properties",
|
||||
polyatomicCloudName + "Properties",
|
||||
mesh.time().constant(),
|
||||
mesh,
|
||||
IOobject::MUST_READ_IF_MODIFIED,
|
||||
@ -31,4 +31,25 @@
|
||||
)
|
||||
);
|
||||
|
||||
polyatomicCloud molecules(cloudName, mesh, pot);
|
||||
polyatomicCloud polyatomics(polyatomicCloudName, mesh, polyPot);
|
||||
|
||||
word monoatomicCloudName("monoatomicCloud");
|
||||
|
||||
potential monoPot
|
||||
(
|
||||
mesh,
|
||||
IOdictionary
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
monoatomicCloudName + "Properties",
|
||||
mesh.time().constant(),
|
||||
mesh,
|
||||
IOobject::MUST_READ_IF_MODIFIED,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
monoatomicCloud monoatomics(monoatomicCloudName, mesh, monoPot);
|
||||
|
||||
@ -30,6 +30,7 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "fvCFD.H"
|
||||
#include "monoatomicCloud.H"
|
||||
#include "polyatomicCloud.H"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
@ -47,11 +48,13 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
Info<< "Time = " << runTime.timeName() << endl;
|
||||
|
||||
molecules.evolve();
|
||||
monoatomics.evolve();
|
||||
|
||||
polyatomics.evolve();
|
||||
|
||||
runTime.write();
|
||||
|
||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||
Info<< nl << "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||
<< nl << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user