The main procedures available to be used in the TCL files, are listed below. All the usages and examples can be found on the 'cmas2d_customlib' problemtype.
- customlib::ProcessIncludes directory
This procedure parses the active include nodes of the spd file, and replaces them for the node found in the path files.
- customlib::ProcessIncludesRecurse filename basedir
This procedure parses the active include nodes of the specified file, and replaces them for the node found in the path files. Basedir is the directory where the file specified by the path field is.
- customlib::InitWriteFile filename
Open the file for writtingwriting
- customlib::EndWriteFile
- customlib::InitMaterials list_of_condition_names
The list_of_condition_names is the list of these conditions were we can find a material, so we can consider it as 'used', asigning assigning it a MID (Material Identifier) for further queries.
...
Utility to print elements and connectivities.
In the spd file, we can define condition tags to assign properties to a GiD group. The list_of_condition_names is the list of these conditions whose groups' elements must be printed.
parameters is a list of lists of 3 words, and defines the format and the information that we want to print. The first word is always a format. The second word can be "element", "material", "property" or "string". "element" is set to write element information. "material" is set to print any material property. "string" is set to print a string. The third word depends on the second one. If it's "element", the third can be: "id" or "connectivities". If it's "material", the third one can be "MID", "Density" or any material property according to GetMaterials function. Obviously, to use 'material' data, a material must be defined in the condition.
...
Utility to print the nodes of the groups of the conditions specified at list_of_condition_names, and the information asigned assigned to them.
Example:
Code Block |
---|
set list_of_condition_names [list "Point_Weight"] set parameters [list {"%1d" "element" "id"} {"%13.5e" "property" "Weight"}] customlib::WriteNodes $list_of_condition_names $parameters |
...
- customlib::GetNumberOfNodes list_of_condition_names ?flags?
Utility to get the number of nodes of the groups of the conditions specified at list_of_condition_names.
...