www.mooseframework.org
ElementVariablesDifferenceMax.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef ELEMENTVARIABLESDIFFERENCEMAX_H
16 #define ELEMENTVARIABLESDIFFERENCEMAX_H
17 
19 
20 // Forward Declarations
22 
23 template <>
25 
36 {
37 public:
38  // Basic MooseObject cosntructor
40 
41  // Required overrides
42  virtual void execute() override;
43  virtual void finalize() override;
44  virtual void initialize() override;
45  virtual void threadJoin(const UserObject & s) override;
46 
47 protected:
49  const VariableValue & _a;
50 
52  const VariableValue & _b;
53 
56 
59 
62 
65 
68 
71 
73  const bool _furthest_from_zero;
74 
79  std::vector<Real> _all;
80 };
81 
82 #endif // ELEMENTVARIABLESDIFFERENCEMAX_H
std::vector< Real > _all
Collection of all the items so only one MPI call is required, these will be spread to the actual Vect...
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
VectorPostprocessorValue & _max_difference
The actual maximum difference.
ElementVariablesDifferenceMax(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< ElementVariablesDifferenceMax >()
VectorPostprocessorValue & _a_value
The value of _a that produced the maximum difference.
virtual void threadJoin(const UserObject &s) override
Must override.
const bool _furthest_from_zero
Internal flag to indicate we are seeking the largest absolute value.
VectorPostprocessorValue & _position_z
The z position of the associated quadrature point.
const VariableValue & _a
The first variable, operated to produce a difference as: _a - _b.
std::vector< Real > VectorPostprocessorValue
Definition: MooseTypes.h:74
virtual void finalize() override
Finalize.
VectorPostprocessorValue & _b_value
The value of _b that produced the maximum difference.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Finds the largest difference between two variable fields.
const VariableValue & _b
The second variable, operated to produce a difference as: _a - _b.
VectorPostprocessorValue & _position_x
The x position of the associated quadrature point.
virtual void execute() override
Execute method.
VectorPostprocessorValue & _position_y
The y position of the associated quadrature point.
Base class for user-specific data.
Definition: UserObject.h:42