barelq3d Class Reference

#include <barelq3d.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)
 barelq3d (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, vector &z)
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 &z, 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 &lx, vector &s, vector &r)
void mainip_stresses (long lcid, long eid, long ri, long ci)
void mass_matrix (long eid, matrix &mm)
void nod_eqother_ip (long lcid, long eid, long ri, long ci)
void nod_strains_comp (long lcid, long eid, double **stra)
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 &lx, 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)
 ~barelq3d (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 barelq3d defines onedimensional bar element with quadratic approximation functions

JK, 28.9.2005

Definition at line 16 of file barelq3d.h.


Constructor & Destructor Documentation

barelq3d ( void   ) 

Definition at line 14 of file barelq3d.cpp.

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

~barelq3d ( void   ) 

Definition at line 46 of file barelq3d.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, 29.9.2005

Definition at line 630 of file barelq3d.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 914 of file barelq3d.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.

JK, 28.9.2005

Definition at line 104 of file barelq3d.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 1521 of file barelq3d.cpp.

References mechtop::elements, mechmat::giveeigstrain(), intordsm, element::ipp, mechmat::matstiff(), Mm, Mt, mxv(), 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 barelq3d.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 1436 of file barelq3d.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

JK, 7.2008

Definition at line 1493 of file barelq3d.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,
vector z 
)

Function computes direction vector.

Parameters:
s - direction vector
x,y,z - vectors of nodal coordinates
Return values:
Function returns direction vector s.

JK, 28.9.2005

Definition at line 74 of file barelq3d.cpp.

References print_err(), and zero.

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

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.

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

TKo 7.2008

Definition at line 1158 of file barelq3d.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 1353 of file barelq3d.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 returns strain-displacement (geometric) matrix.

Parameters:
gm - strain-displacement (geometric) matrix
x - direction vector
s - direction vector
xi - natural coordinate
jac - Jacobian
Return values:
Function returns Jacobian in parameter jac and geometric matrix in parameter gm.

JK, 28.9.2005

Definition at line 132 of file barelq3d.cpp.

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

Referenced by elem_integration(), mainip_strains(), nod_strains_comp(), and stiffness_matrix().

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

Definition at line 192 of file barelq3d.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

Definition at line 222 of file barelq3d.cpp.

References fillm(), and sqr.

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

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

Parameters:
x,y,z - vectors of nodal coordinates
lx - vector of the x coordinates after transformation
Return values:
Function returns vector of nodal coordinates at parameter lx.

JK, 28.9.2005

Definition at line 165 of file barelq3d.cpp.

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.

TKo 7.2008

Definition at line 1131 of file barelq3d.cpp.

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

Referenced by res_incr_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 1602 of file barelq3d.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.

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.

TKo 7.2008

Definition at line 1075 of file barelq3d.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 1719 of file barelq3d.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 1761 of file barelq3d.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 1811 of file barelq3d.cpp.

References vector::a, allocv(), approx(), destrv(), mechtop::elements, gauss_points(), mechtop::give_node_coord3d(), 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 1027 of file barelq3d.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 1465 of file barelq3d.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 lx,
vector s,
vector r 
)

Function computes strains at integration points of element.

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

JK, 29.9.2005

Definition at line 475 of file barelq3d.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 
)

function computes stresses at main integration points of element

Parameters:
lcid - load case id
eid - element id
ri - row index
ci - column index

JK, 29.9.2005

Definition at line 768 of file barelq3d.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.

Definition at line 376 of file barelq3d.cpp.

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

Function computes other values in nodes of element.

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

10.5.2002

Definition at line 986 of file barelq3d.cpp.

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

void nod_strains_comp ( long  lcid,
long  eid,
double **  stra 
)

Function computes nodal strains directly.

Parameters:
lcid - load case id
eid - element id
stra - strains at nodes, stra[i][j] means eps[j] at node i
Return values:
Function returns resulting strains at parameter stra.

JK, 29.9.2005

Definition at line 555 of file barelq3d.cpp.

References allocm(), allocv(), copyv(), destrm(), destrv(), dirvect(), eldispl(), geom_matrix(), mechtop::give_elemnodes(), mechtop::give_node_coord3d(), giveloccoord(), lgvectortransf(), mechtop::locsystems(), Mt, mxv(), ndofe, nne, nodecoord(), nodes, tncomp, and transf_matrix().

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

