https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
21template <bool is_ad>
23{
24public:
26
28
29protected:
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< false > ElementIntegralFunctorPostprocessor
ElementIntegralFunctorPostprocessorTempl< true > ADElementIntegralFunctorPostprocessor
This postprocessor computes an element integral of the specified functor.
const Moose::Functor< GenericReal< is_ad > > & _functor
Functor being integrated.
CreateMooseEnumClass(FunctorEvaluationType, CELL_AVERAGE, QUADRATURE_POINT)
const FunctorEvaluationType _evaluation_type
How to evaluate the functor.
const Moose::Functor< GenericReal< is_ad > > & _prefactor
Factor multiplying the functor being integrated.
This postprocessor computes a volume integral of the specified variable.
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...