add
Adds the elements based on the arguments supplied from the model loaded in the active window.
The model file should be loaded to use this command.
Syntax
add <argument1> <argument2> <argument n>
Inputs
- all
- Adds all the elements of the model.
- ele all
- Adds all the elements of the model.
- ele <id>
- Adds the element with the <id> from the model. If the element with that <id> is non-existent, then nothing happens. No error message is output.
- 1D/1d all
- Adds all the 1D elements from the model. If 1D elements are not in the model then no error message is output.
- 1D/1d <id>
- Adds the 1D element with the specified <id> from the model. If the 1D element with that <id> is non-existent, then nothing happens. No error message is output.
- quad4 all
- Adds all the elements of configuration QUAD4 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- quad4 <id>
- Adds the element with the configuration QUAD4 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- quad8 all
- Adds all the elements of configuration QUAD8 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- quad8 <id>
- Adds the element with the configuration QUAD8 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model then no error message is output.
- tria3 all
- Adds all the elements of configuration TRIA3 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- tria3 <id>
- Adds the element with the configuration TRIA3 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model then no error message is output.
- tria6 all
- Adds all the elements of configuration TRIA6 from the model. If no element of the specified configuration is present in the model then no error message is output.
- tria6 <id>
- Adds the element having configuration TRIA6 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- 3D/3d all
- Adds all the 3D elements from the model. If no element of the specified dimension is present in the model, then no error message is output.
- 3D/3d <id>
- Adds the 3D element having the specified <id> from the model. If no element of the specified dimension and <id> is present in the model, then no error message is output.
- 2D/2d all
- Adds all the 2D elements from the model. If no element of the specified dimension is present in the model, then no error message is output.
- 2D/2d <id>
- Adds the 2D element having the specified <id> from the model. If no element of the specified dimension and <id> is present in the model, then no error message is output.
- comp <compname>
- Adds all the elements in the component having the specified name. If the component having the specified name is non-existent, then the message "The component with name compname does not exist" is output.
- comp <id>
- Adds all the elements in the component having the specified <id>. If the component having the specified <id> is non-existent then the message "The component with id <id> does not exist" is output.
- gro <grpname>
- Adds the elements in the group having the name <grpname>.
- bar all
- Adds all 1D elements from the model. If no element of the specified dimension is present in the model, then no error message is output.
- bar <id>
- Adds the 1D element having the specified <id> from the model. If no element of the specified dimension and <id> is present in the model then no error message is output.
- quad all
- Adds all the QUAD4 and QUAD8 elements in the model. If no elements having a QUAD config are present in the model, then no error message is output.
- quad <id>
- Adds the 2D element of any QUAD configuration having the specified <id>. If the element with the specified <id> is not present in the model then no error message is output.
- tria all
- Adds all the TRIA3 and TRIA6 elements in the model. If no elements having a TRIA configuration are present in the model, then no error message is output.
- tria <id>
- Adds the 2D element of any TRIA configuration having the specified <id>. If the element with the specified <id> is not present in the model, then no error message is output.
- tetra all
- Adds all the TETRA4 and TETRA10 elements in the model. If no elements having a TETRA configuration are present in the model, then no error message is output.
- tetra <id>
- Adds the 3D element of any TETRA configuration having the specified <id>. If the element with the specified <id> is not present in the model, then no error message is output.
- tetra4 all
- Adds all the elements of configuration TETRA4 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- tetra4 <id>
- Adds the element with the configuration TETRA4 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model then no error message is output.
- tetra10 all
- Adds all the elements of configuration TETRA10 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- tetra10 <id>
- Adds the element with the configuration TETRA10 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- hex all
- Adds all the HEX8 and HEX20 elements in the model. If no elements having a HEX configuration are present in the model then no error message is output.
- hex <id>
- Adds the 3D element of any HEX configuration having the specified <id>. If the element with the specified <id> is not present in the model, then no error message is output.
- hex8 all
- Adds all the elements of configuration HEX8 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- hex8 <id>
- Adds the element with the configuration HEX8 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- hex20 all
- Adds all the elements of configuration HEX20 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- hex20 <id>
- Adds the element having configuration HEX20 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- pen all
- Adds all the PENTA6 and PENTA15 elements in the model. If no elements having a PENTA configuration are present in the model, then no error message is output.
- pen <id>
- Adds the 3D element of any PENTA config having the specified <id>. If the element with the specified <id> is not present in the model, then no error message is output.
- pen6 all
- Adds all the elements of configuration PENTA6 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- pen6 <id>
- Adds the element having configuration PENTA6 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- pen15 all
- Adds all the elements of configuration PENTA15 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- pen15 <id>
- Adds the element with the configuration PENTA15 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- pyr all
- Adds all the PENTA5 and PENTA13 elements in the model. If no elements having a PENTA(5/13) configuration are present in the model, then no error message is output.
- pyr <id>
- Adds the 3D element of any PENTA(5/13) configuration having the specified <id>. If the element with the specified <id> is not present in the model, then no error message is output.
- pyr5 all
- Adds all the elements of configuration PENTA5 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- pyr5 <id>
- Adds the element having configuration PENTA5 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- pyr13 all
- Adds all the elements of configuration PENTA13 from the model. If no element of the specified configuration is present in the model, then no error message is output.
- pyr13 <id>
- Adds the element with the configuration PENTA13 and the specified <id> from the model. If no element of the specified configuration and <id> is present in the model, then no error message is output.
- mat <matname>
- Adds all the elements having the specified material name.
- mat <id>
- Adds all the elements in the material having the specified <id>.
- swa
- Swaps the current display.
Outputs
Nothing
Errors
No error codes.
If the model is not loaded in the active window, then the "Model File not Loaded" message is displayed. If no argument(s) or the wrong argument(s) is supplied to the add command, then the usage of the command is output based on the level of error.
Examples
- Example 1
- To add all the elements of a QUAD4
configuration:
add quad4 all;
- Example 2
- To add the elements in the components that have the names "Comp 1" and
"Comp 2", if the model contains those components:
add comp {"Comp 1" "Comp 2"};
- Example 3
- Apart from the "all" and "<id>" option, the elements can be added by passing ranges only or mixing them with IDs. The rule to follow while using this option is each ID should be separated by a space and the range should be specified using a hyphen, "-" delimiter. Ranges cannot be specified for the "ele", "comp" and "gro" options.
- Example 4
- To add comps ranging from 1 to 10:
add comp 1-10
- Example 5
- To add elements ranging from 1 to 100:
add ele 1-100
- Example 6
- To add materials ranging from 1 to 10:
add mat 1-10