muMECH  1.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
mumech::mElement Class Reference

Class mElement contains and handles all mesh element data. More...

#include <melement.h>

Public Member Functions

 mElement (long i, const Mesh *m)
 Constructor. More...
 
 mElement (long i, const Mesh *m, const mElement *src)
 Copy constructor. More...
 
virtual ~mElement ()
 Destructor. More...
 
long give_type (void) const
 
void set_type (long t)
 
void compute_centroids (void)
 
void allocate_fields (int pid)
 
double give_volume (void)
 
double give_energy (int pid, int lc)
 
void save_error (double val, int pid, int lc)
 
void giveReducedStiffMatrix (double *C, int pid) const
 
void give_strain (double *strain, int pid, int lc) const
 
void give_stress (double *stress, int pid, int lc) const
 

Public Attributes

long id
 identification number More...
 
const MeshM
 mesh More...
 
long nnodes
 Number of nodes at elements. More...
 
long * nodes
 Element nodes. More...
 
long region
 -2 - not set, -1 - matrix, <0;nIncl) id of inclusion More...
 
double centroids [3]
 Centroid coordinates. More...
 
double *** displc
 computed fields - displacement More...
 
double *** strain
 computed fields - strain in TVRN_THEORETICAL_FEEP notation More...
 
double *** stress
 computed fields - stress in TVRN_THEORETICAL_FEEP notation More...
 
double ** energy
 energy = INTEGRAL Strain * Stress *dVolume More...
 
double ** eqstress
 equivalent stress = SQRT(3*J2) More...
 
double ** error
 docasne, energeticka chyba reseni v porovnani s FEM resenim = (eps_mM - eps_FEM) More...
 

Private Attributes

long type
 Element type. More...
 
double volume
 Volume/Area. More...
 

Detailed Description

Class mElement contains and handles all mesh element data.

Definition at line 42 of file melement.h.

Constructor & Destructor Documentation

mumech::mElement::mElement ( long  i,
const Mesh m 
)

Constructor.

Definition at line 40 of file melement.cpp.

References displc, energy, eqstress, error, M, nnodes, nodes, region, strain, stress, type, and volume.

mumech::mElement::mElement ( long  i,
const Mesh m,
const mElement src 
)

Copy constructor.

Definition at line 58 of file melement.cpp.

References _errorr, mumech::CopyVector(), displc, energy, eqstress, error, M, nodes, region, set_type(), strain, stress, type, and volume.

mumech::mElement::~mElement ( )
virtual

Member Function Documentation

void mumech::mElement::allocate_fields ( int  pid)
void mumech::mElement::compute_centroids ( void  )

Definition at line 116 of file melement.cpp.

References centroids, mumech::Mesh::coll, mumech::mNode::coords, errol, M, nnodes, nodes, and mumech::Mesh::Nodes.

Referenced by give_type().

double mumech::mElement::give_energy ( int  pid,
int  lc 
)
void mumech::mElement::give_strain ( double *  strain,
int  pid,
int  lc 
) const
void mumech::mElement::give_stress ( double *  stress,
int  pid,
int  lc 
) const
long mumech::mElement::give_type ( void  ) const
inline
double mumech::mElement::give_volume ( void  )
void mumech::mElement::giveReducedStiffMatrix ( double *  C,
int  pid 
) const
void mumech::mElement::save_error ( double  val,
int  pid,
int  lc 
)
void mumech::mElement::set_type ( long  t)

Member Data Documentation

double mumech::mElement::centroids[3]

Centroid coordinates.

Definition at line 57 of file melement.h.

Referenced by compute_centroids().

double*** mumech::mElement::displc

computed fields - displacement

Definition at line 59 of file melement.h.

Referenced by allocate_fields(), mumech::Mesh::compute_element_fields(), mElement(), and ~mElement().

double** mumech::mElement::energy

energy = INTEGRAL Strain * Stress *dVolume

Definition at line 63 of file melement.h.

Referenced by give_energy(), mElement(), and ~mElement().

double** mumech::mElement::eqstress

equivalent stress = SQRT(3*J2)

Definition at line 64 of file melement.h.

Referenced by mElement(), and ~mElement().

double** mumech::mElement::error

docasne, energeticka chyba reseni v porovnani s FEM resenim = (eps_mM - eps_FEM)

Definition at line 70 of file melement.h.

Referenced by mElement(), save_error(), and ~mElement().

long mumech::mElement::id

identification number

Definition at line 45 of file melement.h.

Referenced by mumech::Mesh::shift_id().

const Mesh* mumech::mElement::M
long mumech::mElement::nnodes

Number of nodes at elements.

Definition at line 48 of file melement.h.

Referenced by compute_centroids(), give_volume(), mElement(), mumech::Mesh::print_geometry_file_vtk(), and set_type().

long* mumech::mElement::nodes
long mumech::mElement::region

-2 - not set, -1 - matrix, <0;nIncl) id of inclusion

Definition at line 55 of file melement.h.

Referenced by mumech::Mesh::compute_element_fields(), giveReducedStiffMatrix(), mElement(), and mumech::Mesh::read_geometry_file_vtk().

double*** mumech::mElement::strain

computed fields - strain in TVRN_THEORETICAL_FEEP notation

Definition at line 60 of file melement.h.

Referenced by allocate_fields(), mumech::Mesh::compute_element_fields(), give_energy(), mElement(), mumech::Mesh::read_geometry_file_vtk(), and ~mElement().

double*** mumech::mElement::stress

computed fields - stress in TVRN_THEORETICAL_FEEP notation

Definition at line 61 of file melement.h.

Referenced by allocate_fields(), mumech::Mesh::compute_element_fields(), give_energy(), mElement(), mumech::Mesh::read_geometry_file_vtk(), and ~mElement().

long mumech::mElement::type
private

Element type.

Definition at line 51 of file melement.h.

Referenced by give_type(), mElement(), and set_type().

double mumech::mElement::volume
private

Volume/Area.

Definition at line 52 of file melement.h.

Referenced by give_volume(), and mElement().


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