42 Foam::wordList Foam::relativeVelocityModel::UdmPatchFieldTypes()
const 48 U.boundaryField().size(),
49 calculatedFvPatchScalarField::typeName
52 forAll(U.boundaryField(), i)
56 isA<fixedValueFvPatchVectorField>(U.boundaryField()[i])
57 || isA<slipFvPatchVectorField>(U.boundaryField()[i])
58 || isA<partialSlipFvPatchVectorField>(U.boundaryField()[i])
61 UdmTypes[i] = fixedValueFvPatchVectorField::typeName;
73 const dictionary& dict,
74 const incompressibleTwoPhaseInteractingMixture& mixture,
87 IOobject::READ_IF_PRESENT,
101 const dictionary& dict,
102 const incompressibleTwoPhaseInteractingMixture& mixture,
106 word modelType(dict.lookup(typeName));
108 Info<<
"Selecting relative velocity model " << modelType <<
endl;
110 dictionaryConstructorTable::iterator cstrIter =
111 dictionaryConstructorTablePtr_->find(modelType);
113 if (cstrIter == dictionaryConstructorTablePtr_->end())
116 <<
"Unknown time scale model type " << modelType
117 <<
", constructor not in hash table" <<
nl <<
nl 118 <<
" Valid time scale model types are:" <<
nl 119 << dictionaryConstructorTablePtr_->sortedToc()
124 autoPtr<relativeVelocityModel>
128 dict.optionalSubDict(modelType +
"Coeffs"),
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
#define forAll(list, i)
Loop across all elements in list.
UniformDimensionedField< vector > uniformDimensionedVectorField
static autoPtr< relativeVelocityModel > New(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture, const uniformDimensionedVectorField &g)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const volScalarField & alphad() const
Return const-access to the dispersed phase-fraction.
const dimensionedScalar & rhoc() const
Return const-access to continuous-phase density.
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.
const incompressibleTwoPhaseInteractingMixture & mixture_
Mixture properties.
volVectorField Udm_
Dispersed diffusion velocity.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionedScalar & rhod() const
Return const-access to the dispersed-phase density.
const volVectorField & U() const
Return const-access to the mixture velocity.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Calculate the gradient of the given field.
tmp< volVectorField > acceleration() const
Return the dispersed phase acceleration.
virtual ~relativeVelocityModel()
Destructor.
const incompressibleTwoPhaseInteractingMixture & mixture() const
Mixture properties.
tmp< volSymmTensorField > tauDm() const
Return the stress tensor due to the phase transport.
errorManip< error > abort(error &err)
const uniformDimensionedVectorField & g_
Acceleration due to gravity.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const dimensionSet dimVelocity
defineTypeNameAndDebug(combustionModel, 0)
List< word > wordList
A List of words.
relativeVelocityModel(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture, const uniformDimensionedVectorField &g)
Construct from components.
A class for managing temporary objects.
const dimensionedVector & g
const volScalarField & alphac() const
Return const-access to the continuous phase-fraction.