https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
19{
20public:
23
29
35 Real computePressureJump(const FaceInfo & fi, Real face_mass_flux) const override;
36
37private:
40
43
45 std::unordered_map<BoundaryID, Real> _form_loss_by_id;
46
48 std::unordered_map<BoundaryID, bool> _use_higher_porosity_by_id;
49};
Computes reversible Bernoulli and irreversible form-loss pressure jumps.
static InputParameters validParams()
Return the input parameters for this pressure-jump model.
std::unordered_map< BoundaryID, bool > _use_higher_porosity_by_id
Whether each boundary uses the higher-porosity side for its form-loss reference velocity.
std::unordered_map< BoundaryID, Real > _form_loss_by_id
Form-loss coefficient associated with each pressure-jump boundary.
const Moose::Functor< Real > & _porosity
Porosity on each side of a pressure-jump face.
Real computePressureJump(const FaceInfo &fi, Real face_mass_flux) const override
Compute pressure on the non-owner side minus pressure on the owner side.
const Moose::Functor< Real > & _density
Density on each side of a pressure-jump face.
Interface for pressure-jump models evaluated by PorousRhieChowMassFlux.