mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Surface film - use deltaSmall instead of creating dim scalars
This commit is contained in:
@ -183,7 +183,7 @@ tmp<volScalarField> kinematicSingleLayer::pp()
|
||||
|
||||
void kinematicSingleLayer::correctAlpha()
|
||||
{
|
||||
alpha_ == pos(delta_ - dimensionedScalar("SMALL", dimLength, SMALL));
|
||||
alpha_ == pos(delta_ - deltaSmall_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -196,9 +196,8 @@ inline tmp<volScalarField> kinematicSingleLayer::mass() const
|
||||
|
||||
inline tmp<volScalarField> kinematicSingleLayer::netMass() const
|
||||
{
|
||||
dimensionedScalar d0("SMALL", dimLength, ROOTVSMALL);
|
||||
return
|
||||
fvc::surfaceSum(pos(phi_)*phi_/(fvc::interpolate(delta_) + d0))
|
||||
fvc::surfaceSum(pos(phi_)*phi_/(fvc::interpolate(delta_) + deltaSmall_))
|
||||
*time().deltaT()
|
||||
+ rho_*delta_*magSf();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user