Go to the documentation of this file.
44 Foam::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;
73 Foam::relativeVelocityModel::relativeVelocityModel
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 cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
116 if (!cstrIter.found())
123 *dictionaryConstructorTablePtr_
128 autoPtr<relativeVelocityModel>
132 dict.optionalSubDict(modelType +
"Coeffs"),
149 return alphac_*rhoc_ + alphad_*rhod_;
161 return tmp<volSymmTensorField>
166 betad*
sqr(Udm_) + betac*
sqr(Ucm)
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimVelocity
const volScalarField & alpha2
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
tmp< volScalarField > rho() const
Return the mixture mean density.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const volScalarField & alpha1
#define forAll(list, i)
Loop across all elements in list.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
List< word > wordList
A List of words.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
messageStream Info
Information stream (uses stdout - output is on the master only)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
errorManip< error > abort(error &err)
const volVectorField & U() const
Return const-access to the mixture velocity.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const incompressibleTwoPhaseInteractingMixture & mixture_
Mixture properties.
static autoPtr< relativeVelocityModel > New(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture)
defineTypeNameAndDebug(combustionModel, 0)
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
tmp< volSymmTensorField > tauDm() const
Return the stress tensor due to the phase transport.
virtual ~relativeVelocityModel()
Destructor.