#include <node.h>
Public Member Functions | |
void | alloc (long ncomp, long ncompo, long nlc) |
void | alloc_growstr (long nid) |
void | alloc_meaning (long nid) |
void | alloc_other (long ncompo) |
void | alloc_strain (long ncomp, long nlc) |
void | alloc_stress (long ncomp, long nlc) |
void | clean (long nlc) |
node (void) | |
void | nullother () |
void | nullstrain (long lcid) |
void | nullstress (long lcid) |
void | other_averageval () |
void | print (FILE *out) |
void | read (XFILE *in, long ndofn) |
void | realloc (long ncompo, long nlc) |
void | storeother (long fi, long ncomp, double vol, vector &otherv) |
void | storeother (long fi, long ncomp, vector &otherv) |
void | storestrain (long lcid, long fi, long ncomp, vector &eps) |
void | storestrain (long lcid, long fi, double vol, vector &eps) |
void | storestrain (long lcid, long fi, vector &eps) |
void | storestress (long lcid, long fi, long ncomp, vector &sig) |
void | storestress (long lcid, long fi, double vol, vector &sig) |
void | storestress (long lcid, long fi, vector &sig) |
void | strain_averageval (long lcid) |
void | stress_averageval (long lcid) |
~node (void) | |
Public Attributes | |
crsectype | crst |
type of cross section | |
double * | e1 |
base vectors of local coordinate system | |
double * | e2 |
double * | e3 |
long | idcs |
number of appropriate cross section type | |
long * | meaning |
long | ncompother |
number of components of other array | |
long | ncompstr |
number of components of strain/stress array | |
long | ncontr_other |
long * | ncontr_strain |
number of contributions to the node | |
long * | ncontr_stress |
double * | nodval |
array of nodal values | |
double * | other |
double * | pstra |
principal values of strains | |
double * | pstre |
principal values of stresses | |
double * | r |
reactions | |
long | react |
presence of reactions | |
double * | strain |
array containing strains | |
double * | stress |
array containing stresses | |
long | transf |
indicator of special coordinate system in node | |
double | vol_other |
double * | vol_strain |
volumes appropriate to contributions to the node | |
double * | vol_stress |
Class node:
It contains all necessary informations which are not collected in the class gnode from GEFEL.
Created by JK,
Definition at line 17 of file node.h.
node | ( | void | ) |
Constructor initializes data members to zero or default values.
Created by JK,
Definition at line 13 of file node.cpp.
References crst, e1, e2, e3, idcs, meaning, ncompother, ncompstr, ncontr_other, ncontr_strain, ncontr_stress, nodval, other, pstra, pstre, r, react, strain, stress, transf, vol_other, vol_strain, and vol_stress.
~node | ( | void | ) |
Destructor releases allocated memory of the node object.
Created by JK,
Definition at line 65 of file node.cpp.
References e1, e2, e3, meaning, ncontr_strain, ncontr_stress, nodval, other, pstra, pstre, r, strain, stress, vol_strain, and vol_stress.
void alloc | ( | long | ncomp, | |
long | ncompo, | |||
long | nlc | |||
) |
Function allocates arrays strain, stress and other on nodes
ncomp | - number of strain/stress components | |
ncompo | - number of components of array other | |
nlc | - number of load cases |
Created by JK, 18.5.2002, Revised by JK, 29.11.2006
Definition at line 165 of file node.cpp.
References memset(), ncompother, ncompstr, ncontr_strain, ncontr_stress, other, strain, and stress.
void alloc_growstr | ( | long | nid | ) |
Function allocates arrays used for problems with changing nodes, elements and DOFs
nid | - node id |
Created by JK, 7.11.2006
Definition at line 730 of file node.cpp.
References mechtop::give_ndofn(), memset(), Mt, and nodval.
Referenced by mechtop::alloc_growstr().
void alloc_meaning | ( | long | nid | ) |
The function allocates array of DOF meaning.
nid | - node id |
Created by JK,
Definition at line 687 of file node.cpp.
References mechtop::give_ndofn(), meaning, and Mt.
Referenced by mechtop::alloc_meaning().
void alloc_other | ( | long | ncompo | ) |
Function allocates array other, ncontr_other and vol_other.
ncomp | - number of stress/strain components |
Created by JK, 16.7.2008 Modified by TKo 14.11.2013
Definition at line 285 of file node.cpp.
References memset(), ncompother, and other.
Referenced by mechtop::alloc_nodes_arrays().
void alloc_strain | ( | long | ncomp, | |
long | nlc | |||
) |
Function allocates arrays strain, ncontr_strain and vol_strain.
ncomp | - number of stress/strain components | |
nlc | - number of load cases |
Created by JK, 16.7.2008
Definition at line 211 of file node.cpp.
References memset(), Mp, ncompstr, ncontr_strain, strain, probdesc::strainaver, and vol_strain.
Referenced by mechtop::alloc_nodes_arrays().
void alloc_stress | ( | long | ncomp, | |
long | nlc | |||
) |
Function allocates array stress, ncontr_stress and vol_stress.
ncomp | - number of stress/strain components | |
nlc | - number of load cases |
Created by JK, 16.7.2008
Definition at line 248 of file node.cpp.
References memset(), Mp, ncompstr, ncontr_stress, stress, probdesc::stressaver, and vol_stress.
Referenced by mechtop::alloc_nodes_arrays().
void clean | ( | long | nlc | ) |
Function cleans all arrays defined at node.
nlc | - number of load cases |
Created by JK, 23.8.2005
Definition at line 709 of file node.cpp.
References nullother(), nullstrain(), and nullstress().
Referenced by mechtop::clean_nodes().
void nullother | ( | ) |
Function sets components of array other to zero.
Created by JK,
Definition at line 664 of file node.cpp.
References Mp, ncompother, ncontr_other, other, probdesc::otheraver, and vol_other.
Referenced by clean(), and compute_nodeothers().
void nullstrain | ( | long | lcid | ) |
Function sets strain components to zero
lcid | - load case id |
Created by JK,
Definition at line 620 of file node.cpp.
References Mp, ncompstr, ncontr_strain, strain, probdesc::strainaver, and vol_strain.
Referenced by clean(), compute_nodestrains(), and nodestrains_comp().
void nullstress | ( | long | lcid | ) |
Function sets stress components to zero.
lcid | - load case id |
Created by JK,
Definition at line 643 of file node.cpp.
References Mp, ncompstr, ncontr_stress, stress, probdesc::stressaver, and vol_stress.
Referenced by clean(), and compute_nodestresses().
void other_averageval | ( | ) |
Function averages components of array other.
Created by JK,
Definition at line 588 of file node.cpp.
References Mp, ncompother, ncontr_other, other, probdesc::otheraver, and vol_other.
Referenced by compute_nodeothers().
void print | ( | FILE * | out | ) |
void read | ( | XFILE * | in, | |
long | ndofn | |||
) |
Function reads nodal data from opened text file.
in | - pointer to teh opened text file |
Created by JK
Definition at line 91 of file node.cpp.
References crsectype_kwdset(), crst, e1, e2, e3, idcs, print_err(), transf, and xfscanf().
Referenced by mechtop::read().
void realloc | ( | long | ncompo, | |
long | nlc | |||
) |
void storeother | ( | long | fi, | |
long | ncomp, | |||
double | vol, | |||
vector & | otherv | |||
) |
void storeother | ( | long | fi, | |
long | ncomp, | |||
vector & | otherv | |||
) |
Function stores other components.
fi | - first index | |
ncomp- | number of components | |
otherv | - array containing part of other components |
Created by JK, 19.5.2002
Definition at line 480 of file node.cpp.
References ncontr_other, and other.
Referenced by quadtet::nod_eqother_ip(), quadhex::nod_eqother_ip(), planeelemqq::nod_eqother_ip(), planeelemlq::nod_eqother_ip(), lintetrot::nod_eqother_ip(), lintet::nod_eqother_ip(), linhexrot::nod_eqother_ip(), linhex::nod_eqother_ip(), barelq3d::nod_eqother_ip(), barelq2d::nod_eqother_ip(), barel3d::nod_eqother_ip(), barel2d::nod_eqother_ip(), axisymqq::nod_eqother_ip(), axisymlt::nod_eqother_ip(), axisymlq::nod_eqother_ip(), and mechtop::other_nodal_values().
void storestrain | ( | long | lcid, | |
long | fi, | |||
long | ncomp, | |||
vector & | eps | |||
) |
Function stores strain components.
lcid | - load case id | |
fi | - first index | |
ncomp | - number of components | |
eps | - vector containing part of strain components |
Created by JK, 19.5.2002
Definition at line 368 of file node.cpp.
References ncompstr, ncontr_strain, and strain.
void storestrain | ( | long | lcid, | |
long | fi, | |||
double | vol, | |||
vector & | eps | |||
) |
Function stores strain components.
lcid | - load case id | |
fi | - first index | |
vol | - volume used for contribution | |
eps | - vector containing part of strain components |
Created by JK, 19.5.2002
Definition at line 339 of file node.cpp.
References vector::n, ncompstr, strain, and vol_strain.
void storestrain | ( | long | lcid, | |
long | fi, | |||
vector & | eps | |||
) |
Function stores strain components.
lcid | - load case id | |
fi | - first index | |
eps | - vector containing part of strain components |
Created by JK, 19.5.2002
Definition at line 310 of file node.cpp.
References vector::n, ncompstr, ncontr_strain, and strain.
Referenced by axisymqq::nod_strains(), planeelemlt::nod_strains_comp(), planeelemlq::nod_strains_comp(), barelq2d::nod_strains_comp(), barel2d::nod_strains_comp(), axisymqq::nod_strains_comp(), axisymlt::nod_strains_comp(), shelltr::nod_strains_ip(), quadtet::nod_strains_ip(), quadhex::nod_strains_ip(), q4plate::nod_strains_ip(), planeelemrotlt::nod_strains_ip(), planeelemrotlq::nod_strains_ip(), planeelemqq::nod_strains_ip(), planeelemlt::nod_strains_ip(), planeelemlq::nod_strains_ip(), lintetrot::nod_strains_ip(), lintet::nod_strains_ip(), linhexrot::nod_strains_ip(), linhex::nod_strains_ip(), cctelem::nod_strains_ip(), barelq3d::nod_strains_ip(), barelq2d::nod_strains_ip(), barel3d::nod_strains_ip(), barel2d::nod_strains_ip(), axisymqq::nod_strains_ip(), axisymlt::nod_strains_ip(), axisymlq::nod_strains_ip(), ArgyrisTriangle::nod_strains_ip(), axisymqq::nod_stresses(), and mechtop::strain_nodal_values().
void storestress | ( | long | lcid, | |
long | fi, | |||
long | ncomp, | |||
vector & | sig | |||
) |
Function stores stress components.
lcid | - load case id | |
fi | - first index | |
ncomp- | number of components | |
sig | - vector containing part of stress components |
Created by JK, 19.5.2002
Definition at line 453 of file node.cpp.
References ncompstr, ncontr_stress, and stress.
void storestress | ( | long | lcid, | |
long | fi, | |||
double | vol, | |||
vector & | sig | |||
) |
Function stores stress components.
lcid | - load case id | |
fi | - first index | |
vol | - volume used for contribution | |
sig | - vector containing part of stress components |
Created by JK, 25.9.2004
Definition at line 424 of file node.cpp.
References vector::n, ncompstr, stress, and vol_stress.
void storestress | ( | long | lcid, | |
long | fi, | |||
vector & | sig | |||
) |
Function stores stress components.
lcid | - load case id | |
fi | - first index | |
sig | - vector containing part of stress components |
Created by JK, 25.9.2004
Definition at line 395 of file node.cpp.
References vector::n, ncompstr, ncontr_stress, and stress.
Referenced by axisymqq::nod_stresses(), axisymqq::nod_stresses_comp(), quadtet::nod_stresses_ip(), quadhex::nod_stresses_ip(), q4plate::nod_stresses_ip(), planeelemrotlt::nod_stresses_ip(), planeelemrotlq::nod_stresses_ip(), planeelemqq::nod_stresses_ip(), planeelemlt::nod_stresses_ip(), planeelemlq::nod_stresses_ip(), lintetrot::nod_stresses_ip(), lintet::nod_stresses_ip(), linhexrot::nod_stresses_ip(), linhex::nod_stresses_ip(), cctelem::nod_stresses_ip(), barelq3d::nod_stresses_ip(), barelq2d::nod_stresses_ip(), barel3d::nod_stresses_ip(), barel2d::nod_stresses_ip(), axisymqq::nod_stresses_ip(), axisymlt::nod_stresses_ip(), axisymlq::nod_stresses_ip(), ArgyrisTriangle::nod_stresses_ip(), and mechtop::stress_nodal_values().
void strain_averageval | ( | long | lcid | ) |
Function averages strain components.
lcid | - load case id |
Created by JK,
Definition at line 527 of file node.cpp.
References Mp, ncompstr, ncontr_strain, strain, probdesc::strainaver, and vol_strain.
Referenced by compute_nodestrains(), and nodestrains_comp().
void stress_averageval | ( | long | lcid | ) |
Function averages stress components.
lcid | - load case id |
Created by JK,
Definition at line 558 of file node.cpp.
References Mp, ncompstr, ncontr_stress, stress, probdesc::stressaver, and vol_stress.
Referenced by compute_nodestresses().
type of cross section
Definition at line 49 of file node.h.
Referenced by constr_matrix(), mechcrsec::give_densityn(), mechcrsec::give_thickn(), node(), par_solve_layered_linear_statics(), par_solve_linear_statics(), print(), and read().
double* e1 |
base vectors of local coordinate system
Definition at line 55 of file node.h.
Referenced by local_global_displ_transf(), node(), print(), read(), barelc::transf_matrix(), soilplatetr::transf_matrix(), soilbeam::transf_matrix(), shelltr::transf_matrix(), shellq::transf_matrix(), quadwedge::transf_matrix(), quadtet::transf_matrix(), quadhex::transf_matrix(), plquadcontact::transf_matrix(), planeelemsubqt::transf_matrix(), planeelemrotlt::transf_matrix(), planeelemrotlq::transf_matrix(), planeelemqt::transf_matrix(), planeelemqq::transf_matrix(), planeelemlt::transf_matrix(), planeelemlq::transf_matrix(), linwedge::transf_matrix(), lintetrot::transf_matrix(), lintet::transf_matrix(), linhexrot::transf_matrix(), linhex::transf_matrix(), dstelem::transf_matrix(), dktelem::transf_matrix(), cctelem::transf_matrix(), beamgen3d::transf_matrix(), beamel3d::transf_matrix(), beamel2d::transf_matrix(), beam2dspec::transf_matrix(), barelq3d::transf_matrix(), barelq2d::transf_matrix(), barel3d::transf_matrix(), barel2d::transf_matrix(), axisymqq::transf_matrix(), axisymlt::transf_matrix(), axisymlq::transf_matrix(), ArgyrisTriangle::transf_matrix(), soilplateq::transfmat(), q4plate::transfmat(), write_gid_displ(), write_gid_nforces(), write_nforces(), and ~node().
double * e2 |
Definition at line 55 of file node.h.
Referenced by local_global_displ_transf(), node(), print(), read(), barelc::transf_matrix(), soilplatetr::transf_matrix(), soilbeam::transf_matrix(), shelltr::transf_matrix(), shellq::transf_matrix(), quadwedge::transf_matrix(), quadtet::transf_matrix(), quadhex::transf_matrix(), plquadcontact::transf_matrix(), planeelemsubqt::transf_matrix(), planeelemrotlt::transf_matrix(), planeelemrotlq::transf_matrix(), planeelemqt::transf_matrix(), planeelemqq::transf_matrix(), planeelemlt::transf_matrix(), planeelemlq::transf_matrix(), linwedge::transf_matrix(), lintetrot::transf_matrix(), lintet::transf_matrix(), linhexrot::transf_matrix(), linhex::transf_matrix(), dstelem::transf_matrix(), dktelem::transf_matrix(), cctelem::transf_matrix(), beamgen3d::transf_matrix(), beamel3d::transf_matrix(), beamel2d::transf_matrix(), beam2dspec::transf_matrix(), barelq3d::transf_matrix(), barelq2d::transf_matrix(), barel3d::transf_matrix(), barel2d::transf_matrix(), axisymqq::transf_matrix(), axisymlt::transf_matrix(), axisymlq::transf_matrix(), ArgyrisTriangle::transf_matrix(), soilplateq::transfmat(), q4plate::transfmat(), write_gid_displ(), write_gid_nforces(), write_nforces(), and ~node().
double * e3 |
Definition at line 55 of file node.h.
Referenced by local_global_displ_transf(), node(), print(), read(), soilbeam::transf_matrix(), shelltr::transf_matrix(), shellq::transf_matrix(), quadwedge::transf_matrix(), quadtet::transf_matrix(), quadhex::transf_matrix(), linwedge::transf_matrix(), lintetrot::transf_matrix(), lintet::transf_matrix(), linhexrot::transf_matrix(), linhex::transf_matrix(), beamgen3d::transf_matrix(), beamel3d::transf_matrix(), barelq3d::transf_matrix(), barel3d::transf_matrix(), write_gid_displ(), write_gid_nforces(), write_nforces(), and ~node().
long idcs |
number of appropriate cross section type
Definition at line 51 of file node.h.
Referenced by constr_matrix(), mechcrsec::give_densityn(), mechcrsec::give_thickn(), node(), par_solve_layered_linear_statics(), par_solve_linear_statics(), print(), and read().
long* meaning |
meaning of DOFs meaning=1 - displacement in x direction meaning=2 - displacement in y direction meaning=3 - displacement in z direction meaning=4 - rotation about x direction meaning=5 - rotation about y direction meaning=6 - rotation about z direction
Definition at line 92 of file node.h.
Referenced by alloc_meaning(), planeelemlq::define_meaning(), beamel3d::define_meaning(), beamel2d::define_meaning(), node(), seismtool::seisminit(), and ~node().
long ncompother |
number of components of other array
Definition at line 67 of file node.h.
Referenced by alloc(), alloc_other(), mechtop::give_maxncompo(), mechtop::give_nodal_other(), node(), nullother(), other_averageval(), nodeoutm::print_other(), outdiagm::print_others(), write_gid_nodscalar(), write_gid_nodtensor(), write_gid_nodvector(), and write_nodscalar().
long ncompstr |
number of components of strain/stress array
Definition at line 65 of file node.h.
Referenced by alloc(), alloc_strain(), alloc_stress(), mechtop::give_maxncompstr(), mechtop::give_nodal_strain(), mechtop::give_nodal_stress(), node(), nullstrain(), nullstress(), nodeoutm::print_stra(), outdiagm::print_strains(), print_strains_nodes(), nodeoutm::print_stre(), outdiagm::print_stresses(), print_stresses_nodes(), storestrain(), storestress(), strain_averageval(), stress_averageval(), write_gid_nodscalar(), write_gid_nodtensor(), write_gid_nodvector(), write_nodscalar(), and outdriverm::write_vtk_unkn().
long ncontr_other |
Definition at line 69 of file node.h.
Referenced by node(), nullother(), other_averageval(), and storeother().
long* ncontr_strain |
number of contributions to the node
Definition at line 69 of file node.h.
Referenced by alloc(), alloc_strain(), node(), nullstrain(), storestrain(), strain_averageval(), and ~node().
long * ncontr_stress |
Definition at line 69 of file node.h.
Referenced by alloc(), alloc_stress(), node(), nullstress(), storestress(), stress_averageval(), and ~node().
double* nodval |
array of nodal values
Definition at line 82 of file node.h.
Referenced by alloc_growstr(), node(), mechtop::restore_nodval(), mechtop::save_elem_inidispl(), and ~node().
double* other |
array containing other values it serves only for temporary purposes, it is often rewritten
Definition at line 79 of file node.h.
Referenced by alloc(), alloc_other(), mechtop::give_nodal_other(), node(), nullother(), other_averageval(), nodeoutm::print_other(), outdiagm::print_others(), storeother(), write_gid_nodscalar(), write_gid_nodtensor(), write_gid_nodvector(), write_nodscalar(), and ~node().
double* pstra |
principal values of strains
Definition at line 57 of file node.h.
Referenced by node(), nodeoutm::print_stra(), write_gid_nodscalar(), write_nodscalar(), and ~node().
double* pstre |
principal values of stresses
Definition at line 59 of file node.h.
Referenced by node(), nodeoutm::print_stre(), write_gid_nodscalar(), write_nodscalar(), and ~node().
double* r |
reactions
Definition at line 63 of file node.h.
Referenced by mechbclc::comp_sum_pdreact(), mechbclc::comp_sum_react(), loadcase::compute_reactions(), dloadcase::compute_reactions(), mechtop::comreacnod(), node(), nodeoutm::print_react(), outdiagm::print_reactions(), print_reactions(), select_nodforce(), write_nforces(), and ~node().
long react |
presence of reactions
Definition at line 61 of file node.h.
Referenced by loadcase::compute_reactions(), dloadcase::compute_reactions(), mechtop::comreacnod(), node(), nodeoutm::print_react(), outdiagm::print_reactions(), and print_reactions().
double* strain |
array containing strains
Definition at line 73 of file node.h.
Referenced by alloc(), alloc_strain(), soilplateq::appstrain(), planeelemsubqt::appstrain(), planeelemrotlt::appstrain(), planeelemqt::appstrain(), linhexrot::appstrain(), linhex::appstrain(), axisymqq::appstrain(), axisymlq::appstrain(), mechtop::give_nodal_strain(), planeelemlq::mechq_nodval_comp(), barel2d::mechq_nodval_comp(), node(), nullstrain(), print_default_dx(), nodeoutm::print_stra(), outdiagm::print_strains(), print_strains_nodes(), nodeoutm::print_stre(), storestrain(), strain_averageval(), write_gid_nodscalar(), write_gid_nodtensor(), write_gid_nodvector(), write_nodscalar(), outdriverm::write_vtk_unkn(), and ~node().
double* stress |
array containing stresses
Definition at line 75 of file node.h.
Referenced by alloc(), alloc_stress(), planeelemsubqt::appstress(), planeelemrotlt::appstress(), planeelemqt::appstress(), linhexrot::appstress(), linhex::appstress(), axisymqq::appstress(), axisymlt::appstress(), axisymlq::appstress(), mechtop::give_nodal_stress(), node(), nullstress(), print_default_dx(), nodeoutm::print_stre(), outdiagm::print_stresses(), print_stresses_nodes(), storestress(), stress_averageval(), write_gid_nodscalar(), write_gid_nodtensor(), write_gid_nodvector(), write_nodscalar(), outdriverm::write_vtk_unkn(), and ~node().
long transf |
indicator of special coordinate system in node
Definition at line 53 of file node.h.
Referenced by local_global_displ_transf(), mechtop::locsystems(), node(), print(), read(), barelc::transf_matrix(), soilplatetr::transf_matrix(), soilbeam::transf_matrix(), shelltr::transf_matrix(), shellq::transf_matrix(), quadwedge::transf_matrix(), quadtet::transf_matrix(), quadhex::transf_matrix(), plquadcontact::transf_matrix(), planeelemsubqt::transf_matrix(), planeelemrotlt::transf_matrix(), planeelemrotlq::transf_matrix(), planeelemqt::transf_matrix(), planeelemqq::transf_matrix(), planeelemlt::transf_matrix(), planeelemlq::transf_matrix(), linwedge::transf_matrix(), lintetrot::transf_matrix(), lintet::transf_matrix(), linhexrot::transf_matrix(), linhex::transf_matrix(), dstelem::transf_matrix(), dktelem::transf_matrix(), cctelem::transf_matrix(), beamgen3d::transf_matrix(), beamel3d::transf_matrix(), beamel2d::transf_matrix(), beam2dspec::transf_matrix(), barelq3d::transf_matrix(), barelq2d::transf_matrix(), barel3d::transf_matrix(), barel2d::transf_matrix(), axisymqq::transf_matrix(), axisymlt::transf_matrix(), axisymlq::transf_matrix(), ArgyrisTriangle::transf_matrix(), soilplateq::transfmat(), q4plate::transfmat(), write_gid_displ(), write_gid_nforces(), and write_nforces().
double vol_other |
Definition at line 71 of file node.h.
Referenced by node(), nullother(), other_averageval(), and storeother().
double* vol_strain |
volumes appropriate to contributions to the node
Definition at line 71 of file node.h.
Referenced by alloc_strain(), node(), nullstrain(), storestrain(), strain_averageval(), and ~node().
double * vol_stress |
Definition at line 71 of file node.h.
Referenced by alloc_stress(), node(), nullstress(), storestress(), stress_averageval(), and ~node().