35 namespace diameterModels
47 const dictionary& diameterProperties,
48 const phaseModel& phase
51 spherical(diameterProperties, phase),
52 liquidPhaseName_(diameterProperties.
lookup(
"liquidPhase")),
53 d2_(
"d2",
dimLength, diameterProperties.lookupOrDefault(
"d2", 0.0015)),
58 diameterProperties.lookupOrDefault(
"Tsub2", 0)
60 d1_(
"d1",
dimLength, diameterProperties.lookupOrDefault(
"d1", 0.00015)),
65 diameterProperties.lookupOrDefault(
"Tsub1", 13.5)
71 IOobject::groupName(
"d", phase.
name()),
79 Info<<
" d2: " << d2_.value() <<
endl 80 <<
" Tsub2: " << Tsub2_.value() <<
endl 81 <<
" d1: " << d1_.value() <<
endl 82 <<
" Tsub1: " << Tsub1_.value() <<
endl;
103 const phaseSystem& fluid =
104 refCast<const phaseSystem>
106 phase().
mesh().lookupObject<phaseSystem>(
"phaseProperties")
109 const phaseModel& liquid(fluid.phases()[liquidPhaseName_]);
110 const phasePair pair(
phase(), liquid);
112 if (fluid.foundSubModel<saturationModel>(pair))
114 const saturationModel& satModel =
115 fluid.lookupSubModel<saturationModel>(pair);
119 satModel.Tsat(liquid.thermo().p()) - liquid.thermo().T()
128 (d1_*(Tsub - Tsub2_) + d2_*(Tsub - Tsub1_))/(Tsub2_ - Tsub1_)
virtual tmp< volScalarField > d() const
Get the diameter field.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
const dimensionSet dimLength
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
const phaseModel & phase() const
Return the phase.
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Mesh & mesh() const
Return mesh.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.
virtual ~linearTsub()
Destructor.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
linearTsub(const dictionary &diameterProperties, const phaseModel &phase)
Construct from dictionary and phase.
A class for managing temporary objects.
const dictionary & diameterProperties() const
Return the phase diameter properties dictionary.
const dimensionSet dimTemperature
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual void correct()
Correct the model.