waves
Basic FE playground
katoptron::Neumann Class Reference

Class used to specify in Python the different Neumann boundary conditions (both mechanical and thermal). More...

#include <wNeumann.h>

Inheritance diagram for katoptron::Neumann:
Collaboration diagram for katoptron::Neumann:

Public Member Functions

 Neumann (Problem &pbl, std::string const &name, std::string const &_BC_name, std::vector< int > _which_dof, std::vector< double > _values)
 Neumann constructor. More...
 
 Neumann (Problem &pbl, std::string const &name, std::string const &_BC_name, int x, std::vector< double > v_x, int y, std::vector< double > v_y, int z, std::vector< double > v_z, int T, std::vector< double > v_T, size_t ensemble_size)
 Neumann constructor. More...
 
virtual void write (std::ostream &out) const
 Display information. More...
 

Public Attributes

const std::string & BC_name
 
std::vector< tbox::Node * > nodes
 
std::vector< int > which_dof
 
std::vector< double > values
 

Detailed Description

Class used to specify in Python the different Neumann boundary conditions (both mechanical and thermal).

Constructor & Destructor Documentation

◆ Neumann() [1/2]

Neumann::Neumann ( katoptron::Problem pbl,
std::string const &  name,
std::string const &  _BC_name,
std::vector< int >  _which_dof,
std::vector< double >  _values 
)

Neumann constructor.

Arguments:

  • pbl: a Problem object,
  • name: the name of the loaded surface of the msh,
  • _BC_name: the name of new Neumann BC (does not have to be a nametag of the msh),
  • _which_dof: a vector that specify which degree(s) of freedom are loaded,
  • _values: a vector that specify the values of the loads.

◆ Neumann() [2/2]

Neumann::Neumann ( Problem pbl,
std::string const &  name,
std::string const &  _BC_name,
int  x,
std::vector< double >  v_x,
int  y,
std::vector< double >  v_y,
int  z,
std::vector< double >  v_z,
int  T,
std::vector< double >  v_T,
size_t  ensemble_size 
)

Neumann constructor.

Arguments:

  • pbl: a Problem object,
  • name: the name of the loaded surface of the msh,
  • _BC_name: the name of new Neumann BC (does not have to be a nametag of the msh),
  • x: a int which specify whether the x displacement component is loaded,
  • v_x: value of the load,
  • y: a int which specify whether the y displacement component is loaded,
  • v_y: value of the load,
  • z: a int which specify whether the z displacement component is loaded,
  • v_z: value of the load,
  • T: a int which specify whether the temperature is loaded,
  • v_T: value of the load,
  • ensemble_size: the ensemble size.

Member Function Documentation

◆ write()

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

Display information.

Member Data Documentation

◆ BC_name

const std::string& katoptron::Neumann::BC_name

◆ nodes

std::vector<tbox::Node *> katoptron::Neumann::nodes

◆ values

std::vector<double> katoptron::Neumann::values

◆ which_dof

std::vector<int> katoptron::Neumann::which_dof

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