#include <dbmat.h>
Public Member Functions | |
| void | alloc (long ni) |
| allocates memory for material paramaters stored as strings | |
| void | allocmm (long ni) |
| allocates memory for material paramaters read/stored by mechmat procedures | |
| matr (void) | |
| long | read (XFILE *in) |
| reads material parameters from the opened text file as strings | |
| ~matr (void) | |
Public Attributes | |
| char ** | inst |
| array of strings with material properties (material indeces) | |
| long * | instu |
| array indicators of indeces which are used | |
| long | ninst |
| number of indeces | |
| long | ninstu |
| counter used indeces this material type | |
| long * | ridx |
| array with renumbered used indeces | |
| mattype | type |
| material type number | |
Material class
Created by Tomas Koudelka, koudelka@cml.fsv.cvut.cz Modified 04.2008 by Tomas Koudelka, koudelka@cml.fsv.cvut.cz
Definition at line 16 of file dbmat.h.
| matr | ( | void | ) |
| ~matr | ( | void | ) |
| void alloc | ( | long | ni | ) |
allocates memory for material paramaters stored as strings
The function allocates memory for ni sets of material parameters that will be read as strings.
| ni | - number of allocated instances |
Created by Tomas Koudelka, 30.6.2014
Definition at line 57 of file dbmat.cpp.
References inst, instu, memset(), ninst, and ridx.
Referenced by read().
| void allocmm | ( | long | ni | ) |
allocates memory for material paramaters read/stored by mechmat procedures
The function allocates memory for ni sets of material parameters that will be read/stored via mechmat procedures.
| ni | - number of allocated instances |
Created by Tomas Koudelka, 30.6.2014
Definition at line 80 of file dbmat.cpp.
References instu, memset(), ninst, and ridx.
Referenced by dbmat::readmm().
| long read | ( | XFILE * | in | ) |
reads material parameters from the opened text file as strings
This method reads one type of material with different parameters from the opened text file in.
| in | - opened text file with material data. |
Returns:
| 0 | - on succes | |
| 1 | - error reading index of material type instance |
Created by Tomas Koudelka koudelka@cml.fsv.cvut.cz, 7. 2009
Definition at line 102 of file dbmat.cpp.
References alloc(), XFILE::col, XFILE::fname, inst, XFILE::line, mattype_kwdset(), memset(), ninst, print_err(), skipline(), type, and xfscanf().
| char** inst |
| long* instu |
array indicators of indeces which are used
Definition at line 22 of file dbmat.h.
Referenced by alloc(), allocmm(), dbmat::mark_used(), matr(), wr_materials(), and ~matr().
| long ninst |
number of indeces
Definition at line 20 of file dbmat.h.
Referenced by alloc(), allocmm(), matr(), read(), dbmat::readmm(), dbmat::renumber_id(), wr_materials(), and ~matr().
| long ninstu |
counter used indeces this material type
Definition at line 24 of file dbmat.h.
Referenced by dbmat::mark_used(), matr(), and wr_materials().
| long* ridx |
array with renumbered used indeces
Definition at line 23 of file dbmat.h.
Referenced by alloc(), allocmm(), matr(), dbmat::renumber_id(), wr_elements(), wr_lay_elements(), wr_materials(), and ~matr().
material type number
Definition at line 19 of file dbmat.h.
Referenced by matr(), read(), dbmat::readmm(), and wr_materials().
1.6.2