#include <graphmat.h>
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 | |
tablefunct * | tab |
table of values of graph |
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.
graphmat | ( | void | ) |
~graphmat | ( | void | ) |
void matstiff | ( | matrix & | d, | |
long | ipp | |||
) |
The function computes material stiffnes matrix.
d | - allocated matrix structure for material stiffness matrix (output) | |
ipp | - integration point number |
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.
ipp | - integration point number in the mechmat ip array. |
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.
in | - pointer to the opned text file |
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().
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().