barelq2d Class Reference

#include <barelq2d.h>

List of all members.

Public Member Functions

void allip_strains (long lcid, long eid, long ri, long ci)
void allip_stresses (long lcid, long eid, long ri, long ci)
double approx (double xi, vector &nodval)
 barelq2d (void)
void compute_eigstress (long lcid, long eid, long ri, long ci)
void compute_nlstress (long lcid, long eid, long ri, long ci)
void compute_nlstressincr (long lcid, long eid, long ri, long ci)
void compute_nonloc_nlstress (long lcid, long eid, long ri, long ci)
void dirvect (vector &s, vector &x, vector &y)
void eigstrain_forces (long lcid, long eid, long ri, long ci, vector &nfor, vector &x, vector &s)
void elem_integration (integratedquant iq, long lcid, long eid, long ri, long ci, vector &nv, vector &x, vector &s)
void geom_matrix (matrix &gm, vector &x, vector &s, double xi, double &jac)
void give_glob_loc_tmat (vector &x, vector &y, matrix &tmat)
void give_loc_glob_tmat (vector &x, vector &y, matrix &tmat)
void giveloccoord (vector &x, vector &y, vector &lx)
void incr_internal_forces (long lcid, long eid, long ri, long ci, vector &ifor, vector &x, vector &s)
void inicipval (long eid, long ri, long ci, matrix &nodval, inictype *ictn)
void internal_forces (long lcid, long eid, long ri, long ci, vector &ifor, vector &x, vector &s)
void intpointval (long eid, vector &nodval, vector &ipval)
void intpointval2 (long eid, vector &nodval, vector &ipval)
void ipcoord (long eid, long ipp, long ri, long ci, vector &coord)
void load_matrix (long eid, matrix &lm)
void local_values (long lcid, long eid, long ri, long ci)
void mainip_strains (long lcid, long eid, long ri, long ci, vector &x, vector &s, vector &r)
void mainip_stresses (long lcid, long eid, long ri, long ci, long ii)
void mass_matrix (long eid, matrix &mm)
void nod_eqother_ip (long eid, long ri, long ci)
void nod_strains_comp (long lcid, long eid)
void nod_strains_ip (long lcid, long eid, long ri, long ci)
void nod_stresses_comp (long lcid, long eid, long ri, long ci, double **stra, double **stre)
void nod_stresses_ip (long lcid, long eid, long ri, long ci)
void nodecoord (vector &xi)
void nodipnum (long eid, long ri, long ci, ivector &ipnum)
void nonloc_internal_forces (long lcid, long eid, long ri, long ci, vector &ifor, vector &x, vector &s)
void res_allip_strains (long lcid, long eid)
void res_allip_stresses (long lcid, long eid)
void res_eigstrain_forces (long lcid, long eid, vector &nfor)
void res_incr_internal_forces (long lcid, long eid, vector &ifor)
void res_internal_forces (long lcid, long eid, vector &ifor)
void res_mainip_strains (long lcid, long eid)
void res_mainip_stresses (long lcid, long eid)
void res_mass_matrix (long eid, matrix &sm)
void res_nonloc_internal_forces (long lcid, long eid, vector &ifor)
void res_stiffness_matrix (long eid, matrix &sm)
void stiffness_matrix (long eid, long ri, long ci, matrix &sm, vector &x, vector &s)
void strains (long lcid, long eid, long ri, long ci)
void stresses (long lcid, long eid, long ri, long ci)
void temperaturestrains (long lcid, long eid, long ri, long ci)
void tempstrains (long lcid, long eid, long ipp, double xi, vector &eps)
void transf_matrix (ivector &nodes, matrix &tmat)
 ~barelq2d (void)

Public Attributes

long * cncomp
 array containing cumulative numbers of components of stress and strain tensors
long intordmm
 order of integration of mass matrix
long ** intordsm
 order of integration of stiffness matrix
long napfun
 number of approximated functions on the element
long nb
 number of blocks
long * ncomp
 array containing numbers of components of stress and strain tensors
long ndofe
 number of DOFs on the element
