plasmaChemFoam, added ne, Te fields and En profile read.

This commit is contained in:
ignis 2016-06-28 04:10:06 +09:00
parent 42e59688c1
commit 614e7d1cc6
3 changed files with 67 additions and 0 deletions

View file

@ -53,5 +53,39 @@ Info<< "Creating base fields for time " << runTime.timeName() << endl;
);
T.write();
volScalarField ne
(
IOobject
(
"ne",
runTime.timeName(),
mesh,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
),
mesh,
dimensionedScalar("ne", dimTemperature, ne0)
);
ne.write();
volScalarField Te
(
IOobject
(
"Te",
runTime.timeName(),
mesh,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
),
mesh,
dimensionedScalar("Te", dimTemperature, Te0)
);
Te.write();
}

View file

@ -20,9 +20,40 @@
scalar p0 = readScalar(initialConditions.lookup("p"));
scalar T0 = readScalar(initialConditions.lookup("T"));
scalar ne0 = readScalar(initialConditions.lookup("ne"));
scalar Te0 = readScalar(initialConditions.lookup("Te"));
// read CSV
CSV<scalar> EnProfile("EnProfile", initialConditions);
#include "createBaseFields.H"
volScalarField ne
(
IOobject
(
"ne",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
volScalarField Te
(
IOobject
(
"Te",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
Info<< nl << "Reading thermophysicalProperties" << endl;
autoPtr<psiChemistryModel> pChemistry(psiChemistryModel::New(mesh));

View file

@ -43,6 +43,8 @@ Description
#include "basicMultiComponentMixture.H"
#include "cellModeller.H"
#include "CSV.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int main(int argc, char *argv[])