www.mooseframework.org
include
postprocessors
PointValue.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
20
class
PointValue
:
public
GeneralPostprocessor
21
{
22
public
:
23
static
InputParameters
validParams
();
24
25
PointValue
(
const
InputParameters
&
parameters
);
26
27
virtual
void
initialize
()
override
{}
28
virtual
void
execute
()
override
;
29
virtual
void
finalize
()
override
{}
30
virtual
Real
getValue
()
const override
;
31
32
protected
:
34
const
unsigned
int
_var_number
;
35
37
const
System &
_system
;
38
40
const
Point &
_point
;
41
43
Real
_value
;
44
};
PointValue::PointValue
PointValue(const InputParameters ¶meters)
Definition:
PointValue.C:35
PointValue::validParams
static InputParameters validParams()
Definition:
PointValue.C:23
PointValue
Compute the value of a variable at a specified location.
Definition:
PointValue.h:20
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Definition:
InputParameters.h:63
PointValue::_point
const Point & _point
The point to locate.
Definition:
PointValue.h:40
GeneralPostprocessor
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
Definition:
GeneralPostprocessor.h:21
PointValue::getValue
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition:
PointValue.C:73
PointValue::_var_number
const unsigned int _var_number
The variable number of the variable we are operating on.
Definition:
PointValue.h:34
PointValue::_system
const System & _system
A reference to the system containing the variable.
Definition:
PointValue.h:37
PointValue::finalize
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
Definition:
PointValue.h:29
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
GeneralPostprocessor.h
PointValue::initialize
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition:
PointValue.h:27
MooseBaseParameterInterface::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition:
MooseBaseParameterInterface.h:62
PointValue::execute
virtual void execute() override
Execute method.
Definition:
PointValue.C:50
PointValue::_value
Real _value
The value of the variable at the desired location.
Definition:
PointValue.h:43
Generated on Wed Mar 27 2024 17:44:37 for www.mooseframework.org by
1.8.14