44 void Foam::fv::singleComponentPhaseChange::readCoeffs()
49 && specie_ !=
coeffs().lookup<word>(
"specie")
53 <<
"Cannot change the specie of a " << typeName <<
" model "
67 const word& modelType,
86 ? coeffs().lookup<
word>(
"specie")
92 ? specieThermos().
first().species()[specie_]
95 ? specieThermos().
second().species()[specie_]
98 energySemiImplicit_(false)
114 const label i = index(phaseNames(),
alpha.group());
118 if (index(heNames(), heOrYi.
name()) != -1)
127 specieThermos().valid()[i]
128 ? vfToVif(specieThermos()[i].hsi(specieis_[i],
p, Tchange))
129 : vfToVif(thermos()[i].
hs(
p, Tchange));
130 if (energySemiImplicit_)
141 for (
label j = 0; j < 2; ++ j)
144 specieThermos().valid()[j]
145 ? vfToVif(specieThermos()[j].hai(specieis_[j],
p, Tchange))
146 : vfToVif(thermos()[j].
ha(
p, Tchange));
151 (i == 0 ? 1 - Lfraction() : Lfraction())
157 specieThermos().valid()[i]
158 && specieThermos()[i].containsSpecie(heOrYi.
member())
scalar hs(const scalar p, const scalar T) const
scalar ha(const scalar p, const scalar T) const
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
static word member(const word &name)
Return member (name without the extension)
const word & name() const
Return name.
const Type & second() const
Return second.
const Type & first() const
Return first.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const dictionary & coeffs() const
Return dictionary.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual void addSup(fvMatrix< scalar > &eqn) const
Add a source term to a field-less proxy equation.
Base class for phase change models.
const ThermoRefPair< multicomponentThermo > & specieThermos() const
Return the specie thermo references.
Base class for phase change models in which only a single component changes phase....
virtual bool read(const dictionary &dict)
Read source dictionary.
void addSup(const volScalarField &alpha, const volScalarField &rho, const volScalarField &heOrYi, fvMatrix< scalar > &eqn) const
Override the energy equation to add the phase change heat, or.
singleComponentPhaseChange(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict, const Pair< bool > &fluidThermosRequired, const Pair< bool > &specieThermosRequired)
Construct from explicit source name and mesh.
Base class of the thermophysical property types.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
bool valid(const PtrList< ModelType > &l)
defineTypeNameAndDebug(bound, 0)
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const VolField< Type > &)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensionedScalar sign(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
labelList second(const UList< labelPair > &p)
labelList first(const UList< labelPair > &p)