Skip to content
Snippets Groups Projects
Commit 7fe4eea1 authored by Andrew Heather's avatar Andrew Heather
Browse files

use pow3 instead of power(x, pow)

parent 811d4782
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment