https://mooseframework.inl.gov
include
postprocessors
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
22
class
ElementalVariableValue
:
public
GeneralPostprocessor
23
{
24
public
:
25
static
InputParameters
validParams
();
26
27
ElementalVariableValue
(
const
InputParameters
&
parameters
);
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
;
39
Real
_value
;
40
};
ElementalVariableValue::execute
virtual void execute() override
Execute method.
Definition:
ElementalVariableValue.C:52
ElementalVariableValue::finalize
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
Definition:
ElementalVariableValue.C:78
ElementalVariableValue::_var_name
const std::string & _var_name
Definition:
ElementalVariableValue.h:37
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:66
ElementalVariableValue::validParams
static InputParameters validParams()
Definition:
ElementalVariableValue.C:20
libMesh
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
GeneralPostprocessor
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
Definition:
GeneralPostprocessor.h:21
ElementalVariableValue::_value
Real _value
Definition:
ElementalVariableValue.h:39
ElementalVariableValue::initialize
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition:
ElementalVariableValue.h:29
MooseMesh
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition:
MooseMesh.h:88
ElementalVariableValue
Definition:
ElementalVariableValue.h:22
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ElementalVariableValue::_mesh
const MooseMesh & _mesh
Definition:
ElementalVariableValue.h:36
GeneralPostprocessor.h
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
ElementalVariableValue::getValue
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition:
ElementalVariableValue.C:72
ElementalVariableValue::_element
const Elem * _element
Definition:
ElementalVariableValue.h:38
ElementalVariableValue::ElementalVariableValue
ElementalVariableValue(const InputParameters ¶meters)
Definition:
ElementalVariableValue.C:29
ElementalVariableValue::initialSetup
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
Definition:
ElementalVariableValue.C:43
Generated on Mon Jul 28 2025 20:05:03 for https://mooseframework.inl.gov by
1.8.14