36#ifndef BlendedInterfacialModel_H
37#define BlendedInterfacialModel_H
39#include "blendingMethod.H"
41#include "orderedPhasePair.H"
54template<
class modelType>
55class BlendedInterfacialModel
60 const phasePair& pair_;
63 const orderedPhasePair& pair1In2_;
66 const orderedPhasePair& pair2In1_;
69 autoPtr<modelType> model_;
72 autoPtr<modelType> model1In2_;
75 autoPtr<modelType> model2In1_;
78 const blendingMethod& blending_;
81 bool correctFixedFluxBCs_;
87 BlendedInterfacialModel
89 const BlendedInterfacialModel&
93 void operator=(
const BlendedInterfacialModel<modelType>&) =
delete;
96 template<
class GeometricField>
97 void correctFixedFluxBCs(GeometricField&
field)
const;
112 const bool correctFixedFluxBCs =
true
153 #include "BlendedInterfacialModel.C"
tmp< surfaceScalarField > Kf() const
Return the face blended force coefficient.
tmp< surfaceScalarField > Ff() const
Return the face blended force.
tmp< volScalarField > D() const
Return the blended diffusivity.
bool hasModel(const phaseModel &phase) const
Return true if a model is specified for the supplied phase.
tmp< GeometricField< Type, fvPatchField, volMesh > > F() const
Return the blended force.
tmp< volScalarField > D() const
Return the blended diffusivity.
tmp< surfaceScalarField > Kf() const
Return the face blended force coefficient.
tmp< volScalarField > K() const
Return the blended force coefficient.
BlendedInterfacialModel(const phasePair::dictTable &modelTable, const blendingMethod &blending, const phasePair &pair, const orderedPhasePair &pair1In2, const orderedPhasePair &pair2In1, const bool correctFixedFluxBCs=true)
Construct from the model table, dictionary and pairs.
tmp< volScalarField > K() const
Return the blended force coefficient.
tmp< surfaceScalarField > Ff() const
Return the face blended force.
~BlendedInterfacialModel()
Destructor.
A HashTable similar to std::unordered_map.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
A class for managing temporary objects.