All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
createFields.H
Go to the documentation of this file.
1 #include "createRDeltaT.H"
2 
3 Info<< "Reading thermophysical properties\n" << endl;
4 autoPtr<fluidReactionThermo> pThermo(fluidReactionThermo::New(mesh));
5 fluidReactionThermo& thermo = pThermo();
6 thermo.validate(args.executable(), "h", "e");
7 
8 basicSpecieMixture& composition = thermo.composition();
9 PtrList<volScalarField>& Y = composition.Y();
10 
12 (
13  IOobject
14  (
15  "rho",
16  runTime.timeName(),
17  mesh
18  ),
19  thermo.rho()
20 );
21 
22 Info<< "Reading field U\n" << endl;
24 (
25  IOobject
26  (
27  "U",
28  runTime.timeName(),
29  mesh,
30  IOobject::MUST_READ,
31  IOobject::AUTO_WRITE
32  ),
33  mesh
34 );
35 
36 
37 volScalarField& p = thermo.p();
38 
39 #include "compressibleCreatePhi.H"
40 
42 
43 mesh.setFluxRequired(p.name());
44 
45 
46 Info << "Creating turbulence model.\n" << nl;
47 autoPtr<compressible::momentumTransportModel> turbulence
48 (
50  (
51  rho,
52  U,
53  phi,
54  thermo
55  )
56 );
57 
58 Info<< "Creating thermophysical transport model\n" << endl;
59 autoPtr<fluidReactionThermophysicalTransportModel>
61 (
63  (
64  turbulence(),
65  thermo
66  )
67 );
68 
69 Info<< "Creating reaction model\n" << endl;
70 autoPtr<combustionModel> reaction(combustionModel::New(thermo, turbulence()));
71 
72 
73 Info<< "Creating field dpdt\n" << endl;
75 (
76  IOobject
77  (
78  "dpdt",
79  runTime.timeName(),
80  mesh
81  ),
82  mesh,
83  dimensionedScalar(p.dimensions()/dimTime, 0)
84 );
85 
86 Info<< "Creating field kinetic energy K\n" << endl;
87 volScalarField K("K", 0.5*magSqr(U));
88 
90 
91 
92 multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
93 
94 forAll(Y, i)
95 {
96  fields.add(Y[i]);
97 }
98 fields.add(thermo.he());
99 
100 #include "createMRF.H"
101 #include "createFvModels.H"
102 #include "createFvConstraints.H"
const word & executable() const
Name of executable without the path.
Definition: argListI.H:36
pimpleNoLoopControl & pimple
Info<< "Reading thermophysical properties\"<< endl;autoPtr< fluidReactionThermo > pThermo(fluidReactionThermo::New(mesh))
pressureReference pressureReference(mixture.p(), p_rgh, pimple.dict(), false)
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
Info<< "Calculating turbulent flame speed field St\"<< endl;volScalarField St(IOobject("St", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:228
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:58
CGAL::Exact_predicates_exact_constructions_kernel K
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
volScalarField & dpdt
rho
Definition: createFields.H:81
const dimensionSet dimTime
dynamicFvMesh & mesh
Info<< "Creating reaction model\"<< endl;autoPtr< combustionModel > reaction(combustionModel::New(thermo, turbulence()))
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
forAll(Y, i)
Definition: createFields.H:132
phi
Definition: correctPhi.H:3
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
static const char nl
Definition: Ostream.H:260
Info<< "Creating thermophysical transport model\"<< endl;autoPtr< fluidThermophysicalTransportModel > thermophysicalTransport(fluidThermophysicalTransportModel::New(turbulence(), thermo))
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
messageStream Info
Foam::argList args(argc, argv)
Creates and initialises the face-flux field phi.