setRegionFluidFields.H
Go to the documentation of this file.
1  const fvMesh& mesh = fluidRegions[i];
2 
3  rhoThermo& thermo = thermoFluid[i];
4  thermo.validate(args.executable(), "h", "e");
5 
9 
11 
12  volScalarField& p = thermo.p();
13  const volScalarField& psi = thermo.psi();
14 
15  IOMRFZoneList& MRF = MRFfluid[i];
16  fv::options& fvOptions = fluidFvOptions[i];
17 
19  (
20  "initialMass",
21  dimMass,
23  );
24 
25  radiation::radiationModel& rad = radiation[i];
26 
27  const label pRefCell = pRefCellFluid[i];
28  const scalar pRefValue = pRefValueFluid[i];
29  const bool frozenFlow = frozenFlowFluid[i];
30 
32 
33  const dimensionedVector& g = gFluid[i];
34  const volScalarField& gh = ghFluid[i];
35  const surfaceScalarField& ghf = ghfFluid[i];
36 
37  bool& resReachedFluid = residualReachedFluid[i];
38  bool& residualControlUsed = residualControlUsedFluid[i];
const word & executable() const
Name of executable without the path.
Definition: argListI.H:30
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
rhoThermo & thermo
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
PtrList< IOMRFZoneList > MRFfluid(fluidRegions.size())
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
PtrList< volScalarField > rhoFluid(fluidRegions.size())
List< bool > frozenFlowFluid(fluidRegions.size(), false)
PtrList< volScalarField > p_rghFluid(fluidRegions.size())
PtrList< volScalarField > ghFluid(fluidRegions.size())
PtrList< volVectorField > UFluid(fluidRegions.size())
PtrList< rhoThermo > thermoFluid(fluidRegions.size())
List< bool > residualControlUsedFluid(fluidRegions.size(), false)
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("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
List< scalar > pRefValueFluid(fluidRegions.size(), 0.0)
PtrList< fv::options > fluidFvOptions(fluidRegions.size())
PtrList< uniformDimensionedVectorField > gFluid(fluidRegions.size())
PtrList< surfaceScalarField > ghfFluid(fluidRegions.size())
List< scalar > initialMassFluid(fluidRegions.size())
PtrList< surfaceScalarField > phiFluid(fluidRegions.size())
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< fvMesh > fluidRegions(fluidNames.size())
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Foam::argList args(argc, argv)
List< bool > residualReachedFluid(fluidRegions.size(), true)
List< label > pRefCellFluid(fluidRegions.size(), 0)
const dimensionedScalar initialMass("initialMass", dimMass, initialMassFluid[i])
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
const fvMesh & mesh