All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
setRegionFluidFields.H
Go to the documentation of this file.
1  const fvMesh& mesh = fluidRegions[i];
2 
3  CombustionModel<rhoReactionThermo>& reaction = reactionFluid[i];
4 
5  rhoReactionThermo& thermo = thermoFluid[i];
6  thermo.validate(args.executable(), "h", "e");
7 
8  basicSpecieMixture& composition = thermo.composition();
9  PtrList<volScalarField>& Y = composition.Y();
10 
11  label inertIndex = -1;
12  if (Y.size())
13  {
14  const word inertSpecie(thermo.lookup("inertSpecie"));
15  if (!composition.species().found(inertSpecie))
16  {
18  << "Inert specie " << inertSpecie
19  << " not found in available species "
20  << composition.species()
21  << exit(FatalIOError);
22  }
23  inertIndex = composition.species()[inertSpecie];
24  }
25 
29 
31  rhoReactionThermophysicalTransportModel& thermophysicalTransport =
33 
36 
37  volScalarField& p = thermo.p();
38  const volScalarField& psi = thermo.psi();
39 
41 
42  const dimensionedVector& g = gFluid[i];
43  const dimensionedScalar& pRef = pRefFluid[i];
44  const volScalarField& gh = ghFluid[i];
45  const surfaceScalarField& ghf = ghfFluid[i];
46 
47  multivariateSurfaceInterpolationScheme<scalar>::fieldTable& fields =
48  fieldsFluid[i];
49 
50  radiationModel& rad = radiation[i];
51 
52  IOMRFZoneList& MRF = MRFfluid[i];
53  fv::options& fvOptions = fluidFvOptions[i];
54 
56  (
57  "initialMass",
58  dimMass,
60  );
61 
62  pimpleNoLoopControl& pimple = pimples.pimple(i);
63 
64  pressureControl& pressureControl = pressureControlFluid[i];
65 
66  scalar cumulativeContErr = cumulativeContErrs[i];
67 
68  // This solver does not support moving mesh but it uses the pressure
69  // equation of one which does, so we need a dummy face-momentum field
70  autoPtr<surfaceVectorField> rhoUf(nullptr);
PtrList< uniformDimensionedScalarField > pRefFluid(fluidRegions.size())
const word & executable() const
Name of executable without the path.
Definition: argListI.H:36
PtrList< uniformDimensionedVectorField > gFluid(fluidRegions.size())
PtrList< volVectorField > UFluid(fluidRegions.size())
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
PtrList< fv::options > fluidFvOptions(fluidRegions.size())
const fvMesh & mesh
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:124
PtrList< IOMRFZoneList > MRFfluid(fluidRegions.size())
List< scalar > cumulativeContErrs(fluidRegions.size(), 0.0)
ThermophysicalTransportModel< compressible::momentumTransportModel, rhoReactionThermo > rhoReactionThermophysicalTransportModel
PtrList< volScalarField > p_rghFluid(fluidRegions.size())
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
const dimensionedScalar initialMass("initialMass", dimMass, initialMassFluid[i])
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:58
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
List< scalar > initialMassFluid(fluidRegions.size())
PtrList< volScalarField > ghFluid(fluidRegions.size())
CompressibleMomentumTransportModel< fluidThermo > momentumTransportModel
PtrList< rhoReactionThermo > thermoFluid(fluidRegions.size())
PtrList< volScalarField > KFluid(fluidRegions.size())
autoPtr< surfaceVectorField > rhoUf(nullptr)
PtrList< volScalarField > dpdtFluid(fluidRegions.size())
CombustionModel< rhoReactionThermo > & reaction
PtrList< multivariateSurfaceInterpolationScheme< scalar >::fieldTable > fieldsFluid(fluidRegions.size())
PtrList< fvMesh > fluidRegions(fluidNames.size())
PtrList< compressible::momentumTransportModel > turbulenceFluid(fluidRegions.size())
PtrList< surfaceScalarField > ghfFluid(fluidRegions.size())
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
Definition: error.H:325
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< rhoReactionThermophysicalTransportModel > thermophysicalTransportFluid(fluidRegions.size())
autoPtr< radiationModel > radiation(radiationModel::New(T))
rhoReactionThermo & thermo
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
PtrList< surfaceScalarField > phiFluid(fluidRegions.size())
Foam::argList args(argc, argv)
PtrList< CombustionModel< rhoReactionThermo > > reactionFluid(fluidRegions.size())
const word inertSpecie(thermo.lookup("inertSpecie"))
PtrList< volScalarField > rhoFluid(fluidRegions.size())
PtrList< pressureControl > pressureControlFluid(fluidRegions.size())
IOerror FatalIOError