https://mooseframework.inl.gov
InterfaceDiffusiveFluxAverage.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 
11 
14 
15 template <bool is_ad>
18 {
20  return params;
21 }
22 
23 template <bool is_ad>
25  const InputParameters & parameters)
26  : InterfaceDiffusiveFluxIntegralTempl<is_ad>(parameters), _volume(0)
27 {
28 }
29 
30 template <bool is_ad>
31 void
33 {
35  _volume = 0;
36 }
37 
38 template <bool is_ad>
39 void
41 {
43  _volume += this->_current_side_volume;
44 }
45 
46 template <bool is_ad>
47 Real
49 {
50  return _integral_value / _volume;
51 }
52 
53 template <bool is_ad>
54 void
56 {
57  this->gatherSum(_volume);
58  this->gatherSum(_integral_value);
59 }
60 
61 template <bool is_ad>
62 void
64 {
66  const auto & pps = static_cast<const InterfaceDiffusiveFluxAverageTempl<is_ad> &>(y);
67  _volume += pps._volume;
68 }
69 
virtual void threadJoin(const UserObject &y) override
Must override.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
This postprocessor computes an integral of the diffusive flux over an interface.
virtual void threadJoin(const UserObject &y) override
Must override.
virtual void execute() override
Execute method.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
InterfaceDiffusiveFluxAverageTempl(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
registerMooseObject("MooseApp", InterfaceDiffusiveFluxAverage)
virtual void finalize() override
Finalize.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Base class for user-specific data.
Definition: UserObject.h:40
virtual void execute() override
Execute method.