https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ElementalVariableValue.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
15class MooseMesh;
16
17namespace libMesh
18{
19class Elem;
20}
21
23{
24public:
26
28
29 virtual void initialize() override {}
30 virtual void execute() override;
31 virtual Real getValue() const override;
32 virtual void finalize() override;
33 virtual void initialSetup() override;
34
35protected:
43 const Elem * _element;
45 Real _value;
46};
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Real _value
The computed elemental variable value.
const MooseMesh & _mesh
The mesh.
virtual void execute() override
Execute method.
const Elem * _element
The element on which the variable value is monitored.
const VariableValue & _var_sln
The element solution values of the monitored variable.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
MooseVariableField< Real > & _var
The variable being monitored.
static InputParameters validParams()
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition MooseMesh.h:95
Class for stuff related to variables.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...