https://mooseframework.inl.gov
Loading...
Searching...
No Matches
src
postprocessors
SideIntegralMaterialProperty.C
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
#include "
SideIntegralMaterialProperty.h
"
11
12
#include "metaphysicl/raw_type.h"
13
14
registerMooseObject
(
"MooseApp"
,
SideIntegralMaterialProperty
);
15
registerMooseObject
(
"MooseApp"
,
ADSideIntegralMaterialProperty
);
16
17
template
<
bool
is_ad>
18
InputParameters
19
SideIntegralMaterialPropertyTempl<is_ad>::validParams
()
20
{
21
InputParameters
params =
IndexableProperty<SideIntegralPostprocessor, is_ad>::validParams
();
22
params.
addClassDescription
(
"Compute the integral of a scalar material property component over "
23
"the domain."
);
24
return
params;
25
}
26
27
template
<
bool
is_ad>
28
SideIntegralMaterialPropertyTempl<is_ad>::SideIntegralMaterialPropertyTempl
(
29
const
InputParameters
& parameters)
30
:
SideIntegralPostprocessor
(parameters), _prop(this)
31
{
32
}
33
34
template
<
bool
is_ad>
35
void
36
SideIntegralMaterialPropertyTempl<is_ad>::initialSetup
()
37
{
38
SideIntegralPostprocessor::initialSetup
();
39
40
// check if the material property type and number of supplied components match
41
_prop.check();
42
}
43
44
template
<
bool
is_ad>
45
Real
46
SideIntegralMaterialPropertyTempl<is_ad>::computeQpIntegral
()
47
{
48
return
MetaPhysicL::raw_value
(_prop[_qp]);
49
}
50
51
template
class
SideIntegralMaterialPropertyTempl<false>
;
52
template
class
SideIntegralMaterialPropertyTempl<true>
;
registerMooseObject
registerMooseObject("MooseApp", SideIntegralMaterialProperty)
SideIntegralMaterialProperty.h
IndexableProperty::validParams
static InputParameters validParams()
Definition
IndexableProperty.h:66
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition
InputParameters.h:68
InputParameters::addClassDescription
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
Definition
InputParameters.C:81
SideIntegralMaterialPropertyTempl
Computes the integral of a material property over a side set.
Definition
SideIntegralMaterialProperty.h:22
SideIntegralMaterialPropertyTempl::initialSetup
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
Definition
SideIntegralMaterialProperty.C:36
SideIntegralMaterialPropertyTempl::SideIntegralMaterialPropertyTempl
SideIntegralMaterialPropertyTempl(const InputParameters ¶meters)
Definition
SideIntegralMaterialProperty.C:28
SideIntegralMaterialPropertyTempl::validParams
static InputParameters validParams()
Definition
SideIntegralMaterialProperty.C:19
SideIntegralMaterialPropertyTempl::computeQpIntegral
virtual Real computeQpIntegral() override
Definition
SideIntegralMaterialProperty.C:46
SideIntegralPostprocessor
This postprocessor computes a surface integral of the specified variable on a sideset on the boundary...
Definition
SideIntegralPostprocessor.h:21
SideIntegralPostprocessor::initialSetup
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
Definition
SideIntegralPostprocessor.C:27
MetaPhysicL::raw_value
auto raw_value(const Eigen::Map< T > &in)
Definition
EigenADReal.h:100
Generated on Fri Aug 21 2026 13:33:59 for https://mooseframework.inl.gov by
1.9.8