long ** nip
 array of numbers of integration points in blocks
long nne
 number of nodes on one element
strastrestate ssst
 stress/strain state
long tncomp
 total number of components of the strain and stress tensors
long tnip
double zero
 computer zero

Detailed Description

class barelq2d defines onedimensional bar element with quadratic approximation functions

JK

Definition at line 16 of file barelq2d.h.


Constructor & Destructor Documentation

barelq2d ( void   ) 

Definition at line 14 of file barelq2d.cpp.

References bar, cncomp, intordsm, Mp, napfun, nb, ncomp, ndofe, nip, nne, ssst, tncomp, tnip, probdesc::zero, and zero.

~barelq2d ( void   ) 

Definition at line 44 of file barelq2d.cpp.

References cncomp, intordsm, nb, ncomp, and nip.


Member Function Documentation

void allip_strains ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function assembles all values at all integration points.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices

JK, 25.9.2004

Definition at line 568 of file barelq2d.cpp.

References res_mainip_strains().

Referenced by res_allip_strains(), and strains().

void allip_stresses ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes all stress components at all integration points.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices

JK

Definition at line 857 of file barelq2d.cpp.

References res_mainip_stresses().

Referenced by res_allip_stresses(), and stresses().

double approx ( double  xi,
vector nodval 
)

Function approximates function defined by nodal values.

Parameters:
xi,eta - coordinates on element
nodval - nodal values
Return values:
Function returns approximated value for the given natural coordinate xi.

Definition at line 101 of file barelq2d.cpp.

References vector::a, bf_quad_1d(), f, nne, and scprd().

Referenced by inicipval(), intpointval(), and ipcoord().

void compute_eigstress ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes nonlocal correct stresses at integration points on element.

Parameters:
lcid - number of load case
eid - element id
ri,ci - row and column indices

TKo, 7.2008

Definition at line 1549 of file barelq2d.cpp.

References mechtop::elements, mechmat::giveeigstrain(), intordsm, element::ipp, mechmat::matstiff(), Mm, Mt, mxv(), nb, mechmat::storeeigstress(), and tncomp.

Referenced by eigstrain_forces().

void compute_nlstress ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes correct stresses at integration points on element.

Parameters:
lcid - number of load case
eid - element id
ri,ci - row and column indices

TKo 7.2008

Definition at line 1408 of file barelq2d.cpp.

References mechmat::computenlstresses(), mechtop::elements, intordsm, element::ipp, Mm, Mp, Mt, nb, and probdesc::strcomp.

Referenced by elem_nlstresses(), and internal_forces().

void compute_nlstressincr ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes correct stresses at integration points on element.

Parameters:
lcid - number of load case
eid - element id
ri,ci - row and column indices

TKo 7.2008

Definition at line 1443 of file barelq2d.cpp.

References mechmat::computenlstressesincr(), mechtop::elements, intordsm, element::ipp, Mm, Mp, Mt, nb, and probdesc::strcomp.

Referenced by incr_internal_forces().

void compute_nonloc_nlstress ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes nonlocal correct stresses at integration points on element.

Parameters:
lcid - number of load case
eid - element id
ri,ci - row and column indices

TKo 7.2008

Definition at line 1514 of file barelq2d.cpp.

References mechmat::compnonloc_nlstresses(), mechtop::elements, intordsm, element::ipp, Mm, Mp, Mt, nb, and probdesc::strcomp.

Referenced by nonloc_internal_forces().

void dirvect ( vector s,
vector x,
vector y 
)

Function computes direction vector.

Parameters:
s - direction vector
x,y - vectors of nodal coordinates at global coordinate system
Return values:
Function returns direction vector s.

TKR podle JK, 31.10.2006

Definition at line 74 of file barelq2d.cpp.

References zero.

