u2d_Mesh Class Reference

#include <u2d_mesh.h>

List of all members.

Public Member Functions

 u2d_Mesh (int _spatial_dim=0, int _d_nodes_n=0, int _b_nodes_n=0, int _d_elem_n=0, int _b_elem_n=0)
int getDomainElementNumber ()
int getBoundaryElementNumber ()
int getDomainNodeNumber ()
int getBoundaryNodeNumber ()
int getSpatialDimension ()
void resize (int _spatial_dim, int _d_nodes_n, int _b_nodes_n, int _d_elem_n, int _b_elem_n)
void getReady ()
multi_vector< dense_vector
< double > > 
getDomainElementNodes (int elem_id)
multi_vector< dense_vector
< double > > 
getBoundaryElementNodes (int elem_id)
dense_vector< double > getDomainElementNodesId (int elem_id)
int getElementSideId (int jjb_id)

Public Attributes

dense2D< double > rr
dense2D< int > jjd
dense2D< int > jjb
dense2D< int > neigh
dense2D< int > jjb_s
dense_vector< int > neigh_s
dense_vector< int > b_id
dense_vector< int > jjb_sd

Detailed Description

The Triplet jjb_s, neigh_s and b_id are intended to be placed side by side they have same order so first element of one corresponds to first element of the other. They include all info of the boundary numbered by boundary. The vector jjb_sd contain the surface->domain (sd, boundary->domain) correspondence of IDs, so that each element of jjb_sd contain the id of the corresponding domain node. Example: Node 15 in the numeration of boundary nodes correspond to node 1456 in the domain numeration, so position 15 of jjb_sd will be == 1456.


Member Function Documentation

multi_vector< dense_vector< double > > u2d_Mesh::getBoundaryElementNodes ( int  elem_id  ) 

Return the nodes of a given boundary element identified by it's id. Calculate the x and y vectors of the i-th element like: element 1, coordinate x of it's first node AND coordinate x of the second node AND coorinate x of the third node. NODES ID element (i-th) 341 -> | 125 | -> | 0.645 0.454543 | | 435 | | 0.122 0.54564 | ^^^^^^^^^^^^^^^ return this matrix

multi_vector< dense_vector< double > > u2d_Mesh::getDomainElementNodes ( int  elem_id  ) 

Return the nodes of a given domain element identified by it's id. Calculate the x and y vectors of the i-th element like: element 1, coordinate x of it's first node AND coordinate x of the second node AND coorinate x of the third node. NODES ID element (i-th) 341 -> | 125 | -> | 0.645 0.454543 | | 435 | | 0.122 0.54564 | | 673 | | 0.454 0.6454 | ^^^^^^^^^^^^^^^ return this matrix

dense_vector< double > u2d_Mesh::getDomainElementNodesId ( int  elem_id  ) 

Return the nodes id of a given domain element identified by it's element id. NODEs IDs element (i-th) 341 -> | 125 | | 435 | | 673 | ^^^^^^^^^^^^^ return this vector

void u2d_Mesh::getReady (  ) 

To call after the matrix is created. This calculates the connectivity for boundary elements from domain elements, filling the jjb matric with correct values.


The documentation for this class was generated from the following files:
 All Classes Functions
Generated by  doxygen 1.6.2-20100208