13#include "metaphysicl/raw_type.h"
22 "fvbcs",
"List of boundary conditions whose contribution we want to integrate.");
24 "Computes the side integral of different finite volume flux boundary conditions.");
44 .condition<AttribThread>(
_tid);
50 std::vector<FVFluxBC *> flux_bcs;
52 if (flux_bcs.size() == 0)
54 "The given FVFluxBC with name '",
56 "' was not found! This can be due to the boundary condition not existing in the "
57 "'FVBCs' block or the boundary condition not inheriting from FVFluxBC.");
69 "The given boundary condition with name ",
71 " does not have the same boundary restriction as this postprocessor!");
77 Real flux_value = 0.0;
80 bc_ptr->updateCurrentFace(*fi);
89 mooseError(
"We should never call this function!");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", SideFVFluxBCIntegral)
virtual const std::set< BoundaryID > & boundaryIDs() const
Return the boundary IDs for this object.
TheWarehouse & theWarehouse() const
This data structure is used to store geometric and variable related metadata about each cell face in ...
const std::string & name() const
Get the name of the class.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
This postprocessor computes the side integral of different finite volume flux boundary conditions.
virtual Real computeQpIntegral() override
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
std::vector< FVFluxBC * > _bc_objects
Pointers to the boundary conditions which will be integrated.
const std::vector< std::string > _bc_names
The names of the boundary conditions that we would like to integrate.
static InputParameters validParams()
SideFVFluxBCIntegral(const InputParameters ¶meters)
virtual Real computeFaceInfoIntegral(const FaceInfo *fi) override
This postprocessor computes a surface integral of the specified variable on a sideset on the boundary...
bool _qp_integration
Whether to integrate over quadrature points or FaceInfos.
static InputParameters validParams()
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
QueryCache & condition(Args &&... args)
Adds a new condition to the query.
Query query()
query creates and returns an initialized a query object for querying objects from the warehouse.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
const THREAD_ID _tid
Thread ID of this postprocessor.