readInitialConditions.H File Reference

Go to the source code of this file.

Functions

word constProp (initialConditions.get< word >("constantProperty"))
 
 if (constProp !="pressure" &&constProp !="volume")
 
word fractionBasis (initialConditions.get< word >("fractionBasis"))
 
 if (fractionBasis !="mass" &&fractionBasis !="mole")
 
PtrList< gasHThermoPhysics > specieData (Y.size())
 
 forAll (specieData, i)
 
scalarList Y0 (nSpecie, Zero)
 
scalarList X0 (nSpecie, Zero)
 
dictionary fractions (initialConditions.subDict("fractions"))
 
 if (fractionBasis=="mole")
 
 forAll (Y, i)
 
thermo he ()
 
thermo correct ()
 

Variables

label nSpecie = Y.size()
 
 else
 
const scalar mTot = sum(Y0)
 
const scalar mw = 1.0/invW
 
scalar h0 = 0.0
 
 rho = thermo.rho()
 
scalar rho0 = rho[0]
 
scalar u0 = h0 - p0/rho0
 
scalar R0 = p0/(rho0*T0)
 
 Rspecific [0] = R0
 
scalar integratedHeat = 0.0
 

Function Documentation

◆ constProp()

word constProp ( initialConditions.get< word >  "constantProperty")

Referenced by if().

Here is the caller graph for this function:

◆ if() [1/3]

if ( constProp = "pressure" && constProp != "volume")

Definition at line 2 of file readInitialConditions.H.

References Foam::abort(), constProp(), Foam::FatalError, and Foam::nl.

Here is the call graph for this function:

◆ fractionBasis()

word fractionBasis ( initialConditions.get< word >  "fractionBasis")

Referenced by if().

Here is the caller graph for this function:

◆ if() [2/3]

if ( fractionBasis = "mass" && fractionBasis != "mole")

Definition at line 10 of file readInitialConditions.H.

References Foam::abort(), Foam::FatalError, fractionBasis(), and Foam::nl.

Here is the call graph for this function:

◆ specieData()

PtrList<gasHThermoPhysics> specieData ( Y.  size())

Referenced by forAll(), and if().

Here is the caller graph for this function:

◆ forAll() [1/2]

forAll ( specieData  ,
 
)

Definition at line 19 of file readInitialConditions.H.

References specieData().

Referenced by if().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Y0()

scalarList Y0 ( nSpecie  ,
Zero   
)

Referenced by forAll(), and if().

Here is the caller graph for this function:

◆ X0()

scalarList X0 ( nSpecie  ,
Zero   
)

Referenced by SprayParcel< ParcelType >::calc(), rigidBodyMotion::cCofR(), McCowan::eta(), Grimshaw::eta(), if(), rigidBodyMotion::status(), rigidBodyMotion::transformPoints(), Grimshaw::Uf(), and McCowan::Uf().

Here is the caller graph for this function:

◆ fractions()

dictionary fractions ( initialConditions.  subDict"fractions")

Referenced by if(), and RecycleInteraction< CloudType >::postEvolve().

Here is the caller graph for this function:

◆ if() [3/3]

if ( fractionBasis  = = "mole")

Definition at line 36 of file readInitialConditions.H.

References forAll(), fractions(), mTot, mw, Foam::name(), specieData(), Foam::sum(), X0(), Y, and Y0().

Here is the call graph for this function:

◆ forAll() [2/2]

forAll ( Y  ,
 
)

Definition at line 65 of file readInitialConditions.H.

References mTot, specieData(), and Y0().

Here is the call graph for this function:

◆ he()

thermo he ( )

◆ correct()

thermo correct ( )

Variable Documentation

◆ nSpecie

◆ else

