STYLE: minor code typo corrections

This commit is contained in:
Andrew Heather
2016-11-22 15:34:37 +00:00
parent 558006afd2
commit 87a566c11c
5 changed files with 11 additions and 11 deletions

View File

@ -296,7 +296,7 @@ bool Foam::functionObjects::scalarTransport::execute()
mesh_.lookupObject<surfaceScalarField>(phiName_) mesh_.lookupObject<surfaceScalarField>(phiName_)
); );
} }
else if(UPhiName_ != "none") else if (UPhiName_ != "none")
{ {
const volVectorField& Uphi = const volVectorField& Uphi =
mesh_.lookupObject<volVectorField>(UPhiName_); mesh_.lookupObject<volVectorField>(UPhiName_);

View File

@ -37,7 +37,7 @@ Foam::InterfaceForce<CloudType>::InterfaceForce
) )
: :
ParticleForce<CloudType>(owner, mesh, dict, typeName, true), ParticleForce<CloudType>(owner, mesh, dict, typeName, true),
alpaName_(this->coeffs().lookup("alpha")), alphaName_(this->coeffs().lookup("alpha")),
C_(readScalar(this->coeffs().lookup("C"))), C_(readScalar(this->coeffs().lookup("C"))),
gradInterForceInterpPtr_(nullptr) gradInterForceInterpPtr_(nullptr)
{} {}
@ -47,7 +47,7 @@ template<class CloudType>
Foam::InterfaceForce<CloudType>::InterfaceForce(const InterfaceForce& pf) Foam::InterfaceForce<CloudType>::InterfaceForce(const InterfaceForce& pf)
: :
ParticleForce<CloudType>(pf), ParticleForce<CloudType>(pf),
alpaName_(pf.alpaName_), alphaName_(pf.alphaName_),
C_(pf.C_), C_(pf.C_),
gradInterForceInterpPtr_(pf.gradInterForceInterpPtr_) gradInterForceInterpPtr_(pf.gradInterForceInterpPtr_)
{} {}
@ -75,7 +75,7 @@ void Foam::InterfaceForce<CloudType>::cacheFields(const bool store)
if (!fieldExists) if (!fieldExists)
{ {
const volScalarField& alpha = this->mesh().template const volScalarField& alpha = this->mesh().template
lookupObject<volScalarField>(alpaName_); lookupObject<volScalarField>(alphaName_);
volVectorField* gradInterForcePtr = volVectorField* gradInterForcePtr =
new volVectorField(fName, fvc::grad(alpha*(1-alpha))); new volVectorField(fName, fvc::grad(alpha*(1-alpha)));

View File

@ -57,13 +57,13 @@ class InterfaceForce
{ {
// Private data // Private data
//- Name of VOF field //- Name of phase fraction field
const word alpaName_; const word alphaName_;
//- Model constant //- Model constant
const scalar C_; const scalar C_;
//- gradInterForce interpolator //- Interpolator for gradInterForce
autoPtr<interpolation<vector>> gradInterForceInterpPtr_; autoPtr<interpolation<vector>> gradInterForceInterpPtr_;

View File

@ -403,7 +403,7 @@ bool Foam::chemPointISAT<CompType, ThermoType>::inEOA(const scalarField& phiq)
label maxIndex = -1; label maxIndex = -1;
for (label i=0; i<completeSpaceSize(); i++) for (label i=0; i<completeSpaceSize(); i++)
{ {
if(max < propEps[i]) if (max < propEps[i])
{ {
max = propEps[i]; max = propEps[i];
maxIndex = i; maxIndex = i;
@ -412,11 +412,11 @@ bool Foam::chemPointISAT<CompType, ThermoType>::inEOA(const scalarField& phiq)
word propName; word propName;
if (maxIndex >= completeSpaceSize()-2) if (maxIndex >= completeSpaceSize()-2)
{ {
if(maxIndex == completeSpaceSize()-2) if (maxIndex == completeSpaceSize()-2)
{ {
propName = "T"; propName = "T";
} }
else if(maxIndex == completeSpaceSize()-1) else if (maxIndex == completeSpaceSize()-1)
{ {
propName = "p"; propName = "p";
} }

View File

@ -97,7 +97,7 @@ int main(int argc, char *argv[])
radiusFieldXY.write(); radiusFieldXY.write();
if(calcDirections) if (calcDirections)
{ {
vectorIOField radialDirection vectorIOField radialDirection