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 phaseModel& liquid = fluid.
phases()[liquidPhaseName_];
104 const phaseInterface interface(
phase(), liquid);
106 if (fluid.foundInterfacialModel<saturationModel>(interface))
108 const saturationModel& satModel =
109 fluid.lookupInterfacialModel<saturationModel>(interface);
113 satModel.Tsat(liquid.thermo().p()) - liquid.thermo().T()
122 (d1_*(Tsub - Tsub2_) + d2_*(Tsub - Tsub1_))/(Tsub2_ - Tsub1_)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
virtual tmp< volScalarField > d() const
Get the diameter field.
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
const phaseModelList & phases() const
Return the phase models.
stressControl lookup("compactNormalStress") >> compactNormalStress
const phaseModel & phase() const
Return the phase.
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
virtual ~linearTsub()
Destructor.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
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.