https://mooseframework.inl.gov
FunctorExtremaPositions.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 
12 // Moose includes
13 #include "Positions.h"
14 #include "FunctorInterface.h"
15 #include "BlockRestrictable.h"
16 
21  public NonADFunctorInterface,
22  public BlockRestrictable
23 {
24 public:
27  virtual ~FunctorExtremaPositions() = default;
28 
29  void initialize() override;
30 
31 private:
34 
36  const unsigned int _n_extrema;
37 
39  enum class ExtremeType
40  {
41  MAX,
42  MIN,
43  MAX_ABS
44  } _type;
45 
47  std::vector<Real> & _positions_values;
48 };
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
std::vector< Real > & _positions_values
Values of the functor at the extrema.
Positions objects are under the hood Reporters.
Definition: Positions.h:20
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
void initialize() override
In charge of computing / loading the positions.
ExtremeType
Type of extreme value we are going to compute.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual ~FunctorExtremaPositions()=default
const Moose::Functor< Real > & _functor
Functor providing the value.
const unsigned int _n_extrema
Number of extrema to keep track of.
FunctorExtremaPositions(const InputParameters &parameters)
static InputParameters validParams()
An interface that restricts an object to subdomains via the &#39;blocks&#39; input parameter.
const InputParameters & parameters() const
Get the parameters of the object.
Positions from the extrema of a functor.
enum FunctorExtremaPositions::ExtremeType _type