else
Initial value:
{
forAll(Y, i)
{
fractions.readIfPresent(Y[i].name(), Y0[i]);
}
scalar invW = 0.0

Definition at line 57 of file readInitialConditions.H.

◆ mTot

const scalar mTot = sum(Y0)

◆ mw

const scalar mw = 1.0/invW

Definition at line 70 of file readInitialConditions.H.

Referenced by if().

◆ h0

scalar h0 = 0.0

Definition at line 78 of file readInitialConditions.H.

Referenced by filmTurbulenceModel::Cw().

◆ rho

rho = thermo.rho()

Definition at line 88 of file readInitialConditions.H.

Referenced by Foam::fvc::absolute(), ISAT< CompType, ThermoType >::add(), MRFZoneList::addAcceleration(), MRFZone::addCoriolis(), porosityModelList::addResistance(), porosityModel::addResistance(), multiphaseMangrovesSource::addSup(), multiphaseMangrovesTurbulenceModel::addSup(), atmPlantCanopyTSource::addSup(), tabulatedAccelerationSource::addSup(), atmPlantCanopyUSource::addSup(), buoyancyForce::addSup(), PhaseLimitStabilization< Type >::addSup(), buoyancyEnergy::addSup(), radialActuationDiskSource::addSup(), interRegionExplicitPorositySource::addSup(), atmPlantCanopyTurbSource::addSup(), CodedSource< Type >::addSup(), multiphaseStabilizedTurbulence::addSup(), atmCoriolisUSource::addSup(), acousticDampingSource::addSup(), atmAmbientTurbSource::addSup(), atmLengthScaleTurbSource::addSup(), atmBuoyancyTurbSource::addSup(), buoyancyTurbSource::addSup(), option::addSup(), solidificationMeltingSource::addSup(), rotorDiskSource::addSup(), actuationDiskSource::addSup(), densityChangeDrift::addToDriftRate(), constantDrift::addToDriftRate(), constantNucleation::addToNucleationRate(), wallBoiling::addToNucleationRate(), CoBlended< Type >::blendingFactor(), cellCoBlended< Type >::blendingFactor(), Implicit< CloudType >::cacheFields(), SprayParcel< ParcelType >::calc(), Foam::calc_pTotal(), Foam::calc_rhoU(), SprayParcel< ParcelType >::calcAtomization(), SprayParcel< ParcelType >::calcBreakup(), targetCoeffTrim::calcCoeffs(), powerLaw::calcForce(), DarcyForchheimer::calcForce(), powerLawLopesdaCosta::calcForce(), solidification::calcForce(), forces::calcForcesMoment(), ThermoParcel< ParcelType >::calcHeatTransfer(), ObukhovLength::calcOL(), ReactingParcel< ParcelType >::calcPhaseChange(), LiquidEvapFuchsKnudsen< CloudType >::calculate(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::calculate(), StandardChemistryModel< ReactionThermo, ThermoType >::calculate(), rotorDiskSource::calculate(), hydrostaticPressure::calculateAndWrite(), tabulatedNTUHeatTransfer::calculateHtc(), StandardChemistryModel< ReactionThermo, ThermoType >::calculateRR(), coalCloudList::coalCloudList(), Foam::constrainPressure(), Foam::MULES::correct(), eddyDissipationModelBase< ReactionThermo, ThermoType >::correct(), patchInjection::correct(), infinitelyFastChemistry< ReactionThermo, ThermoType >::correct(), relaxation::correct(), PaSR< ReactionThermo >::correct(), drippingInjection::correct(), BrunDrippingInjection::correct(), fixedCoeff::correct(), curvatureSeparation::correct(), powerLaw::correct(), DeardorffDiffStress< BasicTurbulenceModel >::correct(), kEqn< BasicTurbulenceModel >::correct(), dynamicLagrangian< BasicTurbulenceModel >::correct(), Maxwell< BasicTurbulenceModel >::correct(), DarcyForchheimer::correct(), kOmega< BasicTurbulenceModel >::correct(), EDC< ReactionThermo >::correct(), dynamicKEqn< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), realizableKE< BasicTurbulenceModel >::correct(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::correct(), powerLawLopesdaCosta::correct(), LaunderSharmaKE< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), solidification::correct(), LRR< BasicTurbulenceModel >::correct(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::correct(), kineticTheoryModel::correct(), SpalartAllmarasDES< BasicTurbulenceModel >::correct(), SpalartAllmaras< BasicTurbulenceModel >::correct(), kEpsilonPhitF< BasicTurbulenceModel >::correct(), directionalPressureGradientExplicitSource::correct(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), kL< BasicTurbulenceModel >::correct(), targetCoeffTrim::correct(), standardPhaseChange::correctModel(), waxSolventEvaporation::correctModel(), Foam::CorrectPhi(), kOmegaSSTLM< BasicTurbulenceModel >::correctReThetatGammaInt(), Foam::fvc::correctRhoUf(), targetCoeffTrim::correctTrim(), Foam::correctUphiBCs(), perfectFluid< Specie >::CpMCv(), Foam::fam::d2dt2(), Foam::fvc::d2dt2(), Foam::fvm::d2dt2(), Foam::fac::d2dt2(), Foam::fam::ddt(), Foam::fvm::ddt(), Foam::fac::ddt(), Foam::fvc::ddt(), MRFZoneList::DDt(), Foam::fvc::ddtCorr(), TDACChemistryModel< CompType, ThermoType >::derivatives(), StandardChemistryModel< ReactionThermo, ThermoType >::derivatives(), forces::devRhoReff(), StaticPhaseModel< BasePhaseModel >::diffNo(), linearViscousStress< RASModel< BasicTurbulenceModel > >::divDevRhoReff(), nonlinearEddyViscosity< incompressible::RASModel >::divDevRhoReff(), incompressibleInterPhaseTransportModel< Mixture >::divDevRhoReff(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::divDevRhoReff(), Maxwell< BasicTurbulenceModel >::divDevRhoReff(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::DivDevRhoReff(), KinematicSurfaceFilm< CloudType >::drySplashInteraction(), Ea(), energyTransport::energyTransport(), LaheyKEpsilon< BasicTurbulenceModel >::epsilonSource(), Es(), age::execute(), scalarTransport::execute(), energyTransport::execute(), Foam::MULES::explicitSolve(), EulerFaD2dt2Scheme< Type >::facD2dt2(), steadyStateFaDdtScheme< Type >::facDdt(), EulerFaDdtScheme< Type >::facDdt(), backwardFaDdtScheme< Type >::facDdt(), boundedBackwardFaDdtScheme::facDdt(), steadyStateFaDdtScheme< Type >::facDdt0(), EulerFaDdtScheme< Type >::facDdt0(), backwardFaDdtScheme< Type >::facDdt0(), boundedBackwardFaDdtScheme::facDdt0(), EulerFaD2dt2Scheme< Type >::famD2dt2(), steadyStateFaDdtScheme< Type >::famDdt(), EulerFaDdtScheme< Type >::famDdt(), backwardFaDdtScheme< Type >::famDdt(), boundedBackwardFaDdtScheme::famDdt(), PatchFlowRateInjection< CloudType >::flowRate(), for(), forAll(), steadyStateD2dt2Scheme< Type >::fvcD2dt2(), EulerD2dt2Scheme< Type >::fvcD2dt2(), steadyStateDdtScheme< Type >::fvcDdt(), EulerDdtScheme< Type >::fvcDdt(), boundedDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), localEulerDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), ddtScheme< Type >::fvcDdtPhiCoeff(), steadyStateDdtScheme< Type >::fvcDdtPhiCorr(), EulerDdtScheme< Type >::fvcDdtPhiCorr(), boundedDdtScheme< Type >::fvcDdtPhiCorr(), CoEulerDdtScheme< Type >::fvcDdtPhiCorr(), backwardDdtScheme< Type >::fvcDdtPhiCorr(), SLTSDdtScheme< Type >::fvcDdtPhiCorr(), localEulerDdtScheme< Type >::fvcDdtPhiCorr(), CrankNicolsonDdtScheme< Type >::fvcDdtPhiCorr(), steadyStateDdtScheme< Type >::fvcDdtUfCorr(), EulerDdtScheme< Type >::fvcDdtUfCorr(), boundedDdtScheme< Type >::fvcDdtUfCorr(), CoEulerDdtScheme< Type >::fvcDdtUfCorr(), backwardDdtScheme< Type >::fvcDdtUfCorr(), SLTSDdtScheme< Type >::fvcDdtUfCorr(), localEulerDdtScheme< Type >::fvcDdtUfCorr(), CrankNicolsonDdtScheme< Type >::fvcDdtUfCorr(), steadyStateD2dt2Scheme< Type >::fvmD2dt2(), EulerD2dt2Scheme< Type >::fvmD2dt2(), steadyStateDdtScheme< Type >::fvmDdt(), EulerDdtScheme< Type >::fvmDdt(), boundedDdtScheme< Type >::fvmDdt(), CoEulerDdtScheme< Type >::fvmDdt(), backwardDdtScheme< Type >::fvmDdt(), SLTSDdtScheme< Type >::fvmDdt(), localEulerDdtScheme< Type >::fvmDdt(), ddtScheme< Type >::fvmDdt(), CrankNicolsonDdtScheme< Type >::fvmDdt(), eConstThermo< EquationOfState >::Gstd(), icoTabulated< Specie >::H(), Ha(), AnisothermalPhaseModel< BasePhaseModel >::heEqn(), Hs(), ReynoldsAnalogy::htc(), if(), incompressibleInterPhaseTransportModel< Mixture >::incompressibleInterPhaseTransportModel(), Lee< Thermo, OtherThermo >::Kexp(), NicenoKEqn< BasicTurbulenceModel >::kSource(), LaheyKEpsilon< BasicTurbulenceModel >::kSource(), Lee< Thermo, OtherThermo >::KSp(), Lee< Thermo, OtherThermo >::KSu(), Foam::MULES::limit(), Foam::MULES::limitCorr(), PhiScheme< Type, PhiLimiter >::limiter(), Foam::MULES::limiter(), Foam::MULES::limiterCorr(), Foam::fvc::makeAbsolute(), MRFZoneList::makeAbsolute(), MRFZone::makeAbsolute(), Foam::fvc::makeRelative(), MRFZoneList::makeRelative(), MRFZone::makeRelative(), Foam::fvc::meshPhi(), phasePair::Mo(), IATEsource::Mo(), layeredEngineMesh::move(), fvMotionSolverEngineMesh::move(), solidParticleCloud::move(), forces::mu(), Foam::incompressible::New(), Foam::compressible::New(), ThermalDiffusivity< Foam::PhaseCompressibleTurbulenceModel< Foam::fluidThermo > >::New(), PhaseIncompressibleTurbulenceModel< TransportModel >::New(), CompressibleTurbulenceModel< TransportModel >::New(), PhaseCompressibleTurbulenceModel< Foam::phaseModel >::New(), laminarModel< BasicMomentumTransportModel >::New(), fluidThermo::nu(), multiphaseSystem::nu(), optionList::operator()(), rhoMagSqr< Type >::operator()(), continuousGasKEqn< BasicTurbulenceModel >::phaseTransferCoeff(), continuousGasKEpsilon< BasicTurbulenceModel >::phaseTransferCoeff(), NicenoKEqn< BasicTurbulenceModel >::phaseTransferCoeff(), LaheyKEpsilon< BasicTurbulenceModel >::phaseTransferCoeff(), extractEulerianParticles::phiU(), kineticTheoryModel::pPrime(), pressureControl::pressureControl(), rPolynomial< Specie >::psi(), wallBoiling::R(), phaseChange::R(), KinematicParcel< ParcelType >::readFields(), KinematicParcel< ParcelType >::readObjects(), Foam::fvc::relative(), liquidMixtureProperties::rho(), multiphaseSystem::rho(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::rho(), phaseSystem::rho(), heThermo< BasicSolidThermo, MixtureType >::rhoEoS(), InjectionModel< CloudType >::setNumberOfParticles(), ConeNozzleInjection< CloudType >::setProperties(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::solve(), populationBalanceModel::solve(), TDACChemistryModel< CompType, ThermoType >::solve(), StandardChemistryModel< ReactionThermo, ThermoType >::solve(), SprayParcel< ParcelType >::solveTABEq(), coalCloudList::Srho(), ReactingCloud< Foam::DSMCCloud >::Srho(), exponential::tau(), Lun::tau(), ParticleStressModel::tau(), StandardChemistryModel< ReactionThermo, ThermoType >::tc(), MovingPhaseModel< BasePhaseModel >::UEqn(), MovingPhaseModel< BasePhaseModel >::UfEqn(), ReitzKHRT< CloudType >::update(), BlobsSheetAtomization< CloudType >::update(), ReitzDiwakar< CloudType >::update(), ETAB< CloudType >::update(), TAB< CloudType >::update(), LISAAtomization< CloudType >::update(), SHF< CloudType >::update(), PilchErdman< CloudType >::update(), inclinedFilmNusseltHeightFvPatchScalarField::updateCoeffs(), inclinedFilmNusseltInletVelocityFvPatchVectorField::updateCoeffs(), alphaFixedPressureFvPatchScalarField::updateCoeffs(), vibrationShellFvPatchScalarField::updateCoeffs(), matchedFlowRateOutletVelocityFvPatchVectorField::updateCoeffs(), uniformTotalPressureFvPatchScalarField::updateCoeffs(), outletMachNumberPressureFvPatchScalarField::updateCoeffs(), pressurePIDControlInletVelocityFvPatchVectorField::updateCoeffs(), totalPressureFvPatchScalarField::updateCoeffs(), IATEsource::Ur(), KinematicSurfaceFilm< CloudType >::wetSplashInteraction(), while(), KinematicParcel< ParcelType >::writeFields(), KinematicParcel< ParcelType >::writeObjects(), and MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::YiEqn().

◆ rho0

◆ u0

scalar u0 = h0 - p0/rho0

Definition at line 90 of file readInitialConditions.H.

Referenced by if(), and triangleFuncs::intersectAxesBundle().

◆ R0

scalar R0 = p0/(rho0*T0)

Definition at line 91 of file readInitialConditions.H.

◆ Rspecific

Rspecific[0] = R0

Definition at line 92 of file readInitialConditions.H.

Referenced by if().

◆ integratedHeat

scalar integratedHeat = 0.0

Definition at line 94 of file readInitialConditions.H.

Referenced by if().

forAll
forAll(specieData, i)
Definition: readInitialConditions.H:19
fractions
dictionary fractions(initialConditions.subDict("fractions"))
Y
PtrList< volScalarField > & Y
Definition: createFieldRefs.H:7
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Y0
scalarList Y0(nSpecie, Zero)