Skip to content

Commit

Permalink
Rename BoundaryFluxPP in RDG to be RDG-specific, closes idaholab#26755
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud committed Jun 16, 2024
1 parent 9ebd7a7 commit afc44e9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# BoundaryFluxPostprocessor
# RDGBoundaryFluxPostprocessor

!syntax description /Postprocessors/BoundaryFluxPostprocessor
!syntax description /Postprocessors/RDGBoundaryFluxPostprocessor

This post-processor is used to query flux vectors that are computed via
objects derived from `BoundaryFluxBase`. It computes the side integral of the
objects derived from `BoundaryFluxBase` (in the RDG module). It computes the side integral of the
specified entry of the flux at a specified boundary.

This post-processor is useful for conservation tests because the inflow and
outflow fluxes for a domain can be integrated. Note that in this case, one still
needs to integrate the post-processor over time; this is done with the
[TimeIntegratedPostprocessor](/TimeIntegratedPostprocessor.md) post-processor.

!syntax parameters /Postprocessors/BoundaryFluxPostprocessor
!syntax parameters /Postprocessors/RDGBoundaryFluxPostprocessor

!syntax inputs /Postprocessors/BoundaryFluxPostprocessor
!syntax inputs /Postprocessors/RDGBoundaryFluxPostprocessor

!syntax children /Postprocessors/BoundaryFluxPostprocessor
!syntax children /Postprocessors/RDGBoundaryFluxPostprocessor
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class BoundaryFluxBase;
/**
* Computes the side integral of a flux entry from a BoundaryFluxBase user object
*/
class BoundaryFluxPostprocessor : public SideIntegralPostprocessor
class RDGBoundaryFluxPostprocessor : public SideIntegralPostprocessor
{
public:
static InputParameters validParams();

BoundaryFluxPostprocessor(const InputParameters & parameters);
RDGBoundaryFluxPostprocessor(const InputParameters & parameters);

virtual Real computeQpIntegral() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "BoundaryFluxPostprocessor.h"
#include "RDGBoundaryFluxPostprocessor.h"
#include "BoundaryFluxBase.h"

registerMooseObject("RdgApp", BoundaryFluxPostprocessor);
registerMooseObject("RdgApp", RDGBoundaryFluxPostprocessor);
registerMooseObjectRenamed("RdgApp",
BoundaryFluxPostprocessor,
"04/01/2025 00:00",
RDGBoundaryFluxPostprocessor);

InputParameters
BoundaryFluxPostprocessor::validParams()
RDGBoundaryFluxPostprocessor::validParams()
{
InputParameters params = SideIntegralPostprocessor::validParams();

Expand All @@ -29,7 +33,7 @@ BoundaryFluxPostprocessor::validParams()
return params;
}

BoundaryFluxPostprocessor::BoundaryFluxPostprocessor(const InputParameters & parameters)
RDGBoundaryFluxPostprocessor::RDGBoundaryFluxPostprocessor(const InputParameters & parameters)
: SideIntegralPostprocessor(parameters),

_boundary_flux_uo(getUserObject<BoundaryFluxBase>("boundary_flux_uo")),
Expand All @@ -41,7 +45,7 @@ BoundaryFluxPostprocessor::BoundaryFluxPostprocessor(const InputParameters & par
}

Real
BoundaryFluxPostprocessor::computeQpIntegral()
RDGBoundaryFluxPostprocessor::computeQpIntegral()
{
std::vector<Real> U(_n_components);
for (unsigned int i = 0; i < _n_components; i++)
Expand Down

0 comments on commit afc44e9

Please sign in to comment.