Skip to content
Snippets Groups Projects
Commit aafdf3c4 authored by Celine Durniak's avatar Celine Durniak
Browse files

Correction of the formula for the volume of a spheroid

parent e7358862
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ complex_t FormFactorSpheroid::evaluate_for_q(const cvector_t& q) const
if (std::abs(m_q.mag()) <= Numeric::double_epsilon) {
return M_PI*R*H/fp*(1.-H/(3.*fp*R));
return M_PI*R*H*H/fp*(1.-H/(3.*fp*R));
} else {
......
......@@ -447,7 +447,8 @@ TEST_F(FormFactorTest, Spheroid)
double radius = 3.;
double flattening = 1.5;
double total_height =2.*flattening *radius;
double volume = M_PI*radius*height/flattening*(1.-height/(3.*flattening*radius));
double volume = M_PI*radius*height*height/flattening
*(1.-height/(3.*flattening*radius));
FormFactorSpheroid spheroid(radius, height,flattening);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment