https://mooseframework.inl.gov
BoundaryLinearFVFluxIntegral.h
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 #pragma once
11 
13 #include <map>
14 #include <string>
15 
17 class LinearFVFluxKernel;
18 
23 {
24 public:
26  virtual void initialSetup() override;
27 
29 
30 protected:
31  virtual Real computeQpIntegral() override;
32  virtual Real computeFaceInfoIntegral(const FaceInfo * fi) override;
33 
35  const std::vector<std::string> & _kernel_names;
36 
38  std::vector<LinearFVFluxKernel *> _kernel_objects;
39 
41  std::string _variable_name;
42 
44  unsigned int _variable_number;
45 
47  unsigned int _system_number;
48 
50  std::unordered_map<BoundaryID, LinearFVBoundaryCondition *> _boundary_bcs;
51 };
unsigned int _variable_number
Cached variable number for all kernels (must be the same)
Base class for boundary conditions for linear FV systems.
std::string _variable_name
Cached variable name for all kernels (must be the same)
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
std::unordered_map< BoundaryID, LinearFVBoundaryCondition * > _boundary_bcs
Cached BC pointers on requested boundaries.
Finite volume kernel that contributes approximations of discretized face flux terms to the matrix and...
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Computes the side integral of fluxes from selected LinearFVFluxKernel objects.
std::vector< LinearFVFluxKernel * > _kernel_objects
Kernel objects to integrate.
This data structure is used to store geometric and variable related metadata about each cell face in ...
Definition: FaceInfo.h:37
const std::vector< std::string > & _kernel_names
Names of the kernels whose boundary flux we want to integrate.
BoundaryLinearFVFluxIntegral(const InputParameters &parameters)
This postprocessor computes a surface integral of the specified variable on a sideset on the boundary...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeFaceInfoIntegral(const FaceInfo *fi) override
unsigned int _system_number
Cached system number for all kernels (must be the same)