node Class Reference

#include <node.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

void alloc ( long  ncomp,
long  ncompo,
long  nlc 
)

Function allocates arrays strain, stress and other on nodes

Parameters:
ncomp - number of strain/stress components
ncompo - number of components of array other
nlc - number of load cases
Returns:
The function does not return anything.

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

Parameters:
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.

Parameters:
nid - node id
Returns:
The function does not return anything.

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.

Parameters:
ncomp - number of stress/strain components
Returns:
The function does not return anything.

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.

Parameters:
ncomp - number of stress/strain components
nlc - number of load cases
Returns:
The function does not return anything.

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.

Parameters:
ncomp - number of stress/strain components
nlc - number of load cases
Returns:
The function does not return anything.

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.

Parameters:
nlc - number of load cases
Returns:
The function does not return anything.

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.

Returns:
The function does not return anything.

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

Parameters:
lcid - load case id
Returns:
The function does not return anything.

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.

Parameters:
lcid - load case id
Returns:
The function does not return anything.

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.

Returns:
The function does not return anything.

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  ) 

Function prints nodal data into opened text file.

Parameters:
out - pointer to teh opened text file
Returns:
The function does not return anything.

Created by TKr, 02/01/2013

Definition at line 128 of file node.cpp.

References crst, e1, e2, e3, idcs, and transf.

void read ( XFILE in,
long  ndofn 
)

Function reads nodal data from opened text file.

Parameters:
in - pointer to teh opened text file
Returns:
The function does not return anything.

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 
)

Function stores other components.

Parameters:
fi - first index
ncomp - number of components
vol - volume used for contribution
otherv - array containing part of other components
Returns:
The function does not return anything.

Created by JK, 19.5.2002

Definition at line 505 of file node.cpp.

References other, and vol_other.

void storeother ( long  fi,
long  ncomp,
vector otherv 
)

Function stores other components.

Parameters:
fi - first index
ncomp- number of components
otherv - array containing part of other components
Returns:
The function does not return anything.

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.

Parameters:
lcid - load case id
fi - first index
ncomp - number of components
eps - vector containing part of strain components
Returns:
The function does not return anything.

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.

Parameters:
lcid - load case id
fi - first index
vol - volume used for contribution
eps - vector containing part of strain components
Returns:
The function does not return anything.

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 
)
void storestress ( long  lcid,
long  fi,
long  ncomp,
vector sig 
)

Function stores stress components.

Parameters:
lcid - load case id
fi - first index
ncomp- number of components
sig - vector containing part of stress components
Returns:
The function does not return anything.

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.

Parameters:
lcid - load case id
fi - first index
vol - volume used for contribution
sig - vector containing part of stress components
Returns:
The function does not return anything.

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 
)
void strain_averageval ( long  lcid  ) 

Function averages strain components.

Parameters:
lcid - load case id
Returns:
The function does not return anything.

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.

Parameters:
lcid - load case id
Returns:
The function does not return anything.

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().


Member Data Documentation

double* e1
double * e2
double * e3
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
long ncompstr

Definition at line 69 of file node.h.

Referenced by node(), nullother(), other_averageval(), and storeother().

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
long react
double* strain
double* stress
long transf
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().


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

Generated by  doxygen 1.6.2