Referenced by barelc::lower_cap_coup_matrix(), barelc::lower_cond_coup_matrix(), nod_strains_comp(), res_eigstrain_forces(), res_incr_internal_forces(), res_internal_forces(), barelc::res_mainip_strains(), res_mainip_strains(), res_nonloc_internal_forces(), res_stiffness_matrix(), barelc::upper_cap_coup_matrix(), barelc::upper_cond_coup_matrix(), barelc::upper_cond_coup_vector(), barelc::upper_internal_forces(), and barelc::volume_rhs_vector().

void eigstrain_forces ( long  lcid,
long  eid,
long  ri,
long  ci,
vector nfor,
vector x,
vector s 
)

Function computes nodal forces caused by temperature changes or eigenstrains.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices
nfor - array containing nodal forces
x - x-coordinates in local system
s - direction vector
Return values:
Function returns nodal values of forces caused by eigenstrains in vector nfor.

30.11.2002, JK

Definition at line 1098 of file barelq2d.cpp.

References compute_eigstress(), probdesc::eigstrcomp, eigstress, elem_integration(), and Mp.

Referenced by res_eigstrain_forces().

void elem_integration ( integratedquant  iq,
long  lcid,
long  eid,
long  ri,
long  ci,
vector nv,
vector x,
vector s 
)

Function integrates selected quantity over the finite element.

Parameters:
iq - type of integrated quantity (see alias.h)
lcid - number of load case
eid - element id
ri,ci - row and column indices
nv - nodal values
x - local x coordinate
s - directional vector
Return values:
Function returns integrated values at nodes in vector nv.

TKo, 7.2008

Definition at line 1355 of file barelq2d.cpp.

References vector::a, addv(), allocm(), allocv(), cmulv(), cncomp, destrm(), destrv(), mechtop::elements, fillv(), gauss_points(), geom_matrix(), mechcrsec::give_area(), mechmat::givequantity(), intordsm, element::ipp, Mc, Mm, Mt, mtxv(), nb, ncomp, and ndofe.

Referenced by eigstrain_forces(), incr_internal_forces(), internal_forces(), and nonloc_internal_forces().

void geom_matrix ( matrix gm,
vector x,
vector s,
double  xi,
double &  jac 
)

Function assembles strain-displacement (geometric) matrix.

Parameters:
gm - geometric matrix
x - x-coordinates in local system
s - direction vector
xi - natural coordinate
jac - Jacobian
Return values:
Function returns Jacobian in parameter jac and geometric matrix in parameter gm.

JK, 10.8.2001

Definition at line 129 of file barelq2d.cpp.

References vector::a, derivatives_1d(), dx_bf_quad_1d(), fillm(), and nne.

Referenced by elem_integration(), barelc::lower_cap_coup_matrix(), barelc::lower_cond_coup_matrix(), barelc::mainip_strains(), mainip_strains(), nod_strains_comp(), stiffness_matrix(), barelc::upper_cap_coup_matrix(), barelc::upper_cond_coup_matrix(), barelc::upper_cond_coup_vector(), barelc::upper_internal_forces(), and barelc::volume_rhs_vector().

void give_glob_loc_tmat ( vector x,
vector y,
matrix tmat 
)

Function assembles transformation matrix T between coordinate system defined on element and global coordinate system.

x_local = T x_global

Parameters:
x - vector of nodal x-coordinates in the global coordinate system
y - vector of nodal y-coordinates in the global coordinate system
tran - tranformation matrix T
Return values:
Function returns transformation matrix in parameter tmat.

JK, 12.10.2008

Definition at line 187 of file barelq2d.cpp.

References fillm(), and sqr.

void give_loc_glob_tmat ( vector x,
vector y,
matrix tmat 
)

Function assembles transformation matrix T between coordinate system defined on element and global coordinate system.

T x_local = x_global

Parameters:
x - vector of nodal x-coordinates in the global coordinate system
y - vector of nodal y-coordinates in the global coordinate system
tran - tranformation matrix T
Return values:
Function returns transformation matrix in parameter tmat.

JK, 12.10.2008

Definition at line 217 of file barelq2d.cpp.

References fillm(), and sqr.

void giveloccoord ( vector x,
vector y,
vector lx 
)

Function computes local coordinates. Coordinates of nodes after transformation of the bar to the x axis.

