mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: finiteVolume: single precision build
This commit is contained in:
@ -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.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.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));
|
||||||
|
|||||||
Reference in New Issue
Block a user