Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
twoPhaseSystem Class Referenceabstract

Class which solves the volume fraction equations for two phases. More...

Inheritance diagram for twoPhaseSystem:
Inheritance graph
[legend]
Collaboration diagram for twoPhaseSystem:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("twoPhaseSystem")
 
 declareRunTimeSelectionTable (autoPtr, twoPhaseSystem, dictionary,(const fvMesh &mesh),(mesh))
 
 twoPhaseSystem (const fvMesh &)
 
virtual ~twoPhaseSystem ()
 
const phaseModelphase1 () const
 
phaseModelphase1 ()
 
const phaseModelphase2 () const
 
phaseModelphase2 ()
 
const phaseModelotherPhase (const phaseModel &phase) const
 
tmp< volScalarFieldsigma () const
 
tmp< volScalarFieldKd () const
 
tmp< surfaceScalarFieldKdf () const
 
tmp< volScalarFieldVm () const
 
virtual void solve ()
 
 twoPhaseSystem (const fvMesh &, const dimensionedVector &g)
 
virtual ~twoPhaseSystem ()
 
tmp< volScalarFieldrho () const
 
tmp< volVectorFieldU () const
 
tmp< volScalarFieldKd () const
 
tmp< surfaceScalarFieldKdf () const
 
tmp< volScalarFieldVm () const
 
tmp< surfaceScalarFieldVmf () const
 
tmp< volScalarFieldKh () const
 
tmp< volVectorFieldF () const
 
tmp< surfaceScalarFieldFf () const
 
tmp< volScalarFieldD () const
 
void solve ()
 
void correct ()
 
void correctTurbulence ()
 
bool read ()
 
template<class modelType >
const modelType & lookupSubModel (const phasePair &key) const
 
template<class modelType >
const modelType & lookupSubModel (const phaseModel &dispersed, const phaseModel &continuous) const
 
const dimensionedScalarsigma () const
 
const fvMeshmesh () const
 
const phaseModelphase1 () const
 
phaseModelphase1 ()
 
const phaseModelphase2 () const
 
phaseModelphase2 ()
 
const phaseModelotherPhase (const phaseModel &phase) const
 
const surfaceScalarFieldphi () const
 
surfaceScalarFieldphi ()
 
const volScalarFielddgdt () const
 
volScalarFielddgdt ()
 
tmp< surfaceScalarField > & pPrimeByA ()
 
template<>
const dragModellookupSubModel (const phaseModel &dispersed, const phaseModel &continuous) const
 
template<>
const virtualMassModellookupSubModel (const phaseModel &dispersed, const phaseModel &continuous) const
 
tmp< volScalarFieldsigma (const phasePairKey &key) const
 
virtual PtrList< volScalarFielddmdts () const
 
- Public Member Functions inherited from phaseSystem
 TypeName ("phaseSystem")
 
 phaseSystem (const fvMesh &mesh)
 
virtual ~phaseSystem ()
 
virtual volScalarFieldhe ()
 
virtual const volScalarFieldhe () const
 
virtual tmp< volScalarFieldhe (const volScalarField &p, const volScalarField &T) const
 
virtual tmp< scalarFieldhe (const scalarField &p, const scalarField &T, const labelList &cells) const
 
virtual tmp< scalarFieldhe (const scalarField &p, const scalarField &T, const label patchi) const
 
virtual tmp< volScalarFieldhc () const
 
virtual tmp< scalarFieldTHE (const scalarField &h, const scalarField &p, const scalarField &T0, const labelList &cells) const
 
virtual tmp< scalarFieldTHE (const scalarField &h, const scalarField &p, const scalarField &T0, const label patchi) const
 
virtual tmp< scalarFieldrho (const label patchi) const
 
virtual tmp< volScalarFieldCp () const
 
virtual tmp< scalarFieldCp (const scalarField &p, const scalarField &T, const label patchi) const
 
virtual tmp< scalarFieldCp (const scalarField &p, const scalarField &T, const labelList &cells) const
 
virtual tmp< volScalarFieldCv () const
 
virtual tmp< scalarFieldCv (const scalarField &p, const scalarField &T, const label patchI) const
 
virtual tmp< scalarFieldrhoEoS (const scalarField &p, const scalarField &T, const labelList &cells) const
 
virtual tmp< volScalarFieldgamma () const
 
virtual tmp< scalarFieldgamma (const scalarField &p, const scalarField &T, const label patchi) const
 
virtual tmp< volScalarFieldCpv () const
 
virtual tmp< scalarFieldCpv (const scalarField &p, const scalarField &T, const label patchi) const
 
virtual tmp< volScalarFieldCpByCpv () const
 
virtual tmp< scalarFieldCpByCpv (const scalarField &p, const scalarField &T, const label patchi) const
 
virtual tmp< volScalarFieldW () const
 
virtual tmp< volScalarFieldkappa () const
 
virtual tmp< scalarFieldkappa (const label patchi) const
 
virtual tmp< volScalarFieldalphahe () const
 
virtual tmp< scalarFieldalphahe (const label patchi) const
 
virtual tmp< volScalarFieldkappaEff (const volScalarField &kappat) const
 
virtual tmp< scalarFieldkappaEff (const scalarField &alphat, const label patchi) const
 
virtual tmp< volScalarFieldalphaEff (const volScalarField &alphat) const
 
virtual tmp< scalarFieldalphaEff (const scalarField &alphat, const label patchi) const
 
const dimensionedScalarPrt () const
 
virtual tmp< volScalarFieldmu () const
 
virtual tmp< scalarFieldmu (const label patchi) const
 
virtual tmp< volScalarFieldnu () const
 
