3.4.18. remove Command
This command is used to remove a component, e.g. an element, a load pattern or a recorder, from the model.
- remove $type $arg1 ...
ops.remove(type, *args)
The components that can be removed, and the arguments required for each, are:
Type and arguments |
Removes |
|---|---|
element $eleTag |
the element with tag eleTag (ele may be used for element) |
node $nodeTag |
the node with tag nodeTag |
loadPattern $patternTag |
the load pattern with tag patternTag (pattern may be used for loadPattern) |
timeSeries $tsTag |
the time series with tag tsTag |
parameter $paramTag |
the parameter with tag paramTag |
recorders |
all recorders |
recorder $recorderTag |
the recorder with tag recorderTag, the value returned by the recorder Command command |
sp $nodeTag $dof <$patternTag> |
the single-point constraint at degree-of-freedom dof of node nodeTag, in the load pattern patternTag if given (SPconstraint may be used for sp) |
sp $spTag |
the single-point constraint with tag spTag |
mp $cNodeTag |
all multi-point constraints whose constrained node is cNodeTag (MPconstraint may be used for mp) |
mp -tag $mpTag |
the multi-point constraint with tag mpTag |
Note
Removing a recorder closes it, so its file is complete. For envelope recorders this is when the envelope is written.
Remove elements before the nodes they are connected to.
Example:
The following example removes element 5, load pattern 2 and the recorder whose tag was stored in the variable recTag when it was created.
set recTag [recorder Node -file disp.out -node 1 -dof 1 disp]
...
remove element 5
remove loadPattern 2
remove recorder $recTag
recTag = ops.recorder('Node', '-file', 'disp.out', '-node', 1, '-dof', 1, 'disp')
...
ops.remove('element', 5)
ops.remove('loadPattern', 2)
ops.remove('recorder', recTag)
Code Developed by: fmk