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