waves
Basic FE playground
katoptron::Medium Class Reference

Class used to specify in Python the different media. More...

#include <wMedium.h>

Inheritance diagram for katoptron::Medium:
Collaboration diagram for katoptron::Medium:

Public Member Functions

 Medium (Problem &pbl, int no, std::string _medium_name, std::vector< double > _E, std::vector< double > _nu, double _k=0., double _beta=0.)
 Medium constructor. More...
 
 Medium (Problem &pbl, std::string const &name, std::string _medium_name, std::vector< double > _E, std::vector< double > _nu, double _k=0., double _beta=0.)
 Medium constructor. More...
 
 Medium (Problem &pbl, int no, std::string _medium_name, std::vector< double > _E, std::vector< double > _nu, std::vector< double > _k, std::vector< double > _beta)
 Medium constructor. More...
 
 Medium (Problem &pbl, std::string const &name, std::string _medium_name, std::vector< double > _E, std::vector< double > _nu, std::vector< double > _k, std::vector< double > _beta)
 Medium constructor. More...
 
virtual void write (std::ostream &out) const
 Display information. More...
 

Public Attributes

std::string medium_name
 
double E
 
double nu
 
double k
 
double beta
 
std::vector< double > E_vector
 
std::vector< double > nu_vector
 
std::vector< double > k_vector
 
std::vector< double > beta_vector
 

Detailed Description

Class used to specify in Python the different media.

Constructor & Destructor Documentation

◆ Medium() [1/4]

Medium::Medium ( Problem pbl,
int  no,
std::string  _medium_name,
std::vector< double >  _E,
std::vector< double >  _nu,
double  _k = 0.,
double  _beta = 0. 
)

Medium constructor.

Arguments:

  • pbl: a Problem object,
  • no: the ID of the body of the msh,
  • _medium_name: the name of new medium (does not have to be a nametag of the msh),
  • _E: a vector of values of the Young modulus \(E\) (one per sample),
  • _nu: a vector of values of the Poisson coefficients \(\nu\) (one per sample),
  • _k: a vector of values of the heat conductivity \(k\) (one per sample),
  • _beta: a vector of values of the coefficient of thermal expansion \(\beta\) (one per sample).

◆ Medium() [2/4]

Medium::Medium ( Problem pbl,
std::string const &  name,
std::string  _medium_name,
std::vector< double >  _E,
std::vector< double >  _nu,
double  _k = 0.,
double  _beta = 0. 
)

Medium constructor.

Arguments:

  • pbl: a Problem object,
  • name: the name of the body of the msh,
  • _medium_name: the name of new medium (does not have to be a nametag of the msh),
  • _E: a vector of values of the Young modulus \(E\) (one per sample),
  • _nu: a vector of values of the Poisson coefficients \(\nu\) (one per sample),
  • _k: a vector of values of the heat conductivity \(k\) (one per sample),
  • _beta: a vector of values of the coefficient of thermal expansion \(\beta\) (one per sample).

◆ Medium() [3/4]

Medium::Medium ( Problem pbl,
int  no,
std::string  _medium_name,
std::vector< double >  _E,
std::vector< double >  _nu,
std::vector< double >  _k,
std::vector< double >  _beta 
)

Medium constructor.

Arguments:

  • pbl: a Problem object,
  • no: the ID of the body of the msh,
  • _medium_name: the name of new medium (does not have to be a nametag of the msh),
  • _E: a vector of values of the Young modulus \(E\) (one per sample),
  • _nu: a vector of values of the Poisson coefficients \(\nu\) (one per sample),
  • _k: the heat conductivity \(k\) equal to zero by default,
  • _beta: the coefficient of thermal expansion \(\beta\) equal to zero by default.

◆ Medium() [4/4]

Medium::Medium ( Problem pbl,
std::string const &  name,
std::string  _medium_name,
std::vector< double >  _E,
std::vector< double >  _nu,
std::vector< double >  _k,
std::vector< double >  _beta 
)

Medium constructor.

Arguments:

  • pbl: a Problem object,
  • name: the name of the body of the msh,
  • _medium_name: the name of new medium (does not have to be a nametag of the msh),
  • _E: a vector of values of the Young modulus \(E\) (one per sample),
  • _nu: a vector of values of the Poisson coefficients \(\nu\) (one per sample),
  • _k: the heat conductivity \(k\) equal to zero by default,
  • _beta: the coefficient of thermal expansion \(\beta\) equal to zero by default.

Member Function Documentation

◆ write()

void Medium::write ( std::ostream &  out) const
virtual

Display information.

Member Data Documentation

◆ beta

double katoptron::Medium::beta

◆ beta_vector

std::vector<double> katoptron::Medium::beta_vector

◆ E

double katoptron::Medium::E

◆ E_vector

std::vector<double> katoptron::Medium::E_vector

◆ k

double katoptron::Medium::k

◆ k_vector

std::vector<double> katoptron::Medium::k_vector

◆ medium_name

std::string katoptron::Medium::medium_name

◆ nu

double katoptron::Medium::nu

◆ nu_vector

std::vector<double> katoptron::Medium::nu_vector

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