www.mooseframework.org
include
postprocessors
NodalVariableValue.h
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://www.mooseframework.org
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
#include "
GeneralPostprocessor.h
"
13
14
class
MooseMesh
;
15
16
namespace
libMesh
17
{
18
class
Node;
19
}
20
25
class
NodalVariableValue
:
public
GeneralPostprocessor
26
{
27
public
:
28
static
InputParameters
validParams
();
29
30
NodalVariableValue
(
const
InputParameters
&
parameters
);
31
32
virtual
void
initialize
()
override
{}
33
virtual
void
execute
()
override
;
34
virtual
Real
getValue
()
const override
;
35
virtual
void
finalize
()
override
;
36
void
initialSetup
()
override
;
37
38
protected
:
39
MooseMesh
&
_mesh
;
40
std::string
_var_name
;
41
Node *
_node_ptr
;
42
const
Real
_scale_factor
;
43
Real
_value
;
44
};
NodalVariableValue::finalize
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
Definition:
NodalVariableValue.C:78
NodalVariableValue::_value
Real _value
Definition:
NodalVariableValue.h:43
NodalVariableValue::execute
virtual void execute() override
Execute method.
Definition:
NodalVariableValue.C:63
NodalVariableValue::NodalVariableValue
NodalVariableValue(const InputParameters ¶meters)
Definition:
NodalVariableValue.C:32
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:63
NodalVariableValue::validParams
static InputParameters validParams()
Definition:
NodalVariableValue.C:22
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
NodalVariableValue::initialize
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition:
NodalVariableValue.h:32
NodalVariableValue::initialSetup
void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
Definition:
NodalVariableValue.C:48
NodalVariableValue
Sums a nodal value across all processors and multiplies the result by a scale factor.
Definition:
NodalVariableValue.h:25
NodalVariableValue::getValue
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition:
NodalVariableValue.C:72
MooseMesh
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition:
MooseMesh.h:88
NodalVariableValue::_var_name
std::string _var_name
Definition:
NodalVariableValue.h:40
NodalVariableValue::_node_ptr
Node * _node_ptr
Definition:
NodalVariableValue.h:41
NodalVariableValue::_mesh
MooseMesh & _mesh
Definition:
NodalVariableValue.h:39
NodalVariableValue::_scale_factor
const Real _scale_factor
Definition:
NodalVariableValue.h:42
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
GeneralPostprocessor.h
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
Generated on Wed Mar 27 2024 17:44:37 for www.mooseframework.org by
1.8.14