STYLE: Code tidying

This commit is contained in:
Andrew Heather
2017-07-07 11:50:40 +01:00
parent 91b6f37c73
commit a47e0748c4
3 changed files with 6 additions and 18 deletions

View File

@ -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

View File

@ -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();

View File

@ -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