waves
Basic FE playground
heat::Dirichlet Class Reference

manage Dirichlet BC More...

#include <wDirichlet.h>

Inheritance diagram for heat::Dirichlet:
Collaboration diagram for heat::Dirichlet:

Public Member Functions

 Dirichlet (std::shared_ptr< MshData > _msh, int no, double _val=0.0)
 
 Dirichlet (std::shared_ptr< MshData > _msh, std::string const &name, double _val=0.0)
 
virtual ~Dirichlet ()
 
virtual void apply (std::vector< double > &rhs)
 default implementation (prescribes "val" to all nodes) More...
 
virtual void write (std::ostream &out) const override
 

Public Attributes

std::vector< Node * > nodes
 
double val
 value for a constant BC More...
 

Detailed Description

manage Dirichlet BC

Todo:
gerer Dirichlet comme Boundary (avec une Fct en argument au lieu d'un scalaire)

Constructor & Destructor Documentation

◆ Dirichlet() [1/2]

Dirichlet::Dirichlet ( std::shared_ptr< MshData >  _msh,
int  no,
double  _val = 0.0 
)

◆ Dirichlet() [2/2]

Dirichlet::Dirichlet ( std::shared_ptr< MshData >  _msh,
std::string const &  name,
double  _val = 0.0 
)

◆ ~Dirichlet()

virtual heat::Dirichlet::~Dirichlet ( )
inlinevirtual

Member Function Documentation

◆ apply()

void Dirichlet::apply ( std::vector< double > &  rhs)
virtual

default implementation (prescribes "val" to all nodes)

◆ write()

void Dirichlet::write ( std::ostream &  out) const
overridevirtual

Member Data Documentation

◆ nodes

std::vector<Node *> heat::Dirichlet::nodes

◆ val

double heat::Dirichlet::val

value for a constant BC


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