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;
70 Foam::relativeVelocityModel::relativeVelocityModel
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_;
158 return tmp<volSymmTensorField>
163 betad*
sqr(Udm_) + betac*
sqr(Ucm)
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
#define forAll(list, i)
Loop across all elements in list.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
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
const volScalarField & 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)
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating phaseChangeTwoPhaseMixture\"<< endl;autoPtr< phaseChangeTwoPhaseMixture > mixture
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...
const dimensionSet dimVelocity