Mixing plane update
This commit is contained in:
parent
f475e7e958
commit
83f7e9aab2
3 changed files with 5 additions and 7 deletions
|
@ -180,7 +180,7 @@ tmp<Field<Type> > mixedFvPatchField<Type>::valueInternalCoeffs
|
|||
const tmp<scalarField>&
|
||||
) const
|
||||
{
|
||||
return Type(pTraits<Type>::one)*(1.0 - valueFraction_);
|
||||
return pTraits<Type>::one*(1.0 - valueFraction_);
|
||||
|
||||
}
|
||||
|
||||
|
@ -200,7 +200,7 @@ tmp<Field<Type> > mixedFvPatchField<Type>::valueBoundaryCoeffs
|
|||
template<class Type>
|
||||
tmp<Field<Type> > mixedFvPatchField<Type>::gradientInternalCoeffs() const
|
||||
{
|
||||
return -Type(pTraits<Type>::one)*valueFraction_*this->patch().deltaCoeffs();
|
||||
return -pTraits<Type>::one*valueFraction_*this->patch().deltaCoeffs();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -61,8 +61,6 @@ void mixingPlaneFvPatchField<Type>::readMixingType() const
|
|||
(
|
||||
dict.lookup(fieldName)
|
||||
);
|
||||
Info<< "Custom mixing type for " << fieldName << ": "
|
||||
<< mixingPlaneInterpolation::mixingTypeNames_[mixing_] << endl;
|
||||
}
|
||||
else if (dict.found("default"))
|
||||
{
|
||||
|
@ -615,7 +613,7 @@ tmp<Field<Type> > mixingPlaneFvPatchField<Type>::valueBoundaryCoeffs
|
|||
// || mixing_ == mixingPlaneInterpolation::FLUX_AVERAGING
|
||||
// )
|
||||
// {
|
||||
// return -Type(pTraits<Type>::one)*this->patch().deltaCoeffs();
|
||||
// return -pTraits<Type>::one*this->patch().deltaCoeffs();
|
||||
// }
|
||||
// else if (mixing_ == mixingPlaneInterpolation::ZERO_GRADIENT)
|
||||
// {
|
||||
|
@ -761,7 +759,7 @@ void mixingPlaneFvPatchField<Type>::patchInterpolate
|
|||
(
|
||||
this->patchInternalField()
|
||||
)
|
||||
+ pY*this->patchNeighbourField();
|
||||
+ pY*this->patchNeighbourField();
|
||||
}
|
||||
else if (mixing_ == mixingPlaneInterpolation::ZERO_GRADIENT)
|
||||
{
|
||||
|
|
|
@ -74,7 +74,7 @@ class mixingPlaneFvPatchField
|
|||
word phiName_;
|
||||
|
||||
//- Flux mask for averaging. Size is equal to the number of bands
|
||||
// Flux mask behaves live valueFraction:
|
||||
// Flux mask behaves like valueFraction:
|
||||
// 1 = use interpolated value from mixing plane interpolator
|
||||
// 0 = use patch internal field to mimic zero gradient behaviour
|
||||
mutable scalarField fluxMask_;
|
||||
|
|
Reference in a new issue