Skip to content
Snippets Groups Projects
Commit 9557cde8 authored by Andrew Heather's avatar Andrew Heather
Browse files

STYLE: Minor code formatting

parent c039a09e
Branches
Tags
1 merge request!560Integration of grey area turbulence models from Upstream CFD
......@@ -348,7 +348,7 @@ void Foam::fvc::spreadSource
zeroGradientFvPatchField<scalar>::typeName
);
//- Smearing of source term field
// Smearing of source term field
fvScalarMatrix mSourceEqn
(
fvm::Sp(scalar(1), mDotSmear)
......@@ -384,7 +384,7 @@ void Foam::fvc::spreadSource
reduce(intvDotVapor.value(), sumOp<scalar>());
reduce(intvDotLiquid.value(), sumOp<scalar>());
//- Calculate Nl and Nv
// Calculate Nl and Nv
dimensionedScalar Nl ("Nl", dimless, Zero);
dimensionedScalar Nv ("Nv", dimless, Zero);
......@@ -399,7 +399,7 @@ void Foam::fvc::spreadSource
Nl = intmSource0/intvDotLiquid;
}
//- Set source terms in cells with alpha1 < cutoff or alpha1 > 1-cutoff
// Set source terms in cells with alpha1 < cutoff or alpha1 > 1-cutoff
forAll(mesh.C(), celli)
{
if (alpha1[celli] < cutoff)
......@@ -417,4 +417,6 @@ void Foam::fvc::spreadSource
}
}
}
// ************************************************************************* //
......@@ -32,24 +32,27 @@ Description
Provides functions smooth spread and sweep which use the FaceCellWave
algorithm to smooth and redistribute the first field argument.
smooth: smooths the field by ensuring the values in neighbouring cells are
at least coeff* the cell value.
spread: redistributes the field by spreading the maximum value within the
region defined by the value (being between alphaMax and alphaMin)
and gradient of alpha (where the difference between the values in
neighbouring cells is larger than alphaDiff).
sweep: redistributes the field by sweeping the maximum value where the
gradient of alpha is large (where the difference between the values
in neighbouring cells is larger than alphaDiff) away from that
starting point of the sweep.
spreadSource: spread a source field (mDotIn) for two phase multiphase using
a laplacian operator and diffussivity D.
The spread source (mDotOut) is distributed from alpha1 < cutoff
to alpha1 > 1 - cutoff, and it is zero across the interface
smooth:
smooths the field by ensuring the values in neighbouring cells are
at least coeff* the cell value.
spread:
redistributes the field by spreading the maximum value within the
region defined by the value (being between alphaMax and alphaMin)
and gradient of alpha (where the difference between the values in
neighbouring cells is larger than alphaDiff).
sweep:
redistributes the field by sweeping the maximum value where the
gradient of alpha is large (where the difference between the values
in neighbouring cells is larger than alphaDiff) away from that
starting point of the sweep.
spreadSource:
spread a source field (mDotIn) for two phase multiphase using
a laplacian operator and diffusivity D.
The spread source (mDotOut) is distributed from alpha1 < cutoff
to alpha1 > 1 - cutoff, and it is zero across the interface
SourceFiles
fvcSmooth.C
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment