G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
boundary_condition< T > Struct Template Reference

Detailed Description

template<class T>
struct gismo::boundary_condition< T >

Class that defines a boundary condition for a side of a patch for some unknown variable of a PDE.

Todo:
rename to boundaryCondition
+ Collaboration diagram for boundary_condition< T >:

Public Member Functions

const std::string & ctype () const
 Returns the type of the boundary condition.
 
function_ptr function () const
 Returns the function data pointer of the boundary condition.
 
bool isHomogeneous () const
 Returns true if there is no function data (homogeneous condition)
 
bool isSame (const boundary_condition &other)
 Checks if this is the same as apart from the function data.
 
bool parametric () const
 
index_t patch () const
 Returns the patch to which this boundary condition refers to.
 
boxSide side () const
 Returns the side to which this boundary condition refers to.
 
condition_type::type type () const
 Returns the type of the boundary condition.
 
short_t unkComponent () const
 Returns the component of the unknown which this boundary condition refers to.
 
short_t unknown () const
 Returns the unknown to which this boundary condition refers to.
 

Public Attributes

function_ptr m_function
 Function data for this boundary condition.
 
std::string m_label
 Description of type of the boundary condition.
 
short_t m_unkcomp
 Component of unknown to which this boundary condition refers to.
 
short_t m_unknown
 Unknown to which this boundary condition refers to.
 
patchSide ps
 Side of a patch for this boundary condition.
 

Member Function Documentation

bool parametric ( ) const
inline

Returns true if the function data for this boundary condition is defined in parametric coordinates