https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
23{
24public:
27 virtual ~FunctorExtremaPositions() = default;
28
29 void initialize() override;
30
31private:
34
36 const unsigned int _n_extrema;
37
39 enum class ExtremeType
40 {
41 MAX,
42 MIN,
45
47 std::vector<Real> & _positions_values;
48};
An interface that restricts an object to subdomains via the 'blocks' input parameter.
Positions from the extrema of a functor.
static InputParameters validParams()
ExtremeType
Type of extreme value we are going to compute.
void initialize() override
In charge of computing / loading the positions.
virtual ~FunctorExtremaPositions()=default
const unsigned int _n_extrema
Number of extrema to keep track of.
const Moose::Functor< Real > & _functor
Functor providing the value.
enum FunctorExtremaPositions::ExtremeType _type
std::vector< Real > & _positions_values
Values of the functor at the extrema.
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
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
Positions objects are under the hood Reporters.
Definition Positions.h:21