mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Using const variables
This commit is contained in:
@ -175,9 +175,9 @@ Foam::tmp<Foam::volVectorField> Foam::rotorDiskSource::calculateForces
|
||||
}
|
||||
|
||||
// calculate forces
|
||||
scalar pDyn = 0.5*rho[cellI]*sqr(magUc);
|
||||
scalar f = pDyn*chord*nBlades_*area_[i]/(mathematical::twoPi);
|
||||
vector localForce = vector(0.0, f*Cd, tipFactor*f*Cl);
|
||||
const scalar pDyn = 0.5*rho[cellI]*sqr(magUc);
|
||||
const scalar f = pDyn*chord*nBlades_*area_[i]/(mathematical::twoPi);
|
||||
const vector localForce(0.0, f*Cd, tipFactor*f*Cl);
|
||||
|
||||
// accumulate forces
|
||||
dragEff += localForce.y();
|
||||
|
||||
Reference in New Issue
Block a user