https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LevelSetVolume.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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{
20public:
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
32protected:
34 Real _volume;
35
37 const Real & _threshold;
38
40 const bool _inside;
41};
const std::vector< double > y
Postprocessor to compute the area/volume inside and outside of a level set contour.
virtual void execute() override
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()
virtual Real getValue() const override
virtual void finalize() override
Real _volume
The accumulated volume to return as a PostprocessorValue.
virtual void initialize() override
virtual void computeQpValue() override
virtual void threadJoin(const UserObject &y) override
const InputParameters & parameters() const