https://mooseframework.inl.gov
Loading...
Searching...
No Matches
navier_stokes
include
userobjects
BernoulliFormLossPressureJump.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
11
#include "
PressureJumpModel.h
"
12
13
#include <unordered_map>
14
18
class
BernoulliFormLossPressureJump
:
public
PressureJumpModel
19
{
20
public
:
22
static
InputParameters
validParams
();
23
28
BernoulliFormLossPressureJump
(
const
InputParameters
& params);
29
35
Real
computePressureJump
(
const
FaceInfo
& fi, Real face_mass_flux)
const override
;
36
37
private
:
39
const
Moose::Functor<Real>
&
_porosity
;
40
42
const
Moose::Functor<Real>
&
_density
;
43
45
std::unordered_map<BoundaryID, Real>
_form_loss_by_id
;
46
48
std::unordered_map<BoundaryID, bool>
_use_higher_porosity_by_id
;
49
};
PressureJumpModel.h
BernoulliFormLossPressureJump
Computes reversible Bernoulli and irreversible form-loss pressure jumps.
Definition
BernoulliFormLossPressureJump.h:19
BernoulliFormLossPressureJump::validParams
static InputParameters validParams()
Return the input parameters for this pressure-jump model.
Definition
BernoulliFormLossPressureJump.C:17
BernoulliFormLossPressureJump::_use_higher_porosity_by_id
std::unordered_map< BoundaryID, bool > _use_higher_porosity_by_id
Whether each boundary uses the higher-porosity side for its form-loss reference velocity.
Definition
BernoulliFormLossPressureJump.h:48
BernoulliFormLossPressureJump::_form_loss_by_id
std::unordered_map< BoundaryID, Real > _form_loss_by_id
Form-loss coefficient associated with each pressure-jump boundary.
Definition
BernoulliFormLossPressureJump.h:45
BernoulliFormLossPressureJump::_porosity
const Moose::Functor< Real > & _porosity
Porosity on each side of a pressure-jump face.
Definition
BernoulliFormLossPressureJump.h:39
BernoulliFormLossPressureJump::computePressureJump
Real computePressureJump(const FaceInfo &fi, Real face_mass_flux) const override
Compute pressure on the non-owner side minus pressure on the owner side.
Definition
BernoulliFormLossPressureJump.C:67
BernoulliFormLossPressureJump::_density
const Moose::Functor< Real > & _density
Density on each side of a pressure-jump face.
Definition
BernoulliFormLossPressureJump.h:42
FaceInfo
Moose::FunctorEnvelope
PressureJumpModel
Interface for pressure-jump models evaluated by PorousRhieChowMassFlux.
Definition
PressureJumpModel.h:25
InputParameters
Generated on Thu Nov 12 2026 20:25:33 for https://mooseframework.inl.gov by
1.9.8