www.mooseframework.org
LevelSetVolume.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef LEVELSETVOLUME_H
9 #define LEVELSETVOLUME_H
10 
11 // MOOSE includes
12 #include "ElementVariablePostprocessor.h"
13 
14 // Forward declerations
15 class LevelSetVolume;
16 
17 template <>
18 InputParameters validParams<LevelSetVolume>();
19 
23 class LevelSetVolume : public ElementVariablePostprocessor
24 {
25 public:
26  LevelSetVolume(const InputParameters & parameters);
27 
28  virtual void initialize() override;
29  virtual void finalize() override;
30  virtual void execute() override;
31  virtual Real getValue() override;
32  virtual void threadJoin(const UserObject & y) override;
33  virtual void computeQpValue() override{};
34 
35 protected:
37  Real _volume;
38 
40  const Real & _threshold;
41 
43  const bool _inside;
44 };
45 
46 #endif // LEVELSETVOLUME_H
Real _volume
The accumulated volume to return as a PostprocessorValue.
const bool _inside
Flag for triggering the internal volume calculation.
const Real & _threshold
The level set contour to consider for computing inside vs. outside of the volume. ...
Postprocessor to compute the area/volume inside and outside of a level set contour.
virtual void threadJoin(const UserObject &y) override
virtual void execute() override
virtual Real getValue() override
InputParameters validParams< LevelSetVolume >()
virtual void initialize() override
LevelSetVolume(const InputParameters &parameters)
virtual void finalize() override
virtual void computeQpValue() override