00001 Info<< "Reading thermophysical properties\n" << endl;
00002
00003 autoPtr<psiChemistryModel> pChemistry
00004 (
00005 psiChemistryModel::New(mesh)
00006 );
00007 psiChemistryModel& chemistry = pChemistry();
00008
00009 hCombustionThermo& thermo = chemistry.thermo();
00010
00011 basicMultiComponentMixture& composition = thermo.composition();
00012 PtrList<volScalarField>& Y = composition.Y();
00013
00014 word inertSpecie(thermo.lookup("inertSpecie"));
00015
00016 volScalarField& p = thermo.p();
00017 volScalarField& h = thermo.h();
00018 const volScalarField& T = thermo.T();
00019 const volScalarField& psi = thermo.psi();
00020
00021 multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
00022
00023 forAll (Y, i)
00024 {
00025 fields.add(Y[i]);
00026 }
00027 fields.add(h);
00028
00029 volScalarField rho
00030 (
00031 IOobject
00032 (
00033 "rho",
00034 runTime.timeName(),
00035 mesh,
00036 IOobject::NO_READ,
00037 IOobject::AUTO_WRITE
00038 ),
00039 thermo.rho()
00040 );
00041
00042
00043 volScalarField rhoEffLagrangian
00044 (
00045 IOobject
00046 (
00047 "rhoEffLagrangian",
00048 runTime.timeName(),
00049 mesh,
00050 IOobject::NO_READ,
00051 IOobject::AUTO_WRITE
00052 ),
00053 mesh,
00054 dimensionedScalar("zero", dimDensity, 0.0)
00055 );
00056
00057
00058 volScalarField pDyn
00059 (
00060 IOobject
00061 (
00062 "pDyn",
00063 runTime.timeName(),
00064 mesh,
00065 IOobject::NO_READ,
00066 IOobject::AUTO_WRITE
00067 ),
00068 mesh,
00069 dimensionedScalar("zero", dimPressure, 0.0)
00070 );
00071
00072
00073 Info<< "\nReading field U\n" << endl;
00074 volVectorField U
00075 (
00076 IOobject
00077 (
00078 "U",
00079 runTime.timeName(),
00080 mesh,
00081 IOobject::MUST_READ,
00082 IOobject::AUTO_WRITE
00083 ),
00084 mesh
00085 );
00086
00087 #include "compressibleCreatePhi.H"
00088
00089 DimensionedField<scalar, volMesh> kappa
00090 (
00091 IOobject
00092 (
00093 "kappa",
00094 runTime.timeName(),
00095 mesh,
00096 IOobject::NO_READ,
00097 IOobject::AUTO_WRITE
00098 ),
00099 mesh,
00100 dimensionedScalar("zero", dimless, 0.0)
00101 );
00102
00103 Info<< "Creating turbulence model\n" << endl;
00104 autoPtr<compressible::turbulenceModel> turbulence
00105 (
00106 compressible::turbulenceModel::New
00107 (
00108 rho,
00109 U,
00110 phi,
00111 thermo
00112 )
00113 );
00114
00115 Info<< "Creating field DpDt\n" << endl;
00116 volScalarField DpDt
00117 (
00118 "DpDt",
00119 fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p)
00120 );
00121
00122 Info<< "\nConstructing explicit enthalpy cell source" << endl;
00123 timeActivatedExplicitCellSource enthalpySource
00124 (
00125 "enthalpySource",
00126 mesh,
00127 h.dimensions()*phi.dimensions()/mesh.V().dimensions()
00128 );