https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PointValue.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
13
21{
22public:
24
26
27 virtual void initialize() override {}
28 virtual void execute() override;
29 virtual void finalize() override {}
30 virtual Real getValue() const override;
31
32protected:
34 const unsigned int _var_number;
35
38
40 const Point & _point;
41
43 Real _value;
44};
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Compute the value of a variable at a specified location.
Definition PointValue.h:21
const Point & _point
The point to locate.
Definition PointValue.h:40
Real _value
The value of the variable at the desired location.
Definition PointValue.h:43
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition PointValue.h:27
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
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
Definition PointValue.C:73
const unsigned int _var_number
The variable number of the variable we are operating on.
Definition PointValue.h:34
virtual void execute() override
Execute method.
Definition PointValue.C:50
const libMesh::System & _system
A reference to the system containing the variable.
Definition PointValue.h:37
static InputParameters validParams()
Definition PointValue.C:23