33 namespace blendingMethods
45 const UPtrList<const volScalarField>& alphas,
50 tmp<volScalarField> x = this->
x(alphas, phaseSet, systemSet);
51 tmp<volScalarField> a = parameter(alphas, phaseSet, minContinuousAlpha_);
52 return (1 +
tanh((4/transitionAlphaScale_)*(x - a)))/2;
60 const dictionary&
dict,
61 const phaseInterface& interface
64 blendingMethod(dict, interface),
67 readParameters(
"minContinuousAlpha", dict, interface, {0, 1},
true)
78 && minContinuousAlpha_[0] + minContinuousAlpha_[1] < 1 - rootSmall
82 << typeName.capitalise() <<
" blending function for interface " 83 << interface.name() <<
" is invalid in that it creates negative " 84 <<
"coefficients for sub-modelled values. A valid function will " 85 <<
"have minimum continuous alphas that sum one or greater." 110 && minContinuousAlpha_[0] + minContinuousAlpha_[1] > 1 + rootSmall;
dimensionedScalar tanh(const dimensionedScalar &ds)
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool canBeContinuous(const label index) const
Return whether or not a phase can be considered continuous.
virtual bool canBeContinuous(const label index) const
Return whether or not a phase can be considered continuous.
Macros for easy insertion into run-time selection tables.
virtual bool canSegregate() const
Return whether or not this interface can segregate.
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.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
hyperbolic(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
virtual tmp< volScalarField > fContinuous(const UPtrList< const volScalarField > &alphas, const label phaseSet, const label systemSet) const
Evaluate the blending function.
A class for managing temporary objects.