Parameters:
x - vector of nodal x-coordinates in global coordinate system
y - vector of nodal y-coordinates in global coordinate system
lx - vector of nodal coordinates at local element coordinate system
Return values:
Function returns vector of nodal coordinates at parameter lx.

Definition at line 158 of file barelq2d.cpp.

References sqr.

Referenced by nod_strains_comp(), res_eigstrain_forces(), res_incr_internal_forces(), res_internal_forces(), res_mainip_strains(), res_mass_matrix(), res_nonloc_internal_forces(), and res_stiffness_matrix().

void incr_internal_forces ( long  lcid,
long  eid,
long  ri,
long  ci,
vector ifor,
vector x,
vector s 
)

Function computes increment of internal forces.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices
ifor - vector of internal forces
x - x-coordinates in local system
s - direction vector
Return values:
Function returns nodal values of increments of internal forces in vector ifor.

JK, 29.4.2008

Definition at line 1070 of file barelq2d.cpp.

References compute_nlstressincr(), elem_integration(), and stressincr.

Referenced by res_incr_internal_forces(), and res_nonloc_internal_forces().

void inicipval ( long  eid,
long  ri,
long  ci,
matrix nodval,
inictype ictn 
)

The function computes initial values of the given quantities at each integration point of the element from the nodal values given by the parameter nodval. Initial condition types must be the same for all nodes of the element.

Parameters:
eid - element id
ri - block row index
ci - block column index
nodval - nodal values of particular initial conditions. nodval[i][j] represents value of j-th initial condition at i-th node of the given element.
ictn - array of types of initial condition for each node of element. The type of initial condition determines which values are being specified in the node. (ictn[i] & inistrain) returns nonzero if nodal values of initial strains are specified (ictn[i] & inistress) returns nonzero if nodal values of initial stresses are specified (ictn[i] & iniother) returns nonzero if nodal values of initial values of eqother array are specified (ictn[i] & inicond) returns nonzero if nodal values of other initial conditions are specified

The function does not return anything.

Created by Tomas Koudelka 2004 Revised by Tomas Koudelka 03.2012

Definition at line 1601 of file barelq2d.cpp.

References vector::a, allocv(), approx(), destrv(), mechtop::elements, intpoints::eqother, gauss_points(), mechmat::ic, inicond, iniother, inistrain, inistress, intordsm, mechmat::ip, element::ipp, memset(), Mm, Mt, matrix::n, nb, intpoints::ncompeqother, intpoints::ncompstr, nne, print_err(), intpoints::strain, and intpoints::stress.

Referenced by mechbclc::inicipval().

void internal_forces ( long  lcid,
long  eid,
long  ri,
long  ci,
vector ifor,
vector x,
vector s 
)

Function computes internal forces.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices
ifor - vector of internal forces
x - x-coordinates in local system
s - direction vector
Return values:
Function returns nodal values of internal forces in vector ifor.

12.8.2001

Definition at line 1014 of file barelq2d.cpp.

References compute_nlstress(), elem_integration(), and locstress.

Referenced by res_internal_forces().

void intpointval ( long  eid,
vector nodval,
vector ipval 
)

Function interpolates the nodal values to the integration points on the element quadratic approximation functions are used

Parameters:
eid - element id
nodval - nodal values
ipval - value at integration points
Return values:
Function returns approximated values at integration points in the vector ipval.

Definition at line 1718 of file barelq2d.cpp.

References vector::a, allocv(), approx(), destrv(), mechtop::elements, gauss_points(), intordsm, element::ipp, Mt, and nb.

Referenced by elem_intpointval().

void intpointval2 ( long  eid,
vector nodval,
vector ipval 
)

Function interpolates the nodal values to the integration points on the element linear approximation functions are used

Parameters:
eid - element id
nodval - nodal values
ipval - value at integration points
Return values:
Function returns approximated values at integration points in the vector ipval.

Definition at line 1760 of file barelq2d.cpp.

