New BCs: Updated for single-precision compilation
This commit is contained in:
parent
40ddc72045
commit
01fe45deef
3 changed files with 3 additions and 3 deletions
|
|
@ -169,7 +169,7 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateValues
|
||||||
Up -= nUp*n;
|
Up -= nUp*n;
|
||||||
|
|
||||||
// Remove any reverse flow
|
// Remove any reverse flow
|
||||||
nUp = min(nUp, 0.0);
|
nUp = min(nUp, scalar(0));
|
||||||
|
|
||||||
const scalar flowRate = flowRate_->value(t);
|
const scalar flowRate = flowRate_->value(t);
|
||||||
const scalar estimatedFlowRate = -gSum(rho*(this->patch().magSf()*nUp));
|
const scalar estimatedFlowRate = -gSum(rho*(this->patch().magSf()*nUp));
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ void Foam::flowRateOutletVelocityFvPatchVectorField::updateValues
|
||||||
Up -= nUp*n;
|
Up -= nUp*n;
|
||||||
|
|
||||||
// Remove any reverse flow
|
// Remove any reverse flow
|
||||||
nUp = max(nUp, 0.0);
|
nUp = max(nUp, scalar(0));
|
||||||
|
|
||||||
const scalar flowRate = flowRate_->value(t);
|
const scalar flowRate = flowRate_->value(t);
|
||||||
const scalar estimatedFlowRate = gSum(rho*(this->patch().magSf()*nUp));
|
const scalar estimatedFlowRate = gSum(rho*(this->patch().magSf()*nUp));
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ void Foam::matchedFlowRateOutletVelocityFvPatchVectorField::updateValues
|
||||||
Up -= nUp*n;
|
Up -= nUp*n;
|
||||||
|
|
||||||
// Remove any reverse flow
|
// Remove any reverse flow
|
||||||
nUp = max(nUp, 0.0);
|
nUp = max(nUp, scalar(0));
|
||||||
|
|
||||||
// Lookup non-const access to velocity field
|
// Lookup non-const access to velocity field
|
||||||
volVectorField& U
|
volVectorField& U
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue