18 InputParameters params = validParams<ElementVariablePostprocessor>();
19 params.addClassDescription(
20 "Compute the area or volume of the region inside or outside of a level set contour.");
21 params.addParam<Real>(
22 "threshold", 0.0,
"The level set threshold to consider for computing area/volume.");
24 MooseEnum loc(
"inside=0 outside=1",
"inside");
25 params.addParam<MooseEnum>(
"location", loc,
"The location of the area/volume to be computed.");
30 : ElementVariablePostprocessor(parameters),
31 _threshold(getParam<Real>(
"threshold")),
32 _inside(getParam<MooseEnum>(
"location") ==
"inside")
51 for (_qp = 0; _qp < n; ++_qp)
57 for (_qp = 0; _qp < n; ++_qp)
61 _volume += cnt / n * _current_elem_volume;
79 const LevelSetVolume & pps = static_cast<const LevelSetVolume &>(y);