#include <gelement.h>
Public Member Functions | |
void | centroid (long dim, gnode *gnodes, double *coord) |
gelement (void) | |
long | give_cne () |
void | give_master_nodes (ivector &nod) |
long | give_ndofe () |
long | give_nmne () |
long | give_nmult () |
long | give_nne () |
void | give_nodes (ivector &nod) |
void | initiate (long *icn, long m) |
void | print (FILE *out, long m, long n, gelemtype et) |
void | print_gf (FILE *out, long m, long n) |
void | read (XFILE *in, long m, long n, gelemtype et) |
void | read_gf (XFILE *in, long m, long n) |
~gelement (void) | |
Public Attributes | |
long | auxinf |
auxiliary information | |
long * | cn |
code numbers | |
long | cne |
code numbers on element (cne=1) | |
gelemtype | get |
long * | master_nodes |
long | ndofe |
number of degrees of freedom on element | |
long | nmne |
number of master nodes on element | |
long | nmult |
long | nne |
number of nodes on element | |
long * | nodes |
array containing node numbers | |
long | tgf |
global number of edges |
Class gelement:
This class defines general finite element, only topological informations are collected.
Created by JK,
Definition at line 19 of file gelement.h.
gelement | ( | void | ) |
~gelement | ( | void | ) |
Definition at line 35 of file gelement.cpp.
References cn, master_nodes, and nodes.
void centroid | ( | long | dim, | |
gnode * | gnodes, | |||
double * | coord | |||
) |
Function computes centroid of element.
dim | - dimension of solved problem | |
gnodes | - array of all gnodes | |
- | answer, array of coordinates of centroid |
created 11.12.2003, Ladislav Svoboda, termit@cml.fsv.cvut.cz
Definition at line 316 of file gelement.cpp.
References auxinf, nne, nodes, print_err(), gnode::x, and gnode::y.
Referenced by whereispoint_outpoint().
long give_cne | ( | ) |
function returns code number indicator of element if cne=1, code numbers are defined on element, otherwise code numbers are defined on nodes
JK
Definition at line 302 of file gelement.cpp.
References cne.
Referenced by gtopology::give_cne().
void give_master_nodes | ( | ivector & | nod | ) |
function selects nodes of element
nod | - vector containing selected nodes |
JK, 17.6.2012
Definition at line 283 of file gelement.cpp.
References master_nodes, ivector::n, nmne, and print_err().
Referenced by loadcase::compute_reactions(), dloadcase::compute_reactions(), gtopology::give_master_nodes(), and gtopology::give_nodes().
long give_ndofe | ( | ) |
function returns number of degrees of freedom of element
JK
Definition at line 242 of file gelement.cpp.
References ndofe.
Referenced by gtopology::give_gndofe(), and gtopology::give_ndofe().
long give_nmne | ( | ) |
function returns the number of master nodes on element
JK
Definition at line 232 of file gelement.cpp.
References nmne.
Referenced by gtopology::give_nmne(), and gtopology::give_nne().
long give_nmult | ( | ) |
function returns number of Lagrange multipliers defined on element
JK
Definition at line 252 of file gelement.cpp.
References nmult.
Referenced by gtopology::give_gndofe().
long give_nne | ( | ) |
function returns number of nodes on element
JK
Definition at line 222 of file gelement.cpp.
References nne.
Referenced by gtopology::give_gndofe(), gtopology::give_nne(), gtopology::give_node_coord1d(), gtopology::give_node_coord2d(), gtopology::give_node_coord2dxz(), gtopology::give_node_coord3d(), gtopology::give_original_nne(), mechtop::init_from_siftop(), write_gid_contact_element(), write_gid_element(), and write_gid_elementt().
void give_nodes | ( | ivector & | nod | ) |
function selects nodes of element
nod | - vector containing selected nodes |
JK
Definition at line 264 of file gelement.cpp.
References ivector::n, nne, nodes, and print_err().
Referenced by gtopology::give_node_coord1d(), gtopology::give_node_coord2d(), gtopology::give_node_coord2dxz(), gtopology::give_node_coord3d(), gtopology::give_nodes(), and gtopology::give_original_nodes().
void initiate | ( | long * | icn, | |
long | m | |||
) |
function initiates element values function is used in parallel computation
icn | - array containing element code numbers | |
m | - number of degrees of freedom on element |
24.7.2002
Definition at line 204 of file gelement.cpp.
References cn, cne, and ndofe.
Referenced by gtopology::initiate().
void print | ( | FILE * | out, | |
long | m, | |||
long | n, | |||
gelemtype | et | |||
) |
function prints informations into output file
out | - output stream | |
m | - the number nodes on element | |
n | - the number of degrees of freedom on element | |
et | - type of element |
19/12/2012, Tkr
Definition at line 101 of file gelement.cpp.
References cn, cne, ndofe, nne, and nodes.
Referenced by elementt::print(), and element::print().
void print_gf | ( | FILE * | out, | |
long | m, | |||
long | n | |||
) |
function prints informations into output file
out | - output stream | |
m | - number nodes on element | |
n | - number of degrees of freedom on element |
19/12/2012, Tkr
Definition at line 175 of file gelement.cpp.
References cn, cne, ndofe, nne, nodes, and tgf.
Referenced by elementt::print(), and element::print().
function reads informations from input file
in | - input stream | |
m | - the number nodes on element | |
n | - the number of degrees of freedom on element | |
et | - type of element |
16.7.2002
Definition at line 56 of file gelement.cpp.
References cn, cne, ndofe, nne, nodes, print_err(), and xfscanf().
Referenced by main(), elementt::read(), and element::read().
void read_gf | ( | XFILE * | in, | |
long | m, | |||
long | n | |||
) |
function reads informations from input file
in | - input stream | |
m | - number nodes on element | |
n | - number of degrees of freedom on element |
16.7.2002
Definition at line 129 of file gelement.cpp.
References cn, cne, ndofe, nne, nodes, print_err(), tgf, and xfscanf().
Referenced by elementt::read(), and element::read().
long auxinf |
auxiliary information
Definition at line 57 of file gelement.h.
Referenced by gtopology::auxinf_init(), centroid(), mechtop::clean_ip_new_elem(), least_square::compute_patches_spr(), patch_averaging::compute_patches_spr(), gtopology::edges_mat(), gelement(), give_valuesinpoints(), mechtop::initial_displ(), transtop::initial_nodval(), adaptivityt::initialize(), least_square::insidenod_assembling(), patch_averaging::insidenod_assembling(), interpolelem(), least_square::nsp_spcoord_maxcoord_assembling(), patch_averaging::nsp_spcoord_maxcoord_assembling(), print_contoures(), print_dx(), radiation_init(), adaptivity::run(), gtopology::search_changed_elem(), whereispoint(), and whereispoint_outpoint().
long* cn |
code numbers
Definition at line 55 of file gelement.h.
Referenced by gtopology::code_num_mod(), gtopology::dof_transfer_hangnod(), gelement(), gtopology::gencodnum(), gtopology::give_cn(), gtopology::give_code_numbers(), gtopology::give_gcode_numbers(), initiate(), print(), print_gf(), read(), read_gf(), gtopology::saddlepoint_ordering(), gtopology::schur_ordering(), gtopology::searching_hanging_nodes(), mechtop::store_code_num_elem(), and ~gelement().
long cne |
code numbers on element (cne=1)
Definition at line 53 of file gelement.h.
Referenced by gtopology::code_num_mod(), gtopology::dof_transfer_hangnod(), gelement(), give_cne(), initiate(), beamel3d::nodeforces(), beamel2d::nodeforces(), print(), print_gf(), read(), read_gf(), beamel3d::stiffness_matrix(), beamel2d::stiffness_matrix_expl(), mechtop::store_code_num_elem(), and gtopology::update_active_dofs().
type of finite element with respect to geometry get is assigned in the subroutine element::read() or elementt::read ()
Definition at line 65 of file gelement.h.
Referenced by gtopology::give_elem_type().
long* master_nodes |
array containing master node numbers this array is used only when the hanging nodes are used
Definition at line 51 of file gelement.h.
Referenced by gelement(), give_master_nodes(), gtopology::searching_hanging_nodes(), and ~gelement().
long ndofe |
number of degrees of freedom on element
Definition at line 43 of file gelement.h.
Referenced by gtopology::comptop(), gelement(), springel::give_ndofe(), give_ndofe(), initiate(), print(), print_gf(), read(), read_gf(), and gtopology::searching_hanging_nodes().
long nmne |
number of master nodes on element
Definition at line 41 of file gelement.h.
Referenced by loadcase::compute_reactions(), dloadcase::compute_reactions(), gelement(), give_master_nodes(), give_nmne(), and gtopology::searching_hanging_nodes().
long nmult |
number of additional degrees of freedom on element especially number of Lagrange multipliers in layered problems
Definition at line 46 of file gelement.h.
Referenced by gelement(), give_nmult(), and gtopology::initiate_elemmult().
long nne |
number of nodes on element
Definition at line 39 of file gelement.h.
Referenced by least_square::adjap_assembling(), centroid(), gtopology::comptop(), findout_parentel_nod(), gelement(), give_nne(), give_nodes(), give_valuesinpoints(), least_square::insidenod_assembling(), patch_averaging::insidenod_assembling(), transtop::mesh_check(), couptop::mesh_check(), mechtop::mesh_check(), least_square::nsp_spcoord_maxcoord_assembling(), patch_averaging::nsp_spcoord_maxcoord_assembling(), least_square::polynom_coefficients_inv_ae(), print(), print_gf(), read(), read_gf(), and write_elements().
long* nodes |
array containing node numbers
Definition at line 48 of file gelement.h.
Referenced by least_square::adjap_assembling(), centroid(), gtopology::comptop(), femplast_epressure(), findout_parentel_nod(), gelement(), give_nodes(), mechtop::init_from_siftop(), gtopology::initiate_elemmult(), least_square::insidenod_assembling(), patch_averaging::insidenod_assembling(), interpolelem(), transtop::mesh_check(), couptop::mesh_check(), mechtop::mesh_check(), least_square::nodvalue_assembling_ae(), patch_averaging::nodvalue_assembling_ae(), opposite_node(), least_square::polynom_coefficients_inv_ae(), print(), print_contoures(), print_default_vtk(), outdriverm::print_default_vtk(), print_gf(), print_VTK_nodedata(), read(), read_gf(), whereispoint(), whereispoint_outpoint(), write_elements(), write_gid_2delement(), write_gid_2delementt(), write_gid_contact_element(), write_gid_element(), write_gid_elementt(), and ~gelement().
long tgf |
global number of edges
general function function is used for problems with growing number of elements in problem
Definition at line 62 of file gelement.h.
Referenced by gelement(), transtop::mesh_check(), mechtop::mesh_check(), print_gf(), read_gf(), gtopology::search_changed_elem(), gtopology::search_newelem(), and gtopology::update_elem().