References vector::a, allocv(), barel2d::approx(), Bar2d, destrv(), gauss_points(), intordsm, nb, and barel2d::nne.

Referenced by elem_intpointval2().

void ipcoord ( long  eid,
long  ipp,
long  ri,
long  ci,
vector coord 
)

Function assembles coordinates of integration points.

Parameters:
eid - element id
ipp - integration point pointer
ri - row index
ci - column index
coord - array containing coordinates of integration points
Return values:
Function returns coordinates of integration points in the vector coord

TKo, 7.2008

Definition at line 1810 of file barelq2d.cpp.

References vector::a, allocv(), approx(), destrv(), mechtop::elements, gauss_points(), mechtop::give_node_coord2d(), intordsm, element::ipp, Mt, nb, and nne.

void load_matrix ( long  eid,
matrix lm 
)

Load vector is obtained after premultiplying load matrix by nodal load values.

Parameters:
eid - number of element
lm - load matrix
Return values:
Function returns load matrix in parameter lm.

JK, 12.4.2003

Definition at line 966 of file barelq2d.cpp.

void local_values ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes local values which will be used for averageing in nonlocal models at integration points. Mp->nonlocphase have to be 1.

Parameters:
lcid - number of load case
eid - element id
ri,ci - row and column indices

TKo, 7.2008

Definition at line 1479 of file barelq2d.cpp.

References mechmat::computenlstresses(), mechtop::elements, intordsm, element::ipp, Mm, Mp, Mt, nb, and probdesc::strcomp.

Referenced by elem_local_values().

void mainip_strains ( long  lcid,
long  eid,
long  ri,
long  ci,
vector x,
vector s,
vector r 
)

Function computes strains at main integration points of element.

Parameters:
lcid - load case id
eid - element id
ri - row index
ci - column index
x - x-coordinates in local system
s - direction vector
r - vector of nodal displacements

10.5.2002

Definition at line 417 of file barelq2d.cpp.

References vector::a, allocm(), allocv(), cncomp, destrm(), destrv(), mechtop::elements, gauss_points(), geom_matrix(), intordsm, element::ipp, Mm, Mt, mxv(), nb, ncomp, ndofe, and mechmat::storestrain().

Referenced by res_mainip_strains().

void mainip_stresses ( long  lcid,
long  eid,
long  ri,
long  ci,
long  ii 
)

Function computes stresses in main integration points of element.

Parameters:
eid - element id
ri - row index
ci - column index
ii - number of actual block

10.5.2002

Definition at line 713 of file barelq2d.cpp.

References vector::a, addv(), allocv(), cncomp, destrv(), mechtop::elements, fillv(), gauss_points(), mechmat::givestrain(), intordsm, element::ipp, mechmat::matstiff(), Mm, Mt, mxv(), nb, ncomp, mechmat::storestress(), and tncomp.

Referenced by res_mainip_stresses().

void mass_matrix ( long  eid,
matrix mm 
)

Function computes mass matrix of twodimensional bar element.

Parameters:
eid - element id
mm - mass matrix
Return values:
Function returns mass matrix at parameter mm.

JK, 10.8.2001

Definition at line 322 of file barelq2d.cpp.

void nod_eqother_ip ( long  eid,
long  ri,
long  ci 
)

Function computes other values in nodes of element.

Parameters:
eid - element id
ri,ci - row and column indices

10.5.2002

Definition at line 928 of file barelq2d.cpp.

References vector::a, allocv(), destrv(), mechtop::give_elemnodes(), mechmat::giveeqother(), mechmat::givencompeqother(), Mm, Mt, nne, nod, mechtop::nodes, nodipnum(), and node::storeother().

Referenced by compute_nodeothers().

void nod_strains_comp ( long  lcid,
long  eid 
)

The function computes nodal strains directly.

Parameters:
lcid - load case id
eid - element id
Returns:
The function does not return anything but it changes arrays of strains at corresponding nodes of the element.

Created by Tomas Koudelka, 14.11.2013

Definition at line 497 of file barelq2d.cpp.

