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

Sets the ghost state to the provided freestream state. More...

#include <Boundary_condition.hpp>

Inheritance diagram for hexed::Freestream:
hexed::Flow_bc

Public Member Functions

 Freestream (Mat<> freestream_state)
 freestream_state.size() must equal the n_var() of the Boundary_face you apply_state it to
 
virtual void apply_state (Boundary_face &)
 applies boundary condition to state variables (Dirichlet BCs)
 
virtual void apply_flux (Boundary_face &)
 applies boundary condition to viscous fluxes (if applicable)
 
- 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 the ghost state to the provided freestream state.

Technically this can result in an ill-posed problem if used in anything other than a supersonic inlet, but in numerical practice it often gets you the right answer anyway, at least for inviscid problems.

Member Function Documentation

◆ apply_flux()

void hexed::Freestream::apply_flux ( Boundary_face & )
virtual

applies boundary condition to viscous fluxes (if applicable)

Implements hexed::Flow_bc.

◆ apply_state()

void hexed::Freestream::apply_state ( Boundary_face & )
virtual

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: