37 #ifndef blendingMethod_H 38 #define blendingMethod_H 116 const label phaseSet,
117 const label systemSet
125 const label phaseSet,
126 const label systemSet
134 const label phaseSet,
135 const label systemSet
173 const word& modelTypeName,
static Pair< scalar > readParameters(const word &name, const dictionary &dict, const phaseInterface &interface, const Pair< scalar > &bounds, const bool allowNone)
Read a parameter for each phase in the interface.
tmp< volScalarField > alpha(const UPtrList< const volScalarField > &alphas, const label set, const bool protect) const
Get the volume fraction of the given set.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static autoPtr< blendingMethod > New(const word &modelTypeName, const dictionary &dict, const phaseInterface &interface)
tmp< volScalarField > parameter(const UPtrList< const volScalarField > &alphas, const label set, const Pair< scalar > ¶meters) const
Get a blending parameter averaged for the given set.
tmp< volScalarField > f2DispersedIn1(const UPtrList< const volScalarField > &alphas) const
Return the coefficient for models in which phase 2 is dispersed in.
label k
Boltzmann constant.
virtual tmp< volScalarField > fContinuous(const UPtrList< const volScalarField > &alphas, const label phaseSet, const label systemSet) const =0
Evaluate the blending function for sets in which all phases can be.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
virtual bool canBeContinuous(const label index) const =0
Return whether or not a phase can be considered continuous.
tmp< volScalarField > constant(const UPtrList< const volScalarField > &alphas, const scalar k) const
Return a constant field with the given value.
A class for handling words, derived from string.
Abstract base class for functions that are used to combine interfacial sub-models according to the vo...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
static scalar readParameter(const word &name, const dictionary &dict, const Pair< scalar > &bounds, const bool allowNone)
Read a parameter and check it lies within specified bounds.
static bool isParameter(const scalar parameter)
Test if the given scalar is a valid parameter.
virtual ~blendingMethod()
Destructor.
word name(const complex &)
Return a string representation of a complex.
virtual tmp< volScalarField > f(const UPtrList< const volScalarField > &alphas, const label phaseSet, const label systemSet) const
Evaluate the blending function. Filters out phases that cannot.
tmp< volScalarField > f1DispersedIn2(const UPtrList< const volScalarField > &alphas) const
Return the coefficient for models in which phase 1 is dispersed in.
blendingMethod(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
tmp< volScalarField > x(const UPtrList< const volScalarField > &alphas, const label phaseSet, const label systemSet) const
Return the coordinate of the blending function.
TypeName("blendingMethod")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
declareRunTimeSelectionTable(autoPtr, blendingMethod, dictionary,(const dictionary &dict, const phaseInterface &interface),(dict, interface))
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
virtual bool canSegregate() const =0
Return whether or not this interface can segregate.
const phaseInterface interface_
Interface.
tmp< volScalarField > fDisplaced(const UPtrList< const volScalarField > &alphas) const
Return the coefficient for when the interface is displaced by a.