virtual tmp< scalarFieldnu (const label patchi) const
 
const surfaceScalarFieldphi () const
 
surfaceScalarFieldphi ()
 
const surfaceScalarFieldrhoPhi () const
 
surfaceScalarFieldrhoPhi ()
 
tmp< volVectorFieldU () const
 
tmp< surfaceScalarFieldsurfaceTensionForce () const
 
virtual tmp< volScalarFieldsurfaceTensionCoeff (const phasePairKey &key) const
 
virtual tmp< volScalarFieldcoeffs (const word &key) const
 
void addInterfacePorosity (fvVectorMatrix &UEqn)
 
virtual tmp< volScalarFielddmdt (const phasePairKey &key) const =0
 
virtual tmp< fvScalarMatrixheatTransfer (const volScalarField &T)=0
 
virtual tmp< fvScalarMatrixvolTransfer (const volScalarField &p)=0
 
virtual void alphaTransfer (SuSpTable &Su, SuSpTable &Sp)=0
 
virtual void massSpeciesTransfer (const phaseModel &phase, volScalarField::Internal &Su, volScalarField::Internal &Sp, const word speciesName)=0
 
virtual bool includeVolChange ()=0
 
virtual void correctMassSources (const volScalarField &T)=0
 
virtual word thermoName () const
 
const phasePairTabletotalPhasePairs () const
 
phasePairTabletotalPhasePairs ()
 
const phaseModelTablephases () const
 
phaseModelTablephases ()
 
template<class modelType >
const modelType & lookupSubModel (const phasePair &key) const
 
template<class modelType >
const modelType & lookupSubModel (const phaseModel &from, const phaseModel &to) const
 
virtual bool incompressible () const
 
virtual bool incompressible (const word) const
 
virtual bool isochoric () const
 
const fvMeshmesh () const
 
tmp< surfaceVectorFieldnHatfv (const volScalarField &alpha1, const volScalarField &alpha2) const
 
tmp< surfaceScalarFieldnHatf (const volScalarField &alpha1, const volScalarField &alpha2) const
 
tmp< volScalarFieldK (const volScalarField &alpha1, const volScalarField &alpha2) const
 
tmp< volScalarFieldnearInterface (const volScalarField &alpha1, const volScalarField &alpha2) const
 
tmp< volScalarFieldnearInterface () const
 
 TypeName ("phaseSystem")
 
 phaseSystem (const fvMesh &mesh)
 
virtual ~phaseSystem ()
 
const fvMeshmesh () const
 
const phaseModelListphases () const
 
phaseModelListphases ()
 
const phaseModelPartialListmovingPhases () const
 
phaseModelPartialListmovingPhases ()
 
const phaseModelPartialListstationaryPhases () const
 
phaseModelPartialListstationaryPhases ()
 
const phaseModelPartialListanisothermalPhases () const
 
phaseModelPartialListanisothermalPhases ()
 
const phaseModelPartialListmultiComponentPhases () const
 
phaseModelPartialListmultiComponentPhases ()
 
const phasePairTablephasePairs () const
 
const surfaceScalarFieldphi () const
 
surfaceScalarFieldphi ()
 
const volScalarFielddpdt () const
 
volScalarFielddpdt ()
 
const IOMRFZoneListMRF () const
 
fv::optionsfvOptions () const
 
template<class modelType >
bool foundSubModel (const phasePair &key) const
 
template<class modelType >
const modelType & lookupSubModel (const phasePair &key) const
 
template<class modelType >
bool foundSubModel (const phaseModel &dispersed, const phaseModel &continuous) const
 
template<class modelType >
const modelType & lookupSubModel (const phaseModel &dispersed, const phaseModel &continuous) const
 
template<class modelType >
bool foundBlendedSubModel (const phasePair &key) const
 
template<class modelType >
const BlendedInterfacialModel< modelType > & lookupBlendedSubModel (const phasePair &key) const
 
template<class Type , template< class > class PatchField, class GeoMesh >
void fillFields (const word &name, const dimensionSet &dims, PtrList< GeometricField< Type, PatchField, GeoMesh >> &fieldList) const
 
template<class Type , template< class > class PatchField, class GeoMesh >
void fillFields (const word &name, const dimensionSet &dims, HashPtrTable< GeometricField< Type, PatchField, GeoMesh >> &fieldTable) const
 
tmp< volVectorFieldU () const
 
tmp< volScalarFieldE (const phasePairKey &key) const
 
tmp< volScalarFieldsigma (const phasePairKey &key) const
 
virtual tmp< volScalarFielddmdt (const phasePairKey &key) const
 
virtual PtrList< volScalarFielddmdts () const
 
virtual autoPtr< momentumTransferTablemomentumTransfer ()=0
 
virtual autoPtr< momentumTransferTablemomentumTransferf ()=0
 
virtual PtrList< surfaceScalarFieldAFfs () const =0
 
virtual PtrList< surfaceScalarFieldphiFs (const PtrList< volScalarField > &rAUs)=0
 
virtual PtrList< surfaceScalarFieldphiFfs (const PtrList< surfaceScalarField > &rAUfs)=0
 
virtual PtrList< surfaceScalarFieldphiKdPhis (const PtrList< volScalarField > &rAUs) const =0
 
virtual PtrList< surfaceScalarFieldphiKdPhifs (const PtrList< surfaceScalarField > &rAUfs) const =0
 
virtual PtrList< volVectorFieldKdUByAs (const PtrList< volScalarField > &rAUs) const =0
 
virtual void partialElimination (const PtrList< volScalarField > &rAUs)=0
 
virtual void partialEliminationf (const PtrList< surfaceScalarField > &rAUfs)=0
 
virtual PtrList< surfaceScalarFieldddtCorrByAs (const PtrList< volScalarField > &rAUs, const bool includeVirtualMass=false) const =0
 
virtual const HashPtrTable< surfaceScalarField > & DByAfs () const =0
 
virtual autoPtr< heatTransferTableheatTransfer () const =0
 
virtual autoPtr< massTransferTablemassTransfer () const =0
 
virtual void correctKinematics ()
 
virtual void correctThermo ()
 
virtual void correctEnergyTransport ()
 
template<class modelType >
const Foam::BlendedInterfacialModel< modelType > & lookupBlendedSubModel (const phasePair &key) const
 
- Public Member Functions inherited from basicThermo
 TypeName ("basicThermo")
 
 declareRunTimeSelectionTable (autoPtr, basicThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
 
 declareRunTimeSelectionTable (autoPtr, basicThermo, fvMeshDictPhase,(const fvMesh &mesh, const word &phaseName, const word &dictName),(mesh, phaseName, dictName))
 
 basicThermo (const fvMesh &, const word &phaseName)
 
 basicThermo (const fvMesh &, const dictionary &, const word &phaseName)
 
 basicThermo (const fvMesh &, const word &phaseName, const word &dictionaryName)
 
virtual ~basicThermo ()
 
word phasePropertyName (const word &name) const
 
void validate (const string &app, const word &) const
 
void validate (const string &app, const word &, const word &) const
 
void validate (const string &app, const word &, const word &, const word &) const
 
void validate (const string &app, const word &, const word &, const word &, const word &) const
 
bool dpdt () const noexcept
 
bool updateT () const noexcept
 
virtual volScalarFieldp ()
 
virtual const volScalarFieldp () const
 
virtual const volScalarFieldT () const
 
virtual volScalarFieldT ()
 
virtual const volScalarFieldalpha () const
 
virtual const scalarFieldalpha (const label patchi) const
 
template<class Thermo >
Foam::autoPtr< Thermo > New (const fvMesh &mesh, const word &phaseName)
 
template<class Thermo >
Foam::autoPtr< Thermo > New (const fvMesh &mesh, const dictionary &dict, const word &phaseName)
 
template<class Thermo >
Foam::autoPtr< Thermo > New (const fvMesh &mesh, const word &phaseName, const word &dictName)
 
- Public Member Functions inherited from IOdictionary
 IOdictionary (const IOobject &io, const dictionary *fallback=nullptr)
 
 IOdictionary (const IOobject &io, const dictionary &dict)
 
 IOdictionary (const IOobject &io, const word &wantedType, const dictionary *fallback=nullptr)
 
 IOdictionary (const IOobject &io, Istream &is)
 
virtual ~IOdictionary ()=default
 
virtual bool global () const
 
virtual fileName filePath () const
 
- Public Member Functions inherited from baseIOdictionary
 TypeName ("dictionary")
 
 baseIOdictionary (const baseIOdictionary &)=default
 
 baseIOdictionary (baseIOdictionary &&)=default
 
virtual ~baseIOdictionary ()=default
 
 baseIOdictionary (const IOobject &io, const dictionary *fallback=nullptr)
 
 baseIOdictionary (const IOobject &io, const dictionary &dict)
 
 baseIOdictionary (const IOobject &io, Istream &is)
 
const wordname () const
 
virtual bool readData (Istream &)
 
virtual bool writeData (Ostream &) const
 
void operator= (const baseIOdictionary &rhs)
 
void operator= (const dictionary &rhs)
 
- Public Member Functions inherited from regIOobject
 TypeName ("regIOobject")
 
 regIOobject (const IOobject &io, const bool isTimeObject=false)
 
 regIOobject (const regIOobject &rio)
 
 regIOobject (const regIOobject &rio, bool registerCopy)
 
 regIOobject (const word &newName, const regIOobject &, bool registerCopy)
 
 regIOobject (const IOobject &io, const regIOobject &rio)
 
virtual ~regIOobject ()
 
bool checkIn ()
 
bool checkOut ()
 
virtual void addWatch ()
 
bool ownedByRegistry () const
 
bool store ()
 
void release (const bool unregister=false)
 
label eventNo () const
 
label & eventNo ()
 
bool upToDate (const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const
 
bool upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const
 
void setUpToDate ()
 
virtual void rename (const word &newName)
 
const dictionaryfindMetaData () const noexcept
 
dictionarygetMetaData () noexcept
 
void removeMetaData ()
 
virtual void updateMetaData ()
 
bool headerOk ()
 
IstreamreadStream (const word &, const bool valid=true)
 
void close ()
 
virtual label addWatch (const fileName &)
 
const labelListwatchIndices () const
 
labelListwatchIndices ()
 
virtual bool modified () const
 
virtual bool readIfModified ()
 
virtual bool writeObject (IOstreamOption streamOpt, const bool valid) const
 
virtual bool write (const bool valid=true) const
 
void operator= (const IOobject &io)
 
virtual bool writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const
 
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 
 IOobject (const IOobject &)=default
 
virtual ~IOobject ()=default
 
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false)
 
 IOobject (const IOobject &io, const objectRegistry &registry)
 
 IOobject (const IOobject &io, const word &name)
 
 IOobject (const IOobject &io, readOption, writeOption)
 
autoPtr< IOobjectclone () const
 
autoPtr< IOobjectclone (const objectRegistry &registry) const
 
const objectRegistrydb () const noexcept
 
const Timetime () const
 
const wordname () const noexcept
 
const wordheaderClassName () const noexcept
 
wordheaderClassName () noexcept
 
const stringnote () const noexcept
 
stringnote () noexcept
 
bool registerObject () const noexcept
 
bool registerObject (bool on) noexcept
 
bool globalObject () const noexcept
 
bool globalObject (bool on) noexcept
 
unsigned labelByteSize () const noexcept
 
unsigned scalarByteSize () const noexcept
 
bool isHeaderClassName (const word &clsName) const
 
template<class Type >
bool isHeaderClassName () const
 
readOption readOpt () const noexcept
 
readOption readOpt (readOption opt) noexcept
 
writeOption writeOpt () const noexcept
 
writeOption writeOpt (writeOption opt) noexcept
 
word group () const
 
word member () const
 
const fileNamerootPath () const
 
const fileNamecaseName () const
 
const fileNameinstance () const noexcept
 
fileNameinstance () noexcept
 
const fileNamelocal () const noexcept
 
fileName path () const
 
fileName path (const word &instance, const fileName &local=fileName::null) const
 
fileName objectPath () const
 
fileName objectRelPath () const
 
fileName localFilePath (const word &typeName, const bool search=true) const
 
fileName globalFilePath (const word &typeName, const bool search=true) const
 
IOstreamOption parseHeader (const dictionary &headerDict)
 
bool readHeader (Istream &is)
 
bool readHeader (dictionary &headerDict, Istream &is)
 
template<class Type >
bool typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true)
 
template<class Type >
void warnNoRereading () const
 
bool writeHeader (Ostream &os) const
 
bool writeHeader (Ostream &os, const word &objectType) const
 
void writeHeader (dictionary &dict, IOstreamOption streamOpt) const
 
void writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const
 
bool good () const noexcept
 
bool bad () const noexcept
 
InfoProxy< IOobjectinfo () const
 
void operator= (const IOobject &io)
 
readOptionreadOpt () noexcept
 
writeOptionwriteOpt () noexcept
 
boolregisterObject () noexcept
 
boolglobalObject () noexcept
 
template<>
bool isHeaderClassName () const
 
template<class StringType >
Foam::word groupName (StringType base, const word &group)
 
- Public Member Functions inherited from dictionary
 ClassName ("dictionary")
 
 dictionary ()
 
 dictionary (const fileName &name)
 
 dictionary (const fileName &name, const dictionary &parentDict, Istream &is, bool keepHeader=false)
 
 dictionary (Istream &is)
 
 dictionary (Istream &is, bool keepHeader)
 
 dictionary (const dictionary &parentDict, const dictionary &dict)
 
 dictionary (const dictionary &dict)
 
 dictionary (const dictionary *dict)
 
 dictionary (const dictionary &parentDict, dictionary &&dict)
 
 dictionary (dictionary &&dict)
 
autoPtr< dictionaryclone () const
 
virtual ~dictionary ()
 
const fileNamename () const noexcept
 
fileNamename () noexcept
 
word dictName () const
 
fileName relativeName (const bool caseTag=false) const
 
bool isNullDict () const noexcept
 
const dictionaryparent () const noexcept
 
const dictionarytopDict () const
 
label startLineNumber () const
 
label endLineNumber () const
 
SHA1Digest digest () const
 
tokenList tokens () const
 
bool found (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
entryfindEntry (const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
 
const entryfindEntry (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
const entryfindScoped (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
dictionaryfindDict (const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
 
const dictionaryfindDict (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
const entrylookupEntry (const word &keyword, enum keyType::option matchOpt) const
 
ITstreamlookup (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
template<class T >
T get (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
template<class T >
T getOrDefault (const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
 
template<class T >
T getOrAdd (const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX)
 
template<class T >
bool readEntry (const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
 
template<class T >
bool readIfPresent (const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
 
template<class T , class Predicate >
T getCheck (const word &keyword, const Predicate &pred, enum keyType::option matchOpt=keyType::REGEX) const
 
template<class T , class Predicate >
T getCheckOrDefault (const word &keyword, const T &deflt, const Predicate &pred, enum keyType::option matchOpt=keyType::REGEX) const
 
template<class T , class Predicate >
T getCheckOrAdd (const word &keyword, const T &deflt, const Predicate &pred, enum keyType::option matchOpt=keyType::REGEX)
 
template<class T , class Predicate >
bool readCheck (const word &keyword, T &val, const Predicate &pred, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
 
template<class T , class Predicate >
bool readCheckIfPresent (const word &keyword, T &val, const Predicate &pred, enum keyType::option matchOpt=keyType::REGEX) const
 
bool isDict (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
const dictionarysubDict (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
dictionarysubDict (const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
 
dictionarysubDictOrAdd (const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
 
dictionary subOrEmptyDict (const word &keyword, enum keyType::option matchOpt=keyType::REGEX, const bool mandatory=false) const
 
const dictionaryoptionalSubDict (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 
wordList toc () const
 
wordList sortedToc () const
 
template<class Compare >
wordList sortedToc (const Compare &comp) const
 
List< keyTypekeys (bool patterns=false) const
 
bool substituteKeyword (const word &keyword, bool mergeEntry=false)
 
bool substituteScopedKeyword (const word &keyword, bool mergeEntry=false)
 
entryadd (entry *entryPtr, bool mergeEntry=false)
 
entryadd (const entry &e, bool mergeEntry=false)
 
entryadd (const keyType &k, const word &v, bool overwrite=false)
 
entryadd (const keyType &k, const string &v, bool overwrite=false)
 
entryadd (const keyType &k, const label v, bool overwrite=false)
 
entryadd (const keyType &k, const scalar v, bool overwrite=false)
 
entryadd (const keyType &k, const dictionary &d, bool mergeEntry=false)
 
template<class T >
entryadd (const keyType &k, const T &v, bool overwrite=false)
 
entryset (entry *entryPtr)
 
entryset (const entry &e)
 
entryset (const keyType &k, const dictionary &v)
 
template<class T >
entryset (const keyType &k, const T &v)
 
bool remove (const word &keyword)
 
bool changeKeyword (const keyType &oldKeyword, const keyType &newKeyword, bool overwrite=false)
 
bool merge (const dictionary &dict)
 
void clear ()
 
void transfer (dictionary &dict)
 
void checkITstream (const ITstream &is, const word &keyword) const
 
bool read (Istream &is)
 
bool read (Istream &is, bool keepHeader)
 
void writeEntry (Ostream &os) const
 
void writeEntry (const keyType &keyword, Ostream &os) const
 
void writeEntries (Ostream &os, const bool extraNewLine=false) const
 
void write (Ostream &os, const bool subDict=true) const
 
const_searcher csearch (const word &keyword, enum keyType::option=keyType::REGEX) const
 
const_searcher search (const word &keyword, enum keyType::option=keyType::REGEX) const
 
searcher search (const word &keyword, enum keyType::option=keyType::REGEX)
 
const_searcher csearchScoped (const word &keyword, enum keyType::option) const
 
const_searcher searchScoped (const word &keyword, enum keyType::option) const
 
searcher searchScoped (const word &keyword, enum keyType::option)
 
const dictionarycfindScopedDict (const fileName &dictPath) const
 
const dictionaryfindScopedDict (const fileName &dictPath) const
 
dictionaryfindScopedDict (const fileName &dictPath)
 
dictionarymakeScopedDict (const fileName &dictPath)
 
const_searcher csearchCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
 
bool foundCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
 
const entryfindCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option) const
 
const entrylookupEntryCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option) const
 
ITstreamlookupCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
 
template<class T >
T getCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
 
template<class T >
T getOrDefaultCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, const T &deflt, enum keyType::option=keyType::REGEX) const
 
template<class T >
bool readCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, T &val, enum keyType::option=keyType::REGEX, bool mandatory=true) const
 
template<class T >
bool readIfPresentCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, T &val, enum keyType::option=keyType::REGEX) const
 
void operator= (const dictionary &rhs)
 
void operator+= (const dictionary &rhs)
 
void operator|= (const dictionary &rhs)
 
void operator<<= (const dictionary &rhs)
 
template<class T >
T lookupOrDefault (const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
 
template<class T >
T lookupOrAddDefault (const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX)
 
template<class T >
T lookupOrDefaultCompat (const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
 
ITstreamoperator[] (const word &keyword) const
 
bool found (const word &keyword, bool recursive, bool patternMatch=true) const
 
entrylookupEntryPtr (const word &keyword, bool recursive, bool patternMatch)
 
const entrylookupEntryPtr (const word &keyword, bool recursive, bool patternMatch) const
 
const entrylookupScopedEntryPtr (const word &keyword, bool recursive, bool patternMatch) const
 
const dictionarysubDictPtr (const word &keyword) const
 
dictionarysubDictPtr (const word &keyword)
 
const entrylookupEntry (const word &keyword, bool recursive, bool patternMatch) const
 
ITstreamlookup (const word &keyword, bool recursive, bool patternMatch=true) const
 
template<class T >
T lookupOrDefault (const word &keyword, const T &deflt, bool recursive, bool patternMatch=true) const
 
template<class T >
T lookupOrAddDefault (const word &keyword, const T &deflt, bool recursive, bool patternMatch=true)
 
template<class T >
bool readIfPresent (const word &keyword, T &val, bool recursive, bool patternMatch=true) const
 
template<class T >
T lookupType (const word &keyword, bool recursive=false, bool patternMatch=true) const
 
bool getBool (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 Same as get< bool >(const word&, keyType::option) More...
 
label getLabel (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 Same as get< label >(const word&, keyType::option) More...
 
scalar getScalar (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 Same as get< scalar >(const word&, keyType::option) More...
 
string getString (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 Same as get< string >(const word&, keyType::option) More...
 
word getWord (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 Same as get< word >(const word&, keyType::option) More...
 
fileName getFileName (const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
 Same as get< fileName >(const word&, keyType::option) More...
 
template<class Compare >
Foam::wordList sortedToc (const Compare &comp) const
 
template<class T >
Foam::entryadd (const keyType &k, const T &v, bool overwrite)
 
template<class T >
Foam::entryset (const keyType &k, const T &v)
 
- Public Member Functions inherited from ILList
 ILList ()=default
 
 ILList (T *item)
 
 ILList (Istream &is)
 
 ILList (const ILList< LListBase, T > &lst)
 
 ILList (ILList< LListBase, T > &&lst)
 
template<class CloneArg >
 ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg)
 
template<class INew >
 ILList (Istream &is, const INew &inew)
 
 ~ILList ()
 
bool eraseHead ()
 
bool erase (T *item)
 
void clear ()
 
void transfer (ILList< LListBase, T > &lst)
 
void operator= (const ILList< LListBase, T > &lst)
 
void operator= (ILList< LListBase, T > &&lst)
 
- Public Member Functions inherited from compressibleTransportModel
 TypeName ("compressibleTransportModel")
 
 compressibleTransportModel ()
 
virtual ~compressibleTransportModel ()
 

Static Public Member Functions

static autoPtr< twoPhaseSystemNew (const fvMesh &mesh)
 
- Static Public Member Functions inherited from basicThermo
template<class Thermo >
static autoPtr< Thermo > New (const fvMesh &, const word &phaseName=word::null)
 
template<class Thermo >
static autoPtr< Thermo > New (const fvMesh &, const dictionary &, const word &phaseName=word::null)
 
template<class Thermo >
static autoPtr< Thermo > New (const fvMesh &, const word &phaseName, const word &dictName)
 
static autoPtr< basicThermoNew (const fvMesh &, const word &phaseName=word::null)
 
static word phasePropertyName (const word &name, const word &phaseName)
 
static const basicThermolookupThermo (const fvPatchScalarField &pf)
 
static OstreamprintThermoNames (Ostream &os, const wordList &cmptNames, const wordList &thermoNames)
 
static wordList splitThermoName (const std::string &thermoName, const int nExpectedCmpts)
 
- Static Public Member Functions inherited from regIOobject
template<class Type >
static Type & store (Type *p)
 
template<class Type >
static Type & store (autoPtr< Type > &ptr)
 
template<class Type >
static Type & store (autoPtr< Type > &&ptr)
 
template<class Type >
static Type & store (refPtr< Type > &ptr)
 
template<class Type >
static Type & store (refPtr< Type > &&ptr)
 
template<class Type >
static Type & store (tmp< Type > &ptr)
 
template<class Type >
static Type & store (tmp< Type > &&ptr)
 
- Static Public Member Functions inherited from IOobject
static bool bannerEnabled () noexcept
 
static bool bannerEnabled (bool on) noexcept
 
static bool fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name)
 
template<class StringType >
static word groupName (StringType base, const word &group)
 
static word group (const word &name)
 
static word member (const word &name)
 
static word scopedName (const std::string &scope, const word &name)
 
static IOobject selectIO (const IOobject &io, const fileName &altFile, const word &ioName="")
 
static OstreamwriteBanner (Ostream &os, const bool noSyntaxHint=false)
 
static OstreamwriteDivider (Ostream &os)
 
static OstreamwriteEndDivider (Ostream &os)
 
- Static Public Member Functions inherited from dictionary
static int reportOptional () noexcept
 
static int reportOptional (const int level) noexcept
 
static autoPtr< dictionaryNew (Istream &is)
 

Protected Attributes

phaseModelphase1_
 
phaseModelphase2_
 
- Protected Attributes inherited from phaseSystem
const fvMeshmesh_
 
volScalarField mu_
 
wordList phaseNames_
 
surfaceScalarField phi_
 
surfaceScalarField rhoPhi_
 
phaseModelTable phaseModels_
 
phasePairTable phasePairs_
 
phasePairTable totalPhasePairs_
 
dimensionedScalar Prt_
 
surfaceTensionModelTable surfaceTensionModels_
 
interfacePorousModelTable interfacePorousModelTable_
 
phaseModelList phaseModels_
 
phaseModelPartialList movingPhaseModels_
 
phaseModelPartialList stationaryPhaseModels_
 
phaseModelPartialList anisothermalPhaseModels_
 
phaseModelPartialList multiComponentPhaseModels_
 
volScalarField dpdt_
 
IOMRFZoneList MRF_
 
blendingMethodTable blendingMethods_
 
aspectRatioModelTable aspectRatioModels_
 
- Protected Attributes inherited from basicThermo
const wordphaseName_
 
bool pOwner_
 
bool TOwner_
 
bool dpdt_
 
volScalarFieldp_
 
volScalarFieldT_
 
volScalarField alpha_
 

Static Protected Attributes

static const bool fillFields_ = true
 
- Static Protected Attributes inherited from regIOobject
static bool masterOnlyReading = false
 

Additional Inherited Members

- Public Types inherited from phaseSystem
typedef HashTable< autoPtr< phasePair >, phasePairKey, phasePairKey::hashphasePairTable
 
typedef HashTable< autoPtr< phaseModel > > phaseModelTable
 
typedef HashTable< volScalarField::InternalSuSpTable
 
typedef HashPtrTable< fvVectorMatrixmomentumTransferTable
 
typedef HashPtrTable< fvScalarMatrixheatTransferTable
 
typedef HashPtrTable< fvScalarMatrixmassTransferTable
 
typedef PtrListDictionary< phaseModelphaseModelList
 
typedef UPtrList< phaseModelphaseModelPartialList
 
typedef HashTable< autoPtr< phasePair >, phasePairKey, phasePairKey::hashphasePairTable
 
- Public Types inherited from IOobject
enum  objectState : char { GOOD, BAD }
 
enum  readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ }
 
enum  writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 }
 
enum  fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster }
 
- Public Types inherited from dictionary
typedef Searcher< true > const_searcher
 
typedef Searcher< false > searcher
 
- Public Attributes inherited from dictionary
friend const_searcher
 
friend searcher
 
- Static Public Attributes inherited from phaseSystem
static const word phasePropertiesName
 
static const word propertiesName
 
- Static Public Attributes inherited from basicThermo
static const word dictName
 
- Static Public Attributes inherited from IOobject
static const Enum< fileCheckTypesfileCheckTypesNames
 
static char scopeSeparator
 
static fileCheckTypes fileModificationChecking
 
static float fileModificationSkew
 
static int maxFileModificationPolls
 
- Static Public Attributes inherited from dictionary
static int writeOptionalEntries
 
static const dictionary null
 
static refPtr< OSstreamreportingOutput
 
- Protected Types inherited from phaseSystem
typedef HashTable< dictionary, phasePairKey, phasePairKey::hashdictTable
 
typedef HashTable< autoPtr< multiphaseInter::surfaceTensionModel >, phasePairKey, phasePairKey::hashsurfaceTensionModelTable
 
typedef HashTable< autoPtr< porousModel >, phasePairKey, phasePairKey::hashinterfacePorousModelTable
 
typedef HashTable< dictionary, phasePairKey, phasePairKey::hashdictTable
 
typedef HashTable< autoPtr< blendingMethod > > blendingMethodTable
 
typedef HashTable< autoPtr< surfaceTensionModel >, phasePairKey, phasePairKey::hashsurfaceTensionModelTable
 
typedef HashTable< autoPtr< aspectRatioModel >, phasePairKey, phasePairKey::hashaspectRatioModelTable
 
- Protected Member Functions inherited from phaseSystem
void calcMu ()
 
HashTable< autoPtr< phaseModel > > generatePhaseModels (const wordList &names) const
 
tmp< surfaceScalarFieldgeneratePhi (const HashTable< autoPtr< phaseModel >> &phaseModels) const
 
void generatePairs (const dictTable &modelDicts)
 
void generatePairsTable ()
 
template<class modelType >
void createSubModels (const dictTable &modelDicts, HashTable< autoPtr< modelType >, phasePairKey, phasePairKey::hash > &models)
 
template<class modelType >
void createSubModels (const dictTable &modelDicts, const fvMesh &mesh, HashTable< autoPtr< modelType >, phasePairKey, phasePairKey::hash > &models)
 
template<class modelType >
void generatePairsAndSubModels (const word &modelName, HashTable< autoPtr< modelType >, phasePairKey, phasePairKey::hash > &models)
 
template<class modelType >
void generatePairsAndSubModels (const word &modelName, const fvMesh &mesh, HashTable< autoPtr< modelType >, phasePairKey, phasePairKey::hash > &models)
 
template<class modelType >
void generatePairsAndSubModels (const word &modelName, HashTable< HashTable< autoPtr< modelType >>, phasePairKey, phasePairKey::hash > &models)
 
tmp< surfaceScalarFieldcalcPhi (const phaseModelList &phaseModels) const
 
void generatePairs (const dictTable &modelDicts)
 
template<class modelType >
void createSubModels (const dictTable &modelDicts, HashTable< autoPtr< modelType >, phasePairKey, phasePairKey::hash > &models)
 
template<class modelType >
void generatePairsAndSubModels (const word &modelName, HashTable< autoPtr< modelType >, phasePairKey, phasePairKey::hash > &models)
 
template<class modelType >
void generatePairsAndSubModels (const word &modelName, HashTable< autoPtr< BlendedInterfacialModel< modelType >>, phasePairKey, phasePairKey::hash > &models, const bool correctFixedFluxBCs=true)
 
template<class modelType >
void generatePairsAndSubModels (const word &modelName, HashTable< Pair< autoPtr< modelType >>, phasePairKey, phasePairKey::hash > &models, const bool correctFixedFluxBCs=true)
 
template<class GeoField >
void addField (const phaseModel &phase, const word &fieldName, tmp< GeoField > field, PtrList< GeoField > &fieldList) const
 
template<class GeoField >
void addField (const phaseModel &phase, const word &fieldName, const GeoField &field, PtrList< GeoField > &fieldList) const
 
template<class GeoField >
void addField (const phaseModel &phase, const word &fieldName, tmp< GeoField > field, HashPtrTable< GeoField > &fieldTable) const
 
template<class GeoField >
void addField (const phaseModel &phase, const word &fieldName, const GeoField &field, HashPtrTable< GeoField > &fieldTable) const
 
- Protected Member Functions inherited from basicThermo
wordList heBoundaryTypes ()
 
wordList heBoundaryBaseTypes ()
 
 basicThermo (const basicThermo &)=delete
 
- Protected Member Functions inherited from regIOobject
bool readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName)
 
- Protected Member Functions inherited from IOobject
void setBad (const string &s)
 
- Static Protected Member Functions inherited from IOobject
static void writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr)
 
static void writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr)
 

Detailed Description

Class which solves the volume fraction equations for two phases.

Source files

Source files

Definition at line 49 of file twoPhaseSystem.H.

Constructor & Destructor Documentation

◆ twoPhaseSystem() [1/2]

twoPhaseSystem ( const fvMesh mesh)

Definition at line 52 of file twoPhaseSystem.C.

References alpha1, and mesh.

◆ ~twoPhaseSystem() [1/2]

~twoPhaseSystem ( )
virtual

Definition at line 69 of file twoPhaseSystem.C.

◆ twoPhaseSystem() [2/2]

twoPhaseSystem ( const fvMesh mesh,
const dimensionedVector g 
)

Definition at line 49 of file twoPhaseSystem.C.

References dict, dictName(), forAllConstIter, g, and Foam::New().

Here is the call graph for this function:

◆ ~twoPhaseSystem() [2/2]

virtual ~twoPhaseSystem ( )
virtual

Member Function Documentation

◆ TypeName()

TypeName ( "twoPhaseSystem"  )

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
twoPhaseSystem  ,
dictionary  ,
(const fvMesh &mesh ,
(mesh  
)

◆ New()

Foam::autoPtr< Foam::twoPhaseSystem > New ( const fvMesh mesh)
static

Definition at line 28 of file twoPhaseSystemNew.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, and mesh.

Here is the call graph for this function:

◆ phase1() [1/4]

Foam::phaseModel & phase1 ( ) const
inline

Definition at line 23 of file twoPhaseSystemI.H.

References twoPhaseSystem::phase1_.

◆ phase1() [2/4]

phaseModel& phase1 ( )

◆ phase2() [1/4]

Foam::phaseModel & phase2 ( ) const
inline

Definition at line 35 of file twoPhaseSystemI.H.

◆ phase2() [2/4]

phaseModel& phase2 ( )

◆ otherPhase() [1/2]

const Foam::phaseModel & otherPhase ( const phaseModel phase) const
inline

Definition at line 48 of file twoPhaseSystemI.H.

Referenced by IATEsource::otherPhase().

Here is the caller graph for this function:

◆ sigma() [1/3]

const Foam::dimensionedScalar & sigma ( ) const

Definition at line 76 of file twoPhaseSystem.C.

References Foam::name(), phase1, phase2, and sigma().

Here is the call graph for this function:

◆ Kd() [1/2]

Definition at line 86 of file twoPhaseSystem.C.

References Kd(), Foam::name(), phase1, and phase2.

Here is the call graph for this function:

◆ Kdf() [1/2]

Definition at line 96 of file twoPhaseSystem.C.

References Kdf(), Foam::name(), phase1, and phase2.

Here is the call graph for this function:

◆ Vm() [1/2]

Definition at line 106 of file twoPhaseSystem.C.

References Foam::name(), phase1, and phase2.

Here is the call graph for this function:

◆ solve() [1/2]

void solve ( )
virtual

◆ rho()

Foam::tmp< Foam::volScalarField > rho ( ) const
virtual

Reimplemented from phaseSystem.

Definition at line 277 of file twoPhaseSystem.C.

◆ U()

Definition at line 283 of file twoPhaseSystem.C.

◆ Kd() [2/2]

tmp<volScalarField> Kd ( ) const

◆ Kdf() [2/2]

tmp<surfaceScalarField> Kdf ( ) const

◆ Vm() [2/2]

tmp<volScalarField> Vm ( ) const

◆ Vmf()

Definition at line 315 of file twoPhaseSystem.C.

◆ Kh()

Definition at line 321 of file twoPhaseSystem.C.

◆ F()

Definition at line 327 of file twoPhaseSystem.C.

◆ Ff()

Definition at line 333 of file twoPhaseSystem.C.

◆ D()

Definition at line 339 of file twoPhaseSystem.C.

◆ solve() [2/2]

void solve ( )
virtual

Implements phaseSystem.

◆ correct()

void correct ( )
virtual

Reimplemented from phaseSystem.

Definition at line 534 of file twoPhaseSystem.C.

◆ correctTurbulence()

void correctTurbulence ( )
virtual

Reimplemented from phaseSystem.

Definition at line 541 of file twoPhaseSystem.C.

◆ read()

bool read ( )
virtual

Reimplemented from phaseSystem.

Definition at line 548 of file twoPhaseSystem.C.

References regIOobject::read().

Here is the call graph for this function:

◆ lookupSubModel() [1/4]

const modelType & lookupSubModel ( const phasePair key) const

Definition at line 34 of file twoPhaseSystemTemplates.C.

References IOobject::groupName(), Foam::glTF::key(), objectRegistry::lookupObject(), and mesh.

Here is the call graph for this function:

◆ lookupSubModel() [2/4]

const modelType& lookupSubModel ( const phaseModel dispersed,
const phaseModel continuous 
) const

◆ sigma() [2/3]

const dimensionedScalar& sigma ( ) const

◆ mesh()

const Foam::fvMesh & mesh ( ) const
inline

Definition at line 23 of file twoPhaseSystemI.H.

◆ phase1() [3/4]

const phaseModel& phase1 ( ) const
inline

◆ phase1() [4/4]

phaseModel& phase1 ( )
inline

◆ phase2() [3/4]

const phaseModel& phase2 ( ) const
inline

◆ phase2() [4/4]

phaseModel& phase2 ( )
inline

◆ otherPhase() [2/2]

const phaseModel& otherPhase ( const phaseModel phase) const
inline

◆ phi() [1/2]

Foam::surfaceScalarField & phi ( ) const
inline

Definition at line 69 of file twoPhaseSystemI.H.

◆ phi() [2/2]

surfaceScalarField& phi ( )
inline

◆ dgdt() [1/2]

Foam::volScalarField & dgdt ( ) const
inline

Definition at line 81 of file twoPhaseSystemI.H.

◆ dgdt() [2/2]

volScalarField& dgdt ( )
inline

◆ pPrimeByA()

Foam::tmp< Foam::surfaceScalarField > & pPrimeByA ( )
inline

Definition at line 93 of file twoPhaseSystemI.H.

◆ lookupSubModel() [3/4]

const dragModel& lookupSubModel ( const phaseModel dispersed,
const phaseModel continuous 
) const
inline

Definition at line 48 of file twoPhaseSystemTemplates.C.

◆ lookupSubModel() [4/4]

const virtualMassModel& lookupSubModel ( const phaseModel dispersed,
const phaseModel continuous 
) const
inline

Definition at line 59 of file twoPhaseSystemTemplates.C.

◆ sigma() [3/3]

Definition at line 312 of file phaseSystem.C.

◆ dmdts()

Definition at line 344 of file phaseSystem.C.

Member Data Documentation

◆ fillFields_

const bool fillFields_ = true
staticprotected

Definition at line 74 of file twoPhaseSystem.H.

◆ phase1_

phaseModel& phase1_
protected

Definition at line 77 of file twoPhaseSystem.H.

Referenced by twoPhaseSystem::phase1().

◆ phase2_

phaseModel& phase2_
protected

Definition at line 80 of file twoPhaseSystem.H.


The documentation for this class was generated from the following files: