mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
applications/solvers/discreteMethods: Added -postProcess option
See also commit cc455173ff
This commit is contained in:
@ -0,0 +1,2 @@
|
|||||||
|
Info<< nl << "Constructing dsmcCloud " << endl;
|
||||||
|
dsmcCloud dsmc("dsmc", mesh);
|
||||||
@ -37,16 +37,16 @@ Description
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#define NO_CONTROL
|
||||||
|
#include "postProcess.H"
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createMesh.H"
|
#include "createMesh.H"
|
||||||
|
#include "createFields.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Info<< nl << "Constructing dsmcCloud " << endl;
|
|
||||||
|
|
||||||
dsmcCloud dsmc("dsmc", mesh);
|
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
|
|
||||||
while (runTime.loop())
|
while (runTime.loop())
|
||||||
|
|||||||
@ -1,55 +1,17 @@
|
|||||||
Info<< "\nReading field U\n" << endl;
|
Info<< "\nReading field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
|
||||||
"U",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
word polyatomicCloudName("polyatomicCloud");
|
|
||||||
|
|
||||||
potential polyPot
|
|
||||||
(
|
(
|
||||||
|
"U",
|
||||||
|
runTime.timeName(),
|
||||||
mesh,
|
mesh,
|
||||||
IOdictionary
|
IOobject::MUST_READ,
|
||||||
(
|
IOobject::AUTO_WRITE
|
||||||
IOobject
|
),
|
||||||
(
|
mesh
|
||||||
polyatomicCloudName + "Properties",
|
);
|
||||||
mesh.time().constant(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
|
||||||
IOobject::NO_WRITE,
|
|
||||||
false
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
polyatomicCloud polyatomics(polyatomicCloudName, mesh, polyPot);
|
potential pot(mesh);
|
||||||
|
|
||||||
word monoatomicCloudName("monoatomicCloud");
|
moleculeCloud molecules(mesh, pot);
|
||||||
|
|
||||||
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);
|
|
||||||
|
|||||||
@ -32,34 +32,21 @@ Description
|
|||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "md.H"
|
#include "md.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#define NO_CONTROL
|
||||||
|
#include "postProcess.H"
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createMesh.H"
|
#include "createMesh.H"
|
||||||
|
#include "createFields.H"
|
||||||
|
#include "temperatureAndPressureVariables.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Info<< "\nReading field U\n" << endl;
|
|
||||||
volVectorField U
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"U",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
potential pot(mesh);
|
|
||||||
|
|
||||||
moleculeCloud molecules(mesh, pot);
|
|
||||||
|
|
||||||
#include "temperatureAndPressureVariables.H"
|
|
||||||
|
|
||||||
label nAveragingSteps = 0;
|
label nAveragingSteps = 0;
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
@ -73,7 +60,6 @@ int main(int argc, char *argv[])
|
|||||||
molecules.evolve();
|
molecules.evolve();
|
||||||
|
|
||||||
#include "meanMomentumEnergyAndNMols.H"
|
#include "meanMomentumEnergyAndNMols.H"
|
||||||
|
|
||||||
#include "temperatureAndPressure.H"
|
#include "temperatureAndPressure.H"
|
||||||
|
|
||||||
runTime.write();
|
runTime.write();
|
||||||
|
|||||||
Reference in New Issue
Block a user