Function computes strains at nodes of element.

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

JK, 29.9.2005

Definition at line 519 of file barelq3d.cpp.

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

Referenced by strains().

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

Function computes nodal stresses 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 864 of file barelq3d.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

JK, 29.9.2005

Definition at line 826 of file barelq3d.cpp.

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

Referenced by 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.

JK, 29.9.2005

Definition at line 710 of file barelq3d.cpp.

Referenced by nod_strains_comp().

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, 29.9.2005

Definition at line 730 of file barelq3d.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.

TKo 7.2008

Definition at line 1103 of file barelq3d.cpp.

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

Referenced by res_nonloc_internal_forces().

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, 29.9.2005

Definition at line 613 of file barelq3d.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 897 of file barelq3d.cpp.

References allip_stresses().

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

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.

JK, 29.9.2005

Definition at line 1308 of file barelq3d.cpp.

References copyv(), dirvect(), eigstrain_forces(), mechtop::give_elemnodes(), mechtop::give_node_coord3d(), 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.

JK, 29.9.2005

Definition at line 1267 of file barelq3d.cpp.

References copyv(), dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord3d(), 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.

JK, 29.9.2005

Definition at line 1185 of file barelq3d.cpp.

References copyv(), dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord3d(), 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 426 of file barelq3d.cpp.

References vector::a, allocm(), allocv(), copyv(), destrm(), destrv(), dirvect(), eldispl(), mechtop::give_elemnodes(), mechtop::give_node_coord3d(), 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 751 of file barelq3d.cpp.

References mainip_stresses().

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 1555 of file barelq3d.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.

JK, 29.9.2005

Definition at line 1226 of file barelq3d.cpp.

References copyv(), dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord3d(), giveloccoord(), glvectortransf(), mechtop::locsystems(), Mt, ndofe, nne, nodes, nonloc_internal_forces(), 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

JK, 28.9.2005

Definition at line 337 of file barelq3d.cpp.

References dirvect(), mechtop::give_elemnodes(), mechtop::give_node_coord3d(), 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 lx,
vector s 
)

Function computes stiffness matrix of one element.

Parameters:
eid - element id
ri,ci - row and column indices
sm - stiffness matrix
lx - vector of x coodinates of nodes after bar transformation to the x axis
s - direction vector
Return values:
Function returns stiffness matrix at parameter sm.

JK, 28.9.2005

Definition at line 289 of file barelq3d.cpp.

References vector::a, allocv(), bdbjac(), mechtop::elements, fillm(), gauss_points(), geom_matrix(), mechcrsec::give_area(), intordsm, element::ipp, mechmat::matstiff(), Mc, Mm, Mt, ndofe, nne, 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, 29.9.2005

Definition at line 647 of file barelq3d.cpp.

References allip_strains(), enodes, intpts, Mm, nod_strains_ip(), nowhere, print_err(), mechmat::stra, 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 930 of file barelq3d.cpp.

References allip_stresses(), enodes, intpts, Mm, nod_stresses_ip(), nowhere, print_err(), mechmat::stre, 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 247 of file barelq3d.cpp.

References node::e1, node::e2, node::e3, 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 99 of file barelq3d.h.

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

long intordmm

order of integration of mass matrix

Definition at line 105 of file barelq3d.h.

long** intordsm
long napfun

number of approximated functions on the element

Definition at line 101 of file barelq3d.h.

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

long nb
long* ncomp

array containing numbers of components of stress and strain tensors

Definition at line 97 of file barelq3d.h.

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

long ndofe
long** nip

array of numbers of integration points in blocks

Definition at line 107 of file barelq3d.h.

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

long nne

stress/strain state

Definition at line 111 of file barelq3d.h.

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

long tncomp

total number of components of the strain and stress tensors

Definition at line 94 of file barelq3d.h.

Referenced by barelq3d(), compute_eigstress(), mechtop::give_ncomp(), mechtop::give_tncomp(), mainip_stresses(), nod_strains_comp(), nod_strains_ip(), nod_stresses_comp(), nod_stresses_ip(), and stiffness_matrix().

long tnip

Definition at line 95 of file barelq3d.h.

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

double zero

computer zero

Definition at line 113 of file barelq3d.h.

Referenced by barelq3d(), and dirvect().


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

Generated by  doxygen 1.6.2