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:
36  const MooseMesh & _mesh;
37  const std::string & _var_name;
38  const Elem * _element;
40 };
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 std::string & _var_name
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...
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:88
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
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...