plasmaChemFoam, added ne, Te fields and En profile read.
This commit is contained in:
parent
42e59688c1
commit
614e7d1cc6
3 changed files with 67 additions and 0 deletions
|
|
@ -53,5 +53,39 @@ Info<< "Creating base fields for time " << runTime.timeName() << endl;
|
||||||
);
|
);
|
||||||
|
|
||||||
T.write();
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,40 @@
|
||||||
|
|
||||||
scalar p0 = readScalar(initialConditions.lookup("p"));
|
scalar p0 = readScalar(initialConditions.lookup("p"));
|
||||||
scalar T0 = readScalar(initialConditions.lookup("T"));
|
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"
|
#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;
|
Info<< nl << "Reading thermophysicalProperties" << endl;
|
||||||
autoPtr<psiChemistryModel> pChemistry(psiChemistryModel::New(mesh));
|
autoPtr<psiChemistryModel> pChemistry(psiChemistryModel::New(mesh));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ Description
|
||||||
#include "basicMultiComponentMixture.H"
|
#include "basicMultiComponentMixture.H"
|
||||||
#include "cellModeller.H"
|
#include "cellModeller.H"
|
||||||
|
|
||||||
|
#include "CSV.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue