44Foam::wordList Foam::relativeVelocityModel::UdmPatchFieldTypes()
const
50 U.boundaryField().size(),
51 calculatedFvPatchScalarField::typeName
58 isA<fixedValueFvPatchVectorField>(
U.boundaryField()[i])
59 || isA<slipFvPatchVectorField>(
U.boundaryField()[i])
60 || isA<partialSlipFvPatchVectorField>(
U.boundaryField()[i])
63 UdmTypes[i] = fixedValueFvPatchVectorField::typeName;
75 const dictionary&
dict,
76 const incompressibleTwoPhaseInteractingMixture& mixture
92 IOobject::READ_IF_PRESENT,
106 const dictionary&
dict,
107 const incompressibleTwoPhaseInteractingMixture&
mixture
110 const word modelType(
dict.
get<word>(typeName));
112 Info<<
"Selecting relative velocity model " << modelType <<
endl;
114 auto* ctorPtr = dictionaryConstructorTable(modelType);
123 *dictionaryConstructorTablePtr_
128 autoPtr<relativeVelocityModel>
149 return alphac_*rhoc_ + alphad_*rhod_;
161 return tmp<volSymmTensorField>
166 betad*
sqr(Udm_) + betac*
sqr(Ucm)
const volScalarField & alpha1
const volScalarField & alpha2
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
const volVectorField & U() const
Return const-access to the mixture velocity.
virtual ~relativeVelocityModel()
Destructor.
tmp< volSymmTensorField > tauDm() const
Return the stress tensor due to the phase transport.
tmp< volScalarField > rho() const
Return the mixture mean density.
const incompressibleTwoPhaseInteractingMixture & mixture_
Mixture properties.
const incompressibleTwoPhaseInteractingMixture & mixture() const
Mixture properties.
A class for managing temporary objects.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
List< word > wordList
A List of words.
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimVelocity
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
static constexpr const zero Zero
Global zero (0)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
#define forAll(list, i)
Loop across all elements in list.