www.mooseframework.org
LevelSetVolume.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 // MOOSE includes
14 
19 {
20 public:
22 
24 
25  virtual void initialize() override;
26  virtual void finalize() override;
27  virtual void execute() override;
28  virtual Real getValue() const override;
29  virtual void threadJoin(const UserObject & y) override;
30  virtual void computeQpValue() override{};
31 
32 protected:
34  Real _volume;
35 
37  const Real & _threshold;
38 
40  const bool _inside;
41 };
virtual Real getValue() const override
Real _volume
The accumulated volume to return as a PostprocessorValue.
const std::vector< double > y
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. ...
static InputParameters validParams()
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
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual void initialize() override
LevelSetVolume(const InputParameters &parameters)
virtual void finalize() override
virtual void computeQpValue() override