jacobi_oo_STL
|
#include <geom.h>
Public Member Functions | |
Mesh (int ndim, int nvert_e=0, int ndof_e=0) | |
virtual | ~Mesh () |
int | Nelems () const |
int | NverticesElements () const |
int | NdofsElement () const |
int | Nnodes () const |
int | Ndims () const |
void | Resize_Connectivity (int nelem, int nvert_e) |
const std::vector< int > & | GetConnectivity () const |
std::vector< int > & | GetConnectivity () |
void | Resize_Coords (int nnodes, int ndim) |
const std::vector< double > & | GetCoords () const |
std::vector< double > & | GetCoords () |
void | SetValues (std::vector< double > &v, const std::function< double(double, double)> &func) const |
void | Debug () const |
virtual std::vector< int > | Index_DirichletNodes () const =0 |
void | Write_ascii_matlab (std::string const &fname, std::vector< double > const &v) const |
void | Visualize (std::vector< double > const &v) const |
Protected Member Functions | |
void | SetNelem (int nelem) |
void | SetNverticesElement (int nvert) |
void | SetNdofsElement (int ndof) |
void | SetNnode (int nnode) |
void | SetNdim (int ndim) |
|
explicit |
Constructor initializing the members with default values.
[in] | ndim | space dimensions (dimension for coordinates) |
[in] | nvert_e | number of vertices per element (dimension for connectivity) |
[in] | ndof_e | degrees of freedom per element (= nvert_e for linear elements) |
|
virtual |
void Mesh::Debug | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Determines the indices of those vertices with Dirichlet boundary conditions
Implemented in Mesh_2d_3_matlab, and Mesh_2d_3_square.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Mesh::SetValues | ( | std::vector< double > & | v, |
const std::function< double(double, double)> & | func | ||
) | const |
void Mesh::Visualize | ( | std::vector< double > const & | v | ) | const |
Visualize v
together with its mesh information via matlab or octave.
Comment/uncomment those code lines in method Mesh:Visualize (geom.cpp) that are supported on your system.
[in] | v | vector |
void Mesh::Write_ascii_matlab | ( | std::string const & | fname, |
std::vector< double > const & | v | ||
) | const |