hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::Pressure_outflow Class Reference

sets pressure on outflow boundaries More...

#include <Boundary_condition.hpp>

Inheritance diagram for hexed::Pressure_outflow:
hexed::Flow_bc

Public Member Functions

 Pressure_outflow (double pressure)
 
void apply_state (Boundary_face &) override
 applies boundary condition to state variables (Dirichlet BCs)
 
void apply_flux (Boundary_face &) override
 
- Public Member Functions inherited from hexed::Flow_bc
virtual void apply_advection (Boundary_face &)
 applies boundary condition to linear advection equation used to compute nonsmoothness indicator
 
virtual void apply_diffusion (Boundary_face &)
 
virtual void flux_diffusion (Boundary_face &)
 
virtual void init_cache (Boundary_face &)
 initialize Boundary_face::state_cache at beginning of simulation (used by Cache_bc)
 

Detailed Description

sets pressure on outflow boundaries

  • For supersonic outflow, same as Riemann_invariants
  • For subsonic outflow, sets the pressure instead of the incoming characteristic.
  • Not valid for inflow. In principle, this could be less destructive than Riemann invariants for some wakes or boundary layers.
    Attention
    Sets all the viscous fluxes to zero regarding of Mach number, which makes it technically ill-posed. Not sure if that matters in practice.

Member Function Documentation

◆ apply_flux()

void hexed::Pressure_outflow::apply_flux ( Boundary_face & bf)
overridevirtual
Todo
make this formally well-posed

Implements hexed::Flow_bc.

◆ apply_state()

void hexed::Pressure_outflow::apply_state ( Boundary_face & )
overridevirtual

applies boundary condition to state variables (Dirichlet BCs)

writes to the first n_var()*size() entries of ghost_state() (called on the provided Boundary_face.)

Implements hexed::Flow_bc.


The documentation for this class was generated from the following files: