https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ElementVariablesDifferenceMax.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
24{
25public:
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
37protected:
40
43
46
49
52
55
58
61
64
69 std::vector<Real> _all;
70};
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
std::vector< Real > VectorPostprocessorValue
Definition MooseTypes.h:231
Finds the largest difference between two variable fields.
std::vector< Real > _all
Collection of all the items so only one MPI call is required, these will be spread to the actual Vect...
VectorPostprocessorValue & _a_value
The value of _a that produced the maximum difference.
const bool _furthest_from_zero
Internal flag to indicate we are seeking the largest absolute value.
VectorPostprocessorValue & _position_y
The y position of the associated quadrature point.
VectorPostprocessorValue & _position_z
The z position of the associated quadrature point.
VectorPostprocessorValue & _max_difference
The actual maximum difference.
virtual void threadJoin(const UserObject &s) override
Must override.
const VariableValue & _b
The second variable, operated to produce a difference as: _a - _b.
virtual void execute() override
Execute method.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
const VariableValue & _a
The first variable, operated to produce a difference as: _a - _b.
virtual void finalize() override
Finalize.
VectorPostprocessorValue & _b_value
The value of _b that produced the maximum difference.
VectorPostprocessorValue & _position_x
The x position of the associated quadrature point.
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
Base class for user-specific data.
Definition UserObject.h:20