graphmat Class Reference

#include <graphmat.h>

List of all members.

Public Member Functions

 graphmat (void)
void matstiff (matrix &d, long ipp)
void nlstresses (long ipp)
long read (XFILE *in)
 ~graphmat (void)

Public Attributes

Equation ** deq
 array of functions of graph (displacement-stiffness graph)
Equation ** eq
 array of functions of graph (displacement-force graph)
graphtype gt
 type of graph
double k
 stiffness for linear elastic material
double * limval
 array of limit values for each function
long numf
 number of function
tablefuncttab
 table of values of graph

Detailed Description

The class defines special type of material model which is used for the spring support with nonlinear stiffness. The constitutive equation is described with force/displacement diagram. The diagram can be given by the table or by the expression written to the string which is parsed. The several equations for the different ranges can be given.

Definition at line 20 of file graphmat.h.


Constructor & Destructor Documentation

graphmat ( void   ) 

The constructor inializes attributes to zero or default values.

Created by Tomas Koudelka

Definition at line 15 of file graphmat.cpp.

References deq, eq, glinear, gt, k, numf, and tab.

~graphmat ( void   ) 

The destructor deallocates used memory.

Created by Tomas Koudelka

Definition at line 33 of file graphmat.cpp.

References deq, eq, numf, and tab.


Member Function Documentation

void matstiff ( matrix d,
long  ipp 
)

The function computes material stiffnes matrix.

Parameters:
d - allocated matrix structure for material stiffness matrix (output)
ipp - integration point number
Returns:
The function returns assembled stiffness matrix in the parameter d

Created by Tomas Koudelka

Definition at line 147 of file graphmat.cpp.

References deq, Equation::Evaluate(), tablefunct::getval2(), gfunc, gfunc_ser, glinear, gt, gtable, mechmat::ip, k, limval, matrix::m, Mm, intpoints::ncompstr, numf, print_err(), intpoints::strain, and tab.

Referenced by mechmat::matstiff().

void nlstresses ( long  ipp  ) 

The function computes stresses at given integration point ipp, depending on the reached strains. The stress of the given integration point is actualized.

Parameters:
ipp - integration point number in the mechmat ip array.
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 232 of file graphmat.cpp.

References eq, Equation::Evaluate(), for(), tablefunct::getval2(), gfunc, gfunc_ser, glinear, gt, gtable, mechmat::ip, k, limval, Mm, intpoints::ncompstr, numf, print_err(), intpoints::strain, intpoints::stress, and tab.

Referenced by mechmat::compnonloc_nlstresses(), and mechmat::computenlstresses().

long read ( XFILE in  ) 

The function reads material parameters from the opened text file given by the parameter in. First it reads the graph type attribute which denotes type of used input of the diagram. Then the appropriate input function is called.

Parameters:
in - pointer to the opned text file
Return values:
0 - on success
1 - unable to read graph type
2 - error parsing single expression
3 - error parsing multiple expression
4 - unknown graph type

Created by Tomas Koudelka

Definition at line 64 of file graphmat.cpp.

References deq, Equation::Differentiate(), eq, gfunc, gfunc_ser, glinear, graphtype_kwdset(), gt, gtable, k, limval, numf, print_err(), tablefunct::read(), tab, Parser::TextToTree(), and xfscanf().

Referenced by mechmat::readmattype().


Member Data Documentation

array of functions of graph (displacement-stiffness graph)

Definition at line 38 of file graphmat.h.

Referenced by graphmat(), matstiff(), read(), and ~graphmat().

array of functions of graph (displacement-force graph)

Definition at line 36 of file graphmat.h.

Referenced by graphmat(), nlstresses(), read(), and ~graphmat().

type of graph

Definition at line 30 of file graphmat.h.

Referenced by graphmat(), matstiff(), nlstresses(), and read().

double k

stiffness for linear elastic material

Definition at line 34 of file graphmat.h.

Referenced by graphmat(), matstiff(), nlstresses(), and read().

double* limval

array of limit values for each function

Definition at line 40 of file graphmat.h.

Referenced by matstiff(), nlstresses(), and read().

long numf

number of function

Definition at line 32 of file graphmat.h.

Referenced by graphmat(), matstiff(), nlstresses(), read(), and ~graphmat().

table of values of graph

Definition at line 42 of file graphmat.h.

Referenced by graphmat(), matstiff(), nlstresses(), read(), and ~graphmat().


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

Generated by  doxygen 1.6.2