References allocm(), allocv(), copyv(), dirvect(), eldispl(), geom_matrix(), mechtop::give_elemnodes(), mechtop::give_node_coord2d(), giveloccoord(), lgvectortransf(), mechtop::locsystems(), Mt, mxv(), ndofe, nne, nodcoord_bar(), mechtop::nodes, node::storestrain(), tncomp, and transf_matrix().

void nod_strains_ip ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes strains in nodes of element.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices

10.5.2002

Definition at line 461 of file barelq2d.cpp.

References mechtop::give_elemnodes(), mechmat::givestrain(), Mm, Mt, nne, nod, mechtop::nodes, nodipnum(), node::storestrain(), and tncomp.

Referenced by compute_nodestrains(), and strains().

void nod_stresses_comp ( long  lcid,
long  eid,
long  ri,
long  ci,
double **  stra,
double **  stre 
)

Function computes stresses in nodes directly.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices
stra - strains at nodes, stra[i][j] means eps[j] at node i
stre - stresses at nodes - output parameter, stre[i][j] means sig[j] at node i
Return values:
Function returns computed stresses at parameter stre.

JK, 25.9.2004

Definition at line 807 of file barelq2d.cpp.

References mechtop::elements, element::ipp, mechmat::matstiff(), Mm, Mt, mxv(), nne, and tncomp.

void nod_stresses_ip ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes stresses at nodes of element.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices

10.5.2002

Definition at line 769 of file barelq2d.cpp.

References mechtop::give_elemnodes(), mechmat::givestress(), Mm, Mt, nne, nod, mechtop::nodes, nodipnum(), node::storestress(), and tncomp.

Referenced by compute_nodestresses(), and stresses().

void nodecoord ( vector xi  ) 

Function assembles natural coordinates of nodes of element.

Parameters:
xi - array containing natural coordinates xi
Return values:
Function returns natural coordinates in vector xi.

10.5.2002

Definition at line 650 of file barelq2d.cpp.

void nodipnum ( long  eid,
long  ri,
long  ci,
ivector ipnum 
)

Function returns numbers of integration point closest to element nodes.

Parameters:
eid - element id
ri,ci - row and column indices
ipnum - array of local indeces of integration points closest to element nodes
Return values:
Indices of integration points closest to element nodes are stored in ipnum.

JK, 25.9.2004

Definition at line 670 of file barelq2d.cpp.

References mechtop::elements, element::ipp, and Mt.

Referenced by nod_eqother_ip(), nod_strains_ip(), and nod_stresses_ip().

void nonloc_internal_forces ( long  lcid,
long  eid,
long  ri,
long  ci,
vector ifor,
vector x,
vector s 
)

Function computes internal forces for nonlocal models.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices
ifor - vector of internal forces
x - x-coordinates in local system
s - direction vector
Return values:
Function returns nodal values of nonlocal internal forces in vector ifor.

12.8.2001

Definition at line 1042 of file barelq2d.cpp.

References compute_nonloc_nlstress(), elem_integration(), and nonlocstress.

void res_allip_strains ( long  lcid,
long  eid 
)

Function computes all strain components at all integration points.

Parameters:
lcid - load case id
eid - element id

JK, 26.9.2004

Definition at line 551 of file barelq2d.cpp.

References allip_strains().

void res_allip_stresses ( long  lcid,
long  eid 
)

Function computes all stress components at all integration points.

Parameters:
lcid - load case id
eid - element id

JK

Definition at line 840 of file barelq2d.cpp.

References allip_stresses().

void res_eigstrain_forces ( long  lcid,
long  eid,
vector nfor 
)

Function computes resulting internal forces caused by eigenstrains.

Parameters:
lcid - load case id
eid - element id
nfor - vector of nodal forces caused by eigenstrains
Return values:
Function returns resulting increments of internal forces in parameter nfor.

12.8.2001

Definition at line 1312 of file barelq2d.cpp.

References copyv(), dirvect(), eigstrain_forces(), mechtop::give_elemnodes(), mechtop::give_node_coord2d(), giveloccoord(), glvectortransf(), mechtop::locsystems(), Mt, ndofe, nne, nodes, and transf_matrix().

