Proto  3.2
Public Attributes | List of all members
Proto::BCStencil< T > Struct Template Reference

A variation of Stencil used for applying boundary conditions. Consider the diagram below. BCStencil is designed to extrapolate the value of a ghost cell (A) using interior data (C) in addition to an edge centered value on the boundary (B). Note that a different MBStencil is needed to fill ghost cells at different distances from the boundary. The updated value (A) may have different units than the source values (B, C, D, ...); for example, A might be a flux while the source values have units of the associated state. The diagram below corresponds to the case where a ghost cell in the second layer of a low-face is being filled. More...

#include <Proto_BoundaryCondition.H>

Public Attributes

Stencil< T > stencil
 
coef
 

Detailed Description

template<class T>
struct Proto::BCStencil< T >

A variation of Stencil used for applying boundary conditions. Consider the diagram below. BCStencil is designed to extrapolate the value of a ghost cell (A) using interior data (C) in addition to an edge centered value on the boundary (B). Note that a different MBStencil is needed to fill ghost cells at different distances from the boundary. The updated value (A) may have different units than the source values (B, C, D, ...); for example, A might be a flux while the source values have units of the associated state. The diagram below corresponds to the case where a ghost cell in the second layer of a low-face is being filled.

ghost <-|-> interior +—+—+—+—+- ... | A | B C | D | ... +—+—+—+—+ ...

As an equation: A = B*coef + stencil(C, D,...)

This structure is used primarily in the implementations to follow and is not recommended for public use.

Member Data Documentation

◆ stencil

template<class T>
Stencil<T> Proto::BCStencil< T >::stencil

◆ coef

template<class T>
T Proto::BCStencil< T >::coef

The documentation for this struct was generated from the following file: