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

#include <Boundary_condition.hpp>

Inheritance diagram for hexed::Cache_bc:
hexed::Flow_bc

Public Member Functions

 Cache_bc (Surface_func *f)
 takes ownership of f
 
void apply_state (Boundary_face &) override
 applies boundary condition to state variables (Dirichlet BCs)
 
void apply_flux (Boundary_face &) override
 applies boundary condition to viscous fluxes (if applicable)
 
void init_cache (Boundary_face &) override
 initialize Boundary_face::state_cache at beginning of simulation (used by Cache_bc)
 
- 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 &)
 

Detailed Description

Like Function_bc, but instead of evaluating the Surface_func at every time integration stage, it evaluates it once when the flow is initialized and then stores it in the Boundary_face::state_cache. Of course, this means that any time-dependence will be ignored.

Member Function Documentation

◆ apply_flux()

void hexed::Cache_bc::apply_flux ( Boundary_face & )
overridevirtual

applies boundary condition to viscous fluxes (if applicable)

Implements hexed::Flow_bc.

◆ apply_state()

void hexed::Cache_bc::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.

◆ init_cache()

void hexed::Cache_bc::init_cache ( Boundary_face & )
overridevirtual

initialize Boundary_face::state_cache at beginning of simulation (used by Cache_bc)

Reimplemented from hexed::Flow_bc.


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