Referenced by elem_eigstrain_forces().

void res_incr_internal_forces ( long  lcid,
long  eid,
vector ifor 
)

Function computes resulting increments of internal forces.

Parameters:
lcid - load case id
eid - element id
ifor - vector of internal forces at nodes
Return values:
Function returns resulting increments of internal forces in parameter ifor.

TKo 7.2008

Definition at line 1273 of file barelq2d.cpp.

References copyv(), dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord2d(), giveloccoord(), glvectortransf(), incr_internal_forces(), mechtop::locsystems(), Mt, ndofe, nne, nodes, and transf_matrix().

Referenced by elem_incr_internal_forces().

void res_internal_forces ( long  lcid,
long  eid,
vector ifor 
)

Function computes resulting internal forces. If it is required, nodal values are transformed to the local coordinate systems.

Parameters:
lcid - load case id
eid - element id
ifor - vector of internal forces at nodes
Return values:
Function returns resulting internal forces in parameter ifor.

12.8.2001

Definition at line 1195 of file barelq2d.cpp.

References copyv(), dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord2d(), giveloccoord(), glvectortransf(), internal_forces(), mechtop::locsystems(), Mt, ndofe, nne, nodes, and transf_matrix().

Referenced by elem_internal_forces().

void res_mainip_strains ( long  lcid,
long  eid 
)

Function computes strain at main integration points.

Parameters:
lcid - load case id
eid - element id

JK

Definition at line 373 of file barelq2d.cpp.

References vector::a, allocm(), allocv(), copyv(), destrm(), destrv(), dirvect(), eldispl(), mechtop::give_elemnodes(), mechtop::give_node_coord2d(), giveloccoord(), lgvectortransf(), mechtop::locsystems(), mainip_strains(), Mt, ndofe, nne, nodes, and transf_matrix().

Referenced by allip_strains(), and compute_ipstrains().

void res_mainip_stresses ( long  lcid,
long  eid 
)

Function computes stresses at main integration points.

Parameters:
lcid - load case id
eid - element id

JK

Definition at line 691 of file barelq2d.cpp.

References mainip_stresses(), and nb.

Referenced by allip_stresses(), and compute_ipstresses().

void res_mass_matrix ( long  eid,
matrix mm 
)

Function computes mass matrix of one element. If it is required, nodal values are transformed to the local coordinate systems.

Parameters:
eid - number of element
mm - mass matrix
Return values:
Function returns resulting mass matrix in parameter mm

Definition at line 1158 of file barelq2d.cpp.

References mechtop::give_node_coord2d(), giveloccoord(), Mt, and nne.

void res_nonloc_internal_forces ( long  lcid,
long  eid,
vector ifor 
)

Function computes resulting increment of nonlocal internal forces.

Parameters:
lcid - load case id
eid - element id
ifor - vector of internal forces at nodes
Return values:
Function returns resulting nonlocal internal forces in parameter ifor.

TKo 7.2008

Definition at line 1234 of file barelq2d.cpp.

References copyv(), dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord2d(), giveloccoord(), glvectortransf(), incr_internal_forces(), mechtop::locsystems(), Mt, ndofe, nne, nodes, and transf_matrix().

Referenced by elem_nonloc_internal_forces().

void res_stiffness_matrix ( long  eid,
matrix sm 
)

Function computes stiffness matrix of one element. If it is required, nodal values are transformed to the local coordinate systems.

Parameters:
eid - number of element
sm - stiffness matrix
Return values:
Function returns resulting stiffness matrix in parameter sm

Definition at line 1122 of file barelq2d.cpp.

References dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord2d(), giveloccoord(), glmatrixtransf(), mechtop::locsystems(), Mt, ndofe, nne, nodes, stiffness_matrix(), and transf_matrix().

Referenced by stiffmat().

void stiffness_matrix ( long  eid,
long  ri,
long  ci,
matrix sm,
vector x,
vector s 
)

Function computes stiffness matrix of one element.

Parameters:
eid - element id
ri - row index
sm - stiffness matrix
x - x-coordinates in local system
s - direction vector
Return values:
Function returns stiffness matrix at parameter sm.

10.8.2001

Definition at line 275 of file barelq2d.cpp.

References vector::a, allocm(), allocv(), bdbjac(), mechtop::elements, fillm(), gauss_points(), geom_matrix(), mechcrsec::give_area(), mechtop::give_elemnodes(), intordsm, element::ipp, mechmat::matstiff(), Mc, Mm, Mt, ncomp, ndofe, nne, nodes, and tncomp.

Referenced by res_stiffness_matrix().

void strains ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes strains at strain points.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices

JK

Definition at line 585 of file barelq2d.cpp.

References allip_strains(), allocv(), destrv(), enodes, aepoints::give_aepcoord(), aepoints::give_naep(), aepoints::give_ncomp(), aepoints::give_sid(), intpts, Mm, Mp, nod_strains_ip(), nowhere, aepoints::storevalues(), mechmat::stra, probdesc::strainaver, aepoints::tape, and userdefined.

void stresses ( long  lcid,
long  eid,
long  ri,
long  ci 
)

Function computes stresses at required positions.

Parameters:
lcid - load case id
eid - element id
ri,ci - row and column indices

Definition at line 873 of file barelq2d.cpp.

References allip_stresses(), allocv(), destrv(), enodes, aepoints::give_aepcoord(), aepoints::give_naep(), aepoints::give_ncomp(), aepoints::give_sid(), intpts, Mm, Mp, nod_stresses_ip(), nowhere, aepoints::storevalues(), mechmat::stre, probdesc::stressaver, aepoints::tape, and userdefined.

Referenced by computestresses().

void temperaturestrains ( long  lcid,
long  eid,
long  ri,
long  ci 
)
void tempstrains ( long  lcid,
long  eid,
long  ipp,
double  xi,
vector eps 
)
void transf_matrix ( ivector nodes,
matrix tmat 
)

Function assembles transformation matrix from local nodal coordinate system to the global coordinate system x_g = T x_l.

Parameters:
nodes - array containing node numbers
tmat - transformation matrix
Return values:
Function returns transformation matrix in parameter tmat.

Definition at line 242 of file barelq2d.cpp.

References node::e1, node::e2, fillm(), matrix::m, Mt, ivector::n, mechtop::nodes, and node::transf.

Referenced by nod_strains_comp(), res_eigstrain_forces(), res_incr_internal_forces(), res_internal_forces(), res_mainip_strains(), res_nonloc_internal_forces(), and res_stiffness_matrix().


Member Data Documentation

long* cncomp

array containing cumulative numbers of components of stress and strain tensors

Definition at line 95 of file barelq2d.h.

Referenced by barelq2d(), elem_integration(), mainip_strains(), mainip_stresses(), and ~barelq2d().

long intordmm

order of integration of mass matrix

Definition at line 101 of file barelq2d.h.

long** intordsm
long napfun

number of approximated functions on the element

Definition at line 97 of file barelq2d.h.

Referenced by barelq2d(), and mechtop::give_napfun().

long nb
long* ncomp

array containing numbers of components of stress and strain tensors

Definition at line 93 of file barelq2d.h.

Referenced by barelq2d(), elem_integration(), mainip_strains(), mainip_stresses(), stiffness_matrix(), and ~barelq2d().

long ndofe
long** nip

array of numbers of integration points in blocks

Definition at line 103 of file barelq2d.h.

Referenced by barelq2d(), mechtop::give_nip(), and ~barelq2d().

long nne

stress/strain state

Definition at line 107 of file barelq2d.h.

Referenced by barelq2d(), and mechtop::give_ssst().

long tncomp
long tnip

Definition at line 91 of file barelq2d.h.

Referenced by barelq2d(), and mechtop::give_tnip().

double zero

computer zero

Definition at line 109 of file barelq2d.h.

Referenced by barelq2d(), and dirvect().


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

Generated by  doxygen 1.6.2