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