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:
|
are calculated using:
|
||||||
|
|
||||||
\f[
|
\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]
|
\f]
|
||||||
|
|
||||||
where
|
where
|
||||||
|
|||||||
@ -52,19 +52,7 @@ void Foam::circleSet::calcSamples
|
|||||||
DynamicList<scalar>& samplingCurveDist
|
DynamicList<scalar>& samplingCurveDist
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
static const string funcName =
|
// Set start point
|
||||||
(
|
|
||||||
"void circleSet::calcSamples"
|
|
||||||
"("
|
|
||||||
"DynamicList<point>&, "
|
|
||||||
"DynamicList<label>&, "
|
|
||||||
"DynamicList<label>&, "
|
|
||||||
"DynamicList<label>&, "
|
|
||||||
"DynamicList<scalar>&"
|
|
||||||
") const"
|
|
||||||
);
|
|
||||||
|
|
||||||
// set start point
|
|
||||||
label celli = searchEngine().findCell(startPoint_);
|
label celli = searchEngine().findCell(startPoint_);
|
||||||
if (celli != -1)
|
if (celli != -1)
|
||||||
{
|
{
|
||||||
@ -81,12 +69,12 @@ void Foam::circleSet::calcSamples
|
|||||||
<< " at location " << startPoint_ << endl;
|
<< " at location " << startPoint_ << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add remaining points
|
// Add remaining points
|
||||||
const scalar alpha = constant::mathematical::pi/180.0*dTheta_;
|
const scalar alpha = constant::mathematical::pi/180.0*dTheta_;
|
||||||
const scalar sinAlpha = sin(alpha);
|
const scalar sinAlpha = sin(alpha);
|
||||||
const scalar cosAlpha = cos(alpha);
|
const scalar cosAlpha = cos(alpha);
|
||||||
|
|
||||||
// first axis
|
// First axis
|
||||||
vector axis1 = startPoint_ - origin_;
|
vector axis1 = startPoint_ - origin_;
|
||||||
const scalar radius = mag(axis1);
|
const scalar radius = mag(axis1);
|
||||||
|
|
||||||
@ -214,7 +202,7 @@ Foam::circleSet::circleSet
|
|||||||
startPoint_(dict.lookup("startPoint")),
|
startPoint_(dict.lookup("startPoint")),
|
||||||
dTheta_(readScalar(dict.lookup("dTheta")))
|
dTheta_(readScalar(dict.lookup("dTheta")))
|
||||||
{
|
{
|
||||||
// normalise circleAxis
|
// Normalise circleAxis
|
||||||
circleAxis_ /= mag(circleAxis_);
|
circleAxis_ /= mag(circleAxis_);
|
||||||
|
|
||||||
genSamples();
|
genSamples();
|
||||||
|
|||||||
@ -28,7 +28,7 @@ Description
|
|||||||
A simple single-phase transport model based on viscosityModel.
|
A simple single-phase transport model based on viscosityModel.
|
||||||
|
|
||||||
Used by the incompressible single-phase solvers like simpleFoam,
|
Used by the incompressible single-phase solvers like simpleFoam,
|
||||||
turbFoam etc.
|
pimpleFoam etc.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
singlePhaseTransportModel.C
|
singlePhaseTransportModel.C
|
||||||
|
|||||||
Reference in New Issue
Block a user