41 Foam::wordList Foam::relativeVelocityModel::UdmPatchFieldTypes()
const 47 U.boundaryField().size(),
48 calculatedFvPatchScalarField::typeName
51 forAll(U.boundaryField(), i)
55 isA<fixedValueFvPatchVectorField>(U.boundaryField()[i])
56 || isA<slipFvPatchVectorField>(U.boundaryField()[i])
57 || isA<partialSlipFvPatchVectorField>(U.boundaryField()[i])
60 UdmTypes[i] = fixedValueFvPatchVectorField::typeName;
72 const dictionary& dict,
73 const incompressibleTwoPhaseInteractingMixture& mixture
79 rhoc_(mixture.rhoc()),
80 rhod_(mixture.rhod()),
89 IOobject::READ_IF_PRESENT,
103 const dictionary& dict,
104 const incompressibleTwoPhaseInteractingMixture& mixture
107 word modelType(dict.lookup(typeName));
109 Info<<
"Selecting relative velocity model " << modelType <<
endl;
111 dictionaryConstructorTable::iterator cstrIter =
112 dictionaryConstructorTablePtr_->find(modelType);
114 if (cstrIter == dictionaryConstructorTablePtr_->end())
117 <<
"Unknown time scale model type " << modelType
118 <<
", constructor not in hash table" <<
nl <<
nl 119 <<
" Valid time scale model types are:" <<
nl 120 << dictionaryConstructorTablePtr_->sortedToc()
125 autoPtr<relativeVelocityModel>
129 dict.optionalSubDict(modelType +
"Coeffs"),
146 return alphac_*rhoc_ + alphad_*rhod_;
161 betad*
sqr(Udm_) + betac*
sqr(Ucm)
#define forAll(list, i)
Loop across all elements in list.
relativeVelocityModel(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture)
Construct from components.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
static tmp< GeometricField< symmTensor, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< symmTensor >> &)
Return a temporary field constructed from name,.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< relativeVelocityModel > New(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture)
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
volScalarField & alpha1(mixture.alpha1())
virtual ~relativeVelocityModel()
Destructor.
tmp< volSymmTensorField > tauDm() const
Return the stress tensor due to the phase transport.
errorManip< error > abort(error &err)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
List< word > wordList
A List of words.
tmp< volScalarField > rho() const
Return the mixture mean density.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
phaseChangeTwoPhaseMixture & mixture
const dimensionSet dimVelocity