mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Code tidying
This commit is contained in:
@ -34,7 +34,7 @@ Description
|
||||
are calculated using:
|
||||
|
||||
\f[
|
||||
U = frac{U_f}{K} ln(\frac{z + z_0}{z_0})
|
||||
U = \frac{U_f}{K} ln \left(\frac{z + z_0}{z_0}\right)
|
||||
\f]
|
||||
|
||||
where
|
||||
|
||||
@ -52,19 +52,7 @@ void Foam::circleSet::calcSamples
|
||||
DynamicList<scalar>& samplingCurveDist
|
||||
) const
|
||||
{
|
||||
static const string funcName =
|
||||
(
|
||||
"void circleSet::calcSamples"
|
||||
"("
|
||||
"DynamicList<point>&, "
|
||||
"DynamicList<label>&, "
|
||||
"DynamicList<label>&, "
|
||||
"DynamicList<label>&, "
|
||||
"DynamicList<scalar>&"
|
||||
") const"
|
||||
);
|
||||
|
||||
// set start point
|
||||
// Set start point
|
||||
label celli = searchEngine().findCell(startPoint_);
|
||||
if (celli != -1)
|
||||
{
|
||||
@ -81,12 +69,12 @@ void Foam::circleSet::calcSamples
|
||||
<< " at location " << startPoint_ << endl;
|
||||
}
|
||||
|
||||
// add remaining points
|
||||
// Add remaining points
|
||||
const scalar alpha = constant::mathematical::pi/180.0*dTheta_;
|
||||
const scalar sinAlpha = sin(alpha);
|
||||
const scalar cosAlpha = cos(alpha);
|
||||
|
||||
// first axis
|
||||
// First axis
|
||||
vector axis1 = startPoint_ - origin_;
|
||||
const scalar radius = mag(axis1);
|
||||
|
||||
@ -214,7 +202,7 @@ Foam::circleSet::circleSet
|
||||
startPoint_(dict.lookup("startPoint")),
|
||||
dTheta_(readScalar(dict.lookup("dTheta")))
|
||||
{
|
||||
// normalise circleAxis
|
||||
// Normalise circleAxis
|
||||
circleAxis_ /= mag(circleAxis_);
|
||||
|
||||
genSamples();
|
||||
|
||||
@ -28,7 +28,7 @@ Description
|
||||
A simple single-phase transport model based on viscosityModel.
|
||||
|
||||
Used by the incompressible single-phase solvers like simpleFoam,
|
||||
turbFoam etc.
|
||||
pimpleFoam etc.
|
||||
|
||||
SourceFiles
|
||||
singlePhaseTransportModel.C
|
||||
|
||||
Reference in New Issue
Block a user