Using Customized Names and Descriptions
In the Component Settings node, you can define custom names and descriptions by selecting different options in the Create components by list. The first option, Appending coordinates to the name, is the default behavior for spatial tensors that concatenate the tensor name with the coordinate name for each tensor component:
Axy
The option Appending indices to the name, concatenate the tensor name with the tensor index:
A12
This is the default for non-spatial tensors. Use the option Specifying a template, if you have a certain naming convention for the i:th component. For example, assume that you want to the use following names and descriptions for a velocity vector:
Then you specify the following template for the variable name
str.append(coord.i,_vel)
and for the description
#coord.i#-velocity
If you have a tensor with up to 4-indices, use the identifiers j, m, and n to access the other indices.
It is also possible to concatenate parts with str.append operator. The operator appends all its argument to generate the final component name. Assume that a feature has a user input called Port that has the value 2. The following template
str.append(phys.R,par.Port,par.Port)
then generates the following component name (root.comp1.ph is the physics scope)
root.comp1.ph.R22
The final option is Specifying each component separately. Here you type the name and description for each component in the table below the list. You can use the dot (.) and hash (#) symbols to use the coordinate names. You can implement the example above with the following component settings: