www.mooseframework.org
Receiver.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 // Forward Declarations
15 class Receiver;
16 
17 template <>
19 
25 {
26 public:
32 
34 
37  virtual void initialize() override {}
38  virtual void execute() override {}
40 
45  virtual Real getValue() override;
46 
50  virtual void initialSetup() override;
51 
52 private:
55 
58 };
59 
virtual void initialSetup() override
Initial setup function for applying the default value.
Definition: Receiver.C:40
bool _initialize_old
Flag for initializing the old value.
Definition: Receiver.h:54
const PostprocessorValue & _my_value
Reference to the value being stored in the associated PostprocessorData class.
Definition: Receiver.h:57
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
Real PostprocessorValue
MOOSE typedefs.
Definition: MooseTypes.h:154
Receiver(const InputParameters &parameters)
Class constructor.
Definition: Receiver.C:25
InputParameters validParams< Receiver >()
Definition: Receiver.C:16
virtual void initialize() override
No action taken.
Definition: Receiver.h:37
virtual void execute() override
Execute method.
Definition: Receiver.h:38
A class for storing data, it allows the user to change the value of the postprocessor by altering the...
Definition: Receiver.h:24
virtual Real getValue() override
Returns the value stored in _my_value.
Definition: Receiver.C:33