39 Foam::twoPhaseMixture::readPhasePropertiesDict
41 const objectRegistry& obr
44 typeIOobject<IOdictionary> phasePropertiesIO
47 obr.time().constant(),
54 if (phasePropertiesIO.headerOk())
56 return phasePropertiesIO;
60 typeIOobject<IOdictionary> thermophysicalPropertiesIO
62 "thermophysicalProperties",
63 obr.time().constant(),
70 if (thermophysicalPropertiesIO.headerOk())
72 IOdictionary phasePropertiesDict(thermophysicalPropertiesIO);
73 phasePropertiesDict.rename(
"phaseProperties");
74 return phasePropertiesDict;
78 typeIOobject<IOdictionary> transportPropertiesIO
80 "transportProperties",
81 obr.time().constant(),
88 if (transportPropertiesIO.headerOk())
90 IOdictionary phasePropertiesDict(transportPropertiesIO);
91 phasePropertiesDict.rename(
"phaseProperties");
97 IOdictionary phaseDict
103 physicalProperties::typeName,
106 obr.time().constant(),
114 phaseDict.merge(phasePropertiesDict.subDict(
phases[i]));
116 phaseDict.changeKeyword
119 viscosityModel::typeName
122 phaseDict.writeObject
130 phasePropertiesDict.remove(
phases[i]);
133 phasePropertiesDict.writeObject
142 <<
"Upgrading case by " 143 "converting transportProperties into phaseProperties, " 146 physicalProperties::typeName,
152 physicalProperties::typeName,
157 return phasePropertiesDict;
161 return phasePropertiesIO;
181 IOobject::groupName(
"alpha", phase1Name_),
194 IOobject::groupName(
"alpha", phase2Name_),
#define forAll(list, i)
Loop across all elements in list.
virtual bool read()
Read object.
Templated form of IOobject providing type information for file reading and header type checking...
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
stressControl lookup("compactNormalStress") >> compactNormalStress
static word groupName(Name name, const word &group)
twoPhaseMixture(const fvMesh &mesh)
Construct from components.
defineTypeNameAndDebug(combustionModel, 0)
List< word > wordList
A List of words.
#define WarningInFunction
Report a warning using Foam::Warning.
static const versionNumber currentVersion
Current version number.
Mesh data needed to do the Finite Volume discretisation.
phaseSystem::phaseModelList & phases
virtual bool read()=0
Read base phaseProperties dictionary.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...