mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Added Larsen Borgnakke internal energy redistribution and all supporting variables and function calls. Added energy and momentum monitoring functions. Added U and T fields to be used for boundary conditions and field measurement. Modified constructors accordingly. Now reading dsmcInitialiseDict in the Cloud, not the application. Initialisation dict now reads a subdict of <species keyword> <number density> entries.
This commit is contained in:
@ -1,4 +1,60 @@
|
||||
|
||||
// volScalarField rhoN
|
||||
// (
|
||||
// IOobject
|
||||
// (
|
||||
// "rhoN",
|
||||
// runTime.timeName(),
|
||||
// mesh,
|
||||
// IOobject::MUST_READ,
|
||||
// IOobject::AUTO_WRITE
|
||||
// ),
|
||||
// mesh
|
||||
// );
|
||||
|
||||
|
||||
// volScalarField rhoM
|
||||
// (
|
||||
// IOobject
|
||||
// (
|
||||
// "rhoM",
|
||||
// runTime.timeName(),
|
||||
// mesh,
|
||||
// IOobject::MUST_READ,
|
||||
// IOobject::AUTO_WRITE
|
||||
// ),
|
||||
// mesh
|
||||
// );
|
||||
|
||||
|
||||
Info<< "\nReading field U\n" << endl;
|
||||
volVectorField U
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"U",
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh
|
||||
);
|
||||
|
||||
Info<< "\nReading field T\n" << endl;
|
||||
volScalarField T
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"T",
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh
|
||||
);
|
||||
|
||||
Info<< "Constructing dsmcCloud " << endl;
|
||||
|
||||
dsmcCloud dsmc("dsmc", mesh);
|
||||
dsmcCloud dsmc("dsmc", T, U);
|
||||
|
||||
@ -26,8 +26,8 @@ Application
|
||||
dsmcFoam
|
||||
|
||||
Description
|
||||
Initialise a case for dsmcFoam by reading the initialise subdictionary in
|
||||
dsmcProperties
|
||||
Initialise a case for dsmcFoam by reading the initialisation dictionary
|
||||
system/dsmcInitialise
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -42,21 +42,11 @@ int main(int argc, char *argv[])
|
||||
#include "createTime.H"
|
||||
#include "createMesh.H"
|
||||
|
||||
IOdictionary dsmcInitialiseDict
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"dsmcInitialiseDict",
|
||||
mesh.time().system(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
)
|
||||
);
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
Info<< "Initialising dsmc for Time = " << runTime.timeName() << nl << endl;
|
||||
|
||||
dsmcCloud dsmc("dsmc", mesh, dsmcInitialiseDict);
|
||||
dsmcCloud dsmc("dsmc", mesh);
|
||||
|
||||
label totalMolecules = dsmc.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user