Loading...
Searching...
No Matches
terra::fv::hex::DirichletBCs< ScalarT > Struct Template Reference

Constant Dirichlet boundary conditions for the inner (CMB) and outer (surface) radial boundaries of the spherical shell. More...

#include <helpers.hpp>

Public Attributes

ScalarT T_cmb = ScalarT( 0 )
 Prescribed temperature at the core-mantle boundary.
 
ScalarT T_surface = ScalarT( 0 )
 Prescribed temperature at the outer surface.
 
bool apply_cmb = false
 Enforce CMB Dirichlet BC when true.
 
bool apply_surface = false
 Enforce surface Dirichlet BC when true.
 

Detailed Description

template<typename ScalarT>
struct terra::fv::hex::DirichletBCs< ScalarT >

Constant Dirichlet boundary conditions for the inner (CMB) and outer (surface) radial boundaries of the spherical shell.

Used by apply_dirichlet_bcs to enforce prescribed temperatures after each time step. The BCs are applied as a strong (pointwise) enforcement — boundary cells are overwritten with the prescribed value at the end of each explicit or implicit step.

Template Parameters
ScalarTFloating-point scalar type.

Member Data Documentation

◆ apply_cmb

template<typename ScalarT >
bool terra::fv::hex::DirichletBCs< ScalarT >::apply_cmb = false

Enforce CMB Dirichlet BC when true.

◆ apply_surface

template<typename ScalarT >
bool terra::fv::hex::DirichletBCs< ScalarT >::apply_surface = false

Enforce surface Dirichlet BC when true.

◆ T_cmb

template<typename ScalarT >
ScalarT terra::fv::hex::DirichletBCs< ScalarT >::T_cmb = ScalarT( 0 )

Prescribed temperature at the core-mantle boundary.

◆ T_surface

template<typename ScalarT >
ScalarT terra::fv::hex::DirichletBCs< ScalarT >::T_surface = ScalarT( 0 )

Prescribed temperature at the outer surface.


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