www.mooseframework.org
ElementVariablesDifferenceMax.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 
13 
24 {
25 public:
27 
28  // Basic MooseObject cosntructor
30 
31  // Required overrides
32  virtual void execute() override;
33  virtual void finalize() override;
34  virtual void initialize() override;
35  virtual void threadJoin(const UserObject & s) override;
36 
37 protected:
39  const VariableValue & _a;
40 
42  const VariableValue & _b;
43 
46 
49 
52 
55 
58 
61 
63  const bool _furthest_from_zero;
64 
69  std::vector<Real> _all;
70 };
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...
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:192
forward declarations
Definition: MooseArray.h:17
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.
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:39