mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
use pow3 instead of power(x, pow)
This commit is contained in:
@ -105,8 +105,7 @@ Foam::ManualInjection<CloudType>::ManualInjection
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Determine volume of particles to inject
|
// Determine volume of particles to inject
|
||||||
this->volumeTotal_ = sum(pow(diameters_, 3))
|
this->volumeTotal_ = sum(pow3(diameters_))*mathematicalConstant::pi/6.0;
|
||||||
*mathematicalConstant::pi/6.0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user