jacobi_oo_STL
Public Member Functions | List of all members
Mesh_2d_3_matlab Class Reference

#include <geom.h>

Inheritance diagram for Mesh_2d_3_matlab:
Mesh

Public Member Functions

 Mesh_2d_3_matlab (std::string const &fname)
 
std::vector< int > Index_DirichletNodes () const override
 
- Public Member Functions inherited from Mesh
 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
 
void Write_ascii_matlab (std::string const &fname, std::vector< double > const &v) const
 
void Visualize (std::vector< double > const &v) const
 

Additional Inherited Members

- Protected Member Functions inherited from Mesh
void SetNelem (int nelem)
 
void SetNverticesElement (int nvert)
 
void SetNdofsElement (int ndof)
 
void SetNnode (int nnode)
 
void SetNdim (int ndim)
 

Detailed Description

2D finite element mesh of the square consiting of linear triangular elements.

Definition at line 347 of file geom.h.

Constructor & Destructor Documentation

◆ Mesh_2d_3_matlab()

Mesh_2d_3_matlab::Mesh_2d_3_matlab ( std::string const &  fname)
explicit

Reads mesh data from a binary file.

File format, see ascii_write_mesh.m

Parameters
[in]fnamefile name

Definition at line 391 of file geom.cpp.

Member Function Documentation

◆ Index_DirichletNodes()

std::vector< int > Mesh_2d_3_matlab::Index_DirichletNodes ( ) const
overridevirtual

Determines the indices of those vertices with Dirichlet boundary conditions.

Returns
index vector.
Warning
All boundary nodes are considered as Dirchlet nodes.

Implements Mesh.

Definition at line 495 of file geom.cpp.


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