https://mooseframework.inl.gov
SideDiffusiveFluxAverage.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 
15  SideFluxAverage,
16  "06/30/2021 24:00",
19  ADSideFluxAverage,
20  "06/30/2021 24:00",
22 
23 template <bool is_ad>
26 {
28  return params;
29 }
30 
31 template <bool is_ad>
33  const InputParameters & parameters)
34  : SideDiffusiveFluxIntegralTempl<is_ad, Real>(parameters), _volume(0)
35 {
36 }
37 
38 template <bool is_ad>
39 void
41 {
43  _volume = 0;
44 }
45 
46 template <bool is_ad>
47 void
49 {
51  _volume += this->_current_side_volume;
52 }
53 
54 template <bool is_ad>
55 Real
57 {
58  return _integral_value / _volume;
59 }
60 
61 template <bool is_ad>
62 void
64 {
67 }
68 
69 template <bool is_ad>
70 void
72 {
74  const auto & pps = static_cast<const SideDiffusiveFluxAverageTempl<is_ad> &>(y);
75  _volume += pps._volume;
76 }
77 
SideDiffusiveFluxAverageTempl(const InputParameters &parameters)
registerMooseObject("MooseApp", SideDiffusiveFluxAverage)
This postprocessor computes a side integral of the mass flux.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
registerMooseObjectRenamed("MooseApp", SideFluxAverage, "06/30/2021 24:00", SideDiffusiveFluxAverage)
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
Definition: UserObject.h:126
virtual void execute() override
Execute method.
virtual void threadJoin(const UserObject &y) override
Must override.
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void threadJoin(const UserObject &y) override
Must override.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
virtual void execute() override
Execute method.
Base class for user-specific data.
Definition: UserObject.h:40
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.