use pow3 instead of power(x, pow)

This commit is contained in:
andy
2009-06-30 19:16:03 +01:00
parent 811d47824c
commit 7fe4eea190

View File

@ -105,8 +105,7 @@ Foam::ManualInjection<CloudType>::ManualInjection
}
// Determine volume of particles to inject
this->volumeTotal_ = sum(pow(diameters_, 3))
*mathematicalConstant::pi/6.0;
this->volumeTotal_ = sum(pow3(diameters_))*mathematicalConstant::pi/6.0;
}