https://mooseframework.inl.gov
ElementIntegralFunctorPostprocessor.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 #include "MooseEnum.h"
14 
21 template <bool is_ad>
23 {
24 public:
26 
28 
29 protected:
30  CreateMooseEnumClass(FunctorEvaluationType, CELL_AVERAGE, QUADRATURE_POINT);
31 
32  virtual Real computeIntegral() override;
33  virtual Real computeQpIntegral() override;
34  virtual Real cellAverage();
35 
38 
41 
43  const FunctorEvaluationType _evaluation_type;
44 };
45 
ElementIntegralFunctorPostprocessorTempl(const InputParameters &parameters)
This postprocessor computes a volume integral of the specified variable.
ElementIntegralFunctorPostprocessorTempl< true > ADElementIntegralFunctorPostprocessor
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...
const Moose::Functor< GenericReal< is_ad > > & _functor
Functor being integrated.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const Moose::Functor< GenericReal< is_ad > > & _prefactor
Factor multiplying the functor being integrated.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const FunctorEvaluationType _evaluation_type
How to evaluate the functor.
This postprocessor computes an element integral of the specified functor.
ElementIntegralFunctorPostprocessorTempl< false > ElementIntegralFunctorPostprocessor
CreateMooseEnumClass(FunctorEvaluationType, CELL_AVERAGE, QUADRATURE_POINT)