Postprocessor to compute the area/volume inside and outside of a level set contour.
More...
#include <LevelSetVolume.h>
|
| Real | _volume |
| | The accumulated volume to return as a PostprocessorValue. More...
|
| |
| const Real & | _threshold |
| | The level set contour to consider for computing inside vs. outside of the volume. More...
|
| |
| const bool | _inside |
| | Flag for triggering the internal volume calculation. More...
|
| |
Postprocessor to compute the area/volume inside and outside of a level set contour.
Definition at line 24 of file LevelSetVolume.h.
◆ LevelSetVolume()
| LevelSetVolume::LevelSetVolume |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 29 of file LevelSetVolume.C.
30 : ElementVariablePostprocessor(parameters),
32 _inside(getParam<MooseEnum>(
"location") ==
"inside")
◆ computeQpValue()
| virtual void LevelSetVolume::computeQpValue |
( |
| ) |
|
|
inlineoverridevirtual |
◆ execute()
| void LevelSetVolume::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 43 of file LevelSetVolume.C.
51 for (_qp = 0; _qp < n; ++_qp)
57 for (_qp = 0; _qp < n; ++_qp)
61 _volume += cnt / n * _current_elem_volume;
◆ finalize()
| void LevelSetVolume::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getValue()
| Real LevelSetVolume::getValue |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| void LevelSetVolume::initialize |
( |
| ) |
|
|
overridevirtual |
◆ threadJoin()
| void LevelSetVolume::threadJoin |
( |
const UserObject & |
y | ) |
|
|
overridevirtual |
◆ _inside
| const bool LevelSetVolume::_inside |
|
protected |
◆ _threshold
| const Real& LevelSetVolume::_threshold |
|
protected |
The level set contour to consider for computing inside vs. outside of the volume.
Definition at line 41 of file LevelSetVolume.h.
Referenced by execute().
◆ _volume
| Real LevelSetVolume::_volume |
|
protected |
The documentation for this class was generated from the following files: