39 Foam::relativeVelocityModel::relativeVelocityModel
41 const dictionary& dict,
42 const incompressibleTwoPhaseInteractingMixture& mixture
48 rhoc_(mixture.rhoc()),
49 rhod_(mixture.rhod()),
71 const dictionary& dict,
72 const incompressibleTwoPhaseInteractingMixture& mixture
75 word modelType(dict.lookup(typeName));
77 Info<<
"Selecting relative velocity model " << modelType <<
endl;
79 dictionaryConstructorTable::iterator cstrIter =
80 dictionaryConstructorTablePtr_->find(modelType);
82 if (cstrIter == dictionaryConstructorTablePtr_->end())
85 <<
"Unknown time scale model type " << modelType
86 <<
", constructor not in hash table" <<
nl <<
nl 87 <<
" Valid time scale model types are:" <<
nl 88 << dictionaryConstructorTablePtr_->sortedToc()
93 autoPtr<relativeVelocityModel>
97 dict.subDict(modelType +
"Coeffs"),
114 return alphac_*rhoc_ + alphad_*rhod_;
126 return tmp<volSymmTensorField>
131 betad*
sqr(Udm_) + betac*
sqr(Ucm)
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
tmp< volSymmTensorField > tauDm() const
Return the stress tensor due to the phase transport.
#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
virtual ~relativeVelocityModel()
Destructor.
errorManip< error > abort(error &err)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
Info<< "Reading field p_rgh\n"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating phaseChangeTwoPhaseMixture\n"<< endl;autoPtr< phaseChangeTwoPhaseMixture > mixture
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