Go to the documentation of this file.00001 Info<< nl << "Reading thermophysicalProperties" << endl;
00002 autoPtr<psiChemistryModel> pChemistry
00003 (
00004 psiChemistryModel::New(mesh)
00005 );
00006 psiChemistryModel& chemistry = pChemistry();
00007
00008 hsCombustionThermo& thermo = chemistry.thermo();
00009
00010 basicMultiComponentMixture& composition = thermo.composition();
00011 PtrList<volScalarField>& Y = composition.Y();
00012
00013 word inertSpecie(thermo.lookup("inertSpecie"));
00014
00015 volScalarField rho
00016 (
00017 IOobject
00018 (
00019 "rho",
00020 runTime.timeName(),
00021 mesh
00022 ),
00023 thermo.rho()
00024 );
00025
00026 Info<< "Reading field U\n" << endl;
00027 volVectorField U
00028 (
00029 IOobject
00030 (
00031 "U",
00032 runTime.timeName(),
00033 mesh,
00034 IOobject::MUST_READ,
00035 IOobject::AUTO_WRITE
00036 ),
00037 mesh
00038 );
00039
00040
00041 volScalarField& p = thermo.p();
00042 const volScalarField& psi = thermo.psi();
00043 volScalarField& hs = thermo.hs();
00044 const volScalarField& T = thermo.T();
00045
00046 #include <finiteVolume/compressibleCreatePhi.H>
00047
00048 volScalarField kappa
00049 (
00050 IOobject
00051 (
00052 "kappa",
00053 runTime.timeName(),
00054 mesh,
00055 IOobject::NO_READ,
00056 IOobject::AUTO_WRITE
00057 ),
00058 mesh,
00059 dimensionedScalar("zero", dimless, 0.0)
00060 );
00061
00062 Info << "Creating turbulence model.\n" << nl;
00063 autoPtr<compressible::turbulenceModel> turbulence
00064 (
00065 compressible::turbulenceModel::New
00066 (
00067 rho,
00068 U,
00069 phi,
00070 thermo
00071 )
00072 );
00073
00074 Info<< "Creating field DpDt\n" << endl;
00075 volScalarField DpDt =
00076 fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);
00077
00078 multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
00079
00080 forAll(Y, i)
00081 {
00082 fields.add(Y[i]);
00083 }
00084 fields.add(hs);
00085
00086 DimensionedField<scalar, volMesh> chemistrySh
00087 (
00088 IOobject
00089 (
00090 "chemistry::Sh",
00091 runTime.timeName(),
00092 mesh,
00093 IOobject::NO_READ,
00094 IOobject::NO_WRITE
00095 ),
00096 mesh,
00097 dimensionedScalar("chemistrySh", dimEnergy/dimTime/dimVolume, 0.0)
00098 );