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:
graham
2009-03-03 13:39:52 +00:00
parent b5add8f750
commit f5d45542ae
19 changed files with 705 additions and 169 deletions

View File

@ -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);

View File

@ -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();