Commit 87a566c1 authored by Andrew Heather's avatar Andrew Heather
Browse files

STYLE: minor code typo corrections

parent 558006af
......@@ -296,7 +296,7 @@ bool Foam::functionObjects::scalarTransport::execute()
mesh_.lookupObject<surfaceScalarField>(phiName_)
);
}
else if(UPhiName_ != "none")
else if (UPhiName_ != "none")
{
const volVectorField& Uphi =
mesh_.lookupObject<volVectorField>(UPhiName_);
......
......@@ -37,7 +37,7 @@ Foam::InterfaceForce<CloudType>::InterfaceForce
)
:
ParticleForce<CloudType>(owner, mesh, dict, typeName, true),
alpaName_(this->coeffs().lookup("alpha")),
alphaName_(this->coeffs().lookup("alpha")),
C_(readScalar(this->coeffs().lookup("C"))),
gradInterForceInterpPtr_(nullptr)
{}
......@@ -47,7 +47,7 @@ template<class CloudType>
Foam::InterfaceForce<CloudType>::InterfaceForce(const InterfaceForce& pf)
:
ParticleForce<CloudType>(pf),
alpaName_(pf.alpaName_),
alphaName_(pf.alphaName_),
C_(pf.C_),
gradInterForceInterpPtr_(pf.gradInterForceInterpPtr_)
{}
......@@ -75,7 +75,7 @@ void Foam::InterfaceForce<CloudType>::cacheFields(const bool store)
if (!fieldExists)
{
const volScalarField& alpha = this->mesh().template
lookupObject<volScalarField>(alpaName_);
lookupObject<volScalarField>(alphaName_);
volVectorField* gradInterForcePtr =
new volVectorField(fName, fvc::grad(alpha*(1-alpha)));
......
......@@ -57,13 +57,13 @@ class InterfaceForce
{
// Private data
//- Name of VOF field
const word alpaName_;
//- Name of phase fraction field
const word alphaName_;
//- Model constant
const scalar C_;
//- gradInterForce interpolator
//- Interpolator for gradInterForce
autoPtr<interpolation<vector>> gradInterForceInterpPtr_;
......
......@@ -403,7 +403,7 @@ bool Foam::chemPointISAT<CompType, ThermoType>::inEOA(const scalarField& phiq)
label maxIndex = -1;
for (label i=0; i<completeSpaceSize(); i++)
{
if(max < propEps[i])
if (max < propEps[i])
{
max = propEps[i];
maxIndex = i;
......@@ -412,11 +412,11 @@ bool Foam::chemPointISAT<CompType, ThermoType>::inEOA(const scalarField& phiq)
word propName;
if (maxIndex >= completeSpaceSize()-2)
{
if(maxIndex == completeSpaceSize()-2)
if (maxIndex == completeSpaceSize()-2)
{
propName = "T";
}
else if(maxIndex == completeSpaceSize()-1)
else if (maxIndex == completeSpaceSize()-1)
{
propName = "p";
}
......
......@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
radiusFieldXY.write();
if(calcDirections)
if (calcDirections)
{
vectorIOField radialDirection
......
Markdown is supported
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