https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FVPressureJumpGreenGaussGradient.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
9#pragma once
10
12
15
20{
21public:
24
27 const LinearFVGradientReader & pressure_gradient);
28
29private:
30 // computes without limiter which also means without removing the prescribed jumps
32 SystemBase & system,
33 GradientContainer & gradient,
34 const std::unordered_set<unsigned int> & variable_numbers) const override;
35
37 const ElemInfo & elem_info,
38 const ElemInfo & neighbor_info,
39 const MooseLinearVariableFV<Real> & variable,
40 Real elem_value,
41 Real neighbor_value) const override;
42
45
48
50 const SystemBase * _pressure_system = nullptr;
51
54};
std::vector< std::unique_ptr< libMesh::NumericVector< libMesh::Number > > > GradientContainer
std::pair< Real, Real > InternalFaceValues
Green-Gauss pressure gradient that removes prescribed jumps before interpolating across baffles.
InternalFaceValues internalFaceValues(const FaceInfo &fi, const ElemInfo &elem_info, const ElemInfo &neighbor_info, const MooseLinearVariableFV< Real > &variable, Real elem_value, Real neighbor_value) const override
void linkFlowSystem(PorousRhieChowMassFlux &rc, const LinearFVGradientReader &pressure_gradient)
Link this method to the porous Rhie-Chow object that supplies pressure jumps.
const PorousRhieChowMassFlux * _rhie_chow
Porous Rhie-Chow object supplying baffle locations and signed pressure jumps after linkage.
const SystemBase * _pressure_system
Pressure system to which this method is linked.
void computeGradientWithoutLimiter(SystemBase &system, GradientContainer &gradient, const std::unordered_set< unsigned int > &variable_numbers) const override
const LinearFVGradientReader * _pressure_gradient
Published gradient used to lag the explicit half-cell correction during reconstruction.
unsigned int _pressure_variable_number
Pressure variable number within the linked system.
Computes Rhie-Chow face mass fluxes for porous flow with optional internal pressure jumps.
const unsigned int invalid_uint