Commit 486db375 authored by Beatrix Becker's avatar Beatrix Becker
Browse files

[discretization] rotate around second axis

parent 4352c78e
......@@ -113,7 +113,7 @@ public:
//! The volume of the sub control volume (Guldinus theorem)
Scalar volume() const
{
const auto radius = this->center()[1];
const auto radius = this->center()[0];
return SubControlVolume::volume()*2.0*M_PI*radius;
}
};
......
......@@ -109,7 +109,7 @@ public:
//! The area of the sub control volume face (Guldinus theorem)
Scalar area() const
{
const auto radius = this->center()[1];
const auto radius = this->center()[0];
return SubControlVolumeFace::area()*2.0*M_PI*radius;
}
};
......
Supports Markdown
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