Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...