*update1delements
Updates 1D beams, bars, and rods, and optionally assigns properties. Alternatively, properties and offset can be calculated from a section cut on the model.
Syntax
*update1delements <option1>=<value1> <option2>=<value2> ... <optionN>=<valueN>
Type
HyperMesh Tcl Modify Command
Description
Updates 1D beams, bars, and rods, and optionally assigns properties. Alternatively, updates the element property and offset as the result of a section cut on target entities (geometry or elements). This computes sectional properties and materials from intersected entities. Orientation remains unchanged and the offset is calculated in the elemental system from elements position relative to the calculated shear center. This option is exclusive and cannot be used along with regular orient, offset, and property update.
Inputs
- adjustoffset=<value>
- Adjust the offset when offsetflag=1. Valid values are all, reset, and vert.
- allshells=<value>
- Flag to consider all neighboring shells. For orientation, use usereference=1, orientflag=1 and orientmethod=auto. For offset, use usereference=0 and offsetflag=1.
- connectiontol=<value>
- The maximum distance for autoweld on two separated domain loops. It is only applied to inflated domains (surface cut and 2D element cut). This is used only when updating 1D elements using a section cut.
- consolidateprops=<value>
- Flag to define if properties should be consolidated. This is used only if consolidationtol is equal to or greater than 0.0.
- consolidationtol=<value>
- The tolerance value (percentage) to consolidate similar beam sections while applying a section cut. If the maximum relative variation for the area, inertias, and warping constant between two beam sections is less than the tolerance value, both beam sections are considered as equivalent. In that case, only one unique beam section is created.
- contacttol=<value>
- The maximum contact distance between two separated domains; this applies to meshed domains. This is used only when updating 1D elements using a section cut. Default is 1.0.
- createpropfromdata=<flag>
- This is used to create property from metadata. This is used only when propflag=1, usereference=1, and propmethod=bydata.
- createsketch=<flag>
- The flag to create a sketch if updated by section cut.
- cutlocation=<label>
- Section cut location. This is used only when updating 1D elements using a section cut.
- defaultmaterial=<value>
- Flag accounting for material in section cut. This is used for elastic sectiontype. If the value is not set to geometric, the average moment of inertia is evaluated considering Young's modulus and Poisson’s ratio from entity intersected by a plane. It results in the evaluation of stiffness terms as EA /EIyy /EIzz /GJ of the full section. The material impacts the centroid, shear centre location, and warping properties. If a region is fully defined (no mix of entities with and without material assigned), the max, mean, nearest, and user values are ignored. If a region is missing material property, this parameter defines how to consider material for undefined regions.
- detatchelements=<label>
- Flag to define if 1D elements should be detached from the model. If true and if the 1D element is sharing a node with 2D or 3D elements, the start and/or end node is duplicated.
- inputentitytype=<entity_type>
- The type of input entity. Valid value is elems. This is used only when usereference=0.
- inputmark=<mark_id>
- The ID of the mark of input entities. Valid values are 1 and 2. This is used only when usereference=0.
- mergetol=<value>
- The merge tolerance to close gaps while updating by section cut. If sectiontype=shell, all segments extremities in tolerance are merged. If sectiontype=solid and targetenttype=SURFS, or targetenttype=ELEMS for 2D elements, segments in tolerance are merged to create closed loops.
- offsetends=<method>
- The method of offsetting element ends. This is used only when offsetflag=1. Valid values are start (offset at start/end A), end (offset at end/end B), and startend (offset at both ends).
- offsetflag=<flag>
- 0 - Do not update element offset values.
- offsetlateral=<value>
- The lateral offset direction. Valid values are pos or neg. This is used when offsetflag=1.
- offsetmethod=<method>
- The element offset method. This is used only when offsetflag=1. Valid values are:
- offsetnormal=<value>
- The normal offset direction. Valid values are pos or neg. This is used when offsetflag=1.
- orient=<value>
- 0 - Do not update element orientation using autoupdate1delements.
- orientdatatype=<method>
- Provide a label as metadata, which uses inclination information stored as metadata. This is used only when orientflag=1, usereference=1, and orientmethod=bydata.
- orientflag=<flag>
- 0 - Do not update element orientation.
- orientmetadataent=<entity_type>
- The entity type to use for metadata. Valid value is lines. This is used only when orientflag=1, usereference=1 and orientmethod=bydata.
- orientmetadatamark=<mark_id>
- The ID of the mark for orientmetadataent. This is used only when orientflag=1, usereference=1, and orientmethod=bydata.
- orientmetadataname=<label>
- Provide a label as metadata name where orientation inclination exists. This is used only when orientflag=1, usereference=1, and orientmethod=bydata.
- orientmetadatatype=<label>
- Provide a label as byentity, to use metadata from the entity. This is used only when orientflag=1, usereference=1 and orientmethod=bydata.
- orientmethod=<method>
- The element orientation method. Valid values are auto (normal to plates), bydata, bynodeid, and bysystem. This is used only when orientflag=1.
- orientnodeid=<id>
- The ID of the orientation node. This is used only when orientflag=1 and orientmethod=bynodeid
- orientsysid=<id>
- The ID of the orientation system. This is used only when orientflag=1 and orientmethod=bysystem
- orientvector=<id>
- The ID of the orientation vector. This is used only when orientflag=1 and orientmethod=bysystem
- planebase={<value>}
- Location of the plane for the section cut. This is used only when cutlocation is not provided and when updating 1D elements using a section cut.
- planeheight=<value>
- Height of the plane to define finite plane for the section cut. This is used only when updating 1D elements using a section cut.
- planenormal={<value>}
- Normal of the plane for the section cut. This is used only when cutlocation is not provided and when updating 1D elements using a section cut.
- planewidth=<value>
- Width of the plane to define finite plane for the section cut. This is used only when updating 1D elements using a section cut.
- propcardimage=<value>
- Defines the card image of the property created from input beamsection.
- propdatalabel=<label>
- Provide a label as metadata, which uses property information stored as metadata. If beam section exists, a beam property is created. If thickness exists, a shell property is created. This is used only when propflag=1, usereference=1 and propmethod=bydata.
- propflag=<flag>
- Used to update the property on the elements or components.
- propid=<id>
- The ID of the property to apply to elements or components. This is used only when propflag=1 and propmethod=byid.
- propmetadataentitytype=<entity_type>
- The entity type to use for metadata. Valid value is lines. This is used only when propflag=1, usereference=1 and propmethod=bydata.
- propmetadatamark=<mark_id>
- The ID of the mark for propmetadataentitytype. This is used only when propflag=1, usereference=1 and propmethod=bydata.
- propmetadatatype=<label>
- Provide a label as byentity, to use metadata from the entity. This is used only when propflag=1, usereference=1 and propmethod=bydata.
- propmethod=<method>
- The method of updating the property. Valid values are bydata and byid. This is used only when propflag=1.
- refentid=<entity_id>
- The ID of the material to be assigned to the 1D property. This is used only when updating 1D elements using a section cut.
- refentmark=<mark_id>
- The ID of the mark of reference entities. Valid values are 1 and 2. This is used only when usereference=1.
- refentname=<name>
- The name of the material to be assigned to the 1D property. This is used only when updating 1D elements using a section cut.
- refentsearchtol=<tolerance>
- The search tolerance used by the reference entity (default = -1). This is used only when usereference=1.
- refenttype=<entity_type>
- The type of reference entity. Valid entities are lines and materials. This is used only when usereference=1. Materials entity is only supported when updating 1D elements using a section cut.
- refmethod=<method>
- Use metadata from the input entity. Valid value is byentity. This is used only when usereference=1.
- sectiontype=<value>
- The type of beamsection. Valid values are elastic (default), shell, or solid.
- taperangle=<value>
- Angle between the adjacent 1D elements. This is used only when cutlocation=taper.
- targetenttype=<entity_type>
- The type of target entity. Valid values are elements, surfaces, and solids. This is used only when updating 1D elements using a section cut.
- targetmark=<mark_id>
- The ID of the mark for target entities. Valid values are 1 and 2. This is used only when updating 1D elements using a section cut.
- thickness=<method>
- The method of assigning shell thickness in case multiple neighboring shells have different thickness values. This is used only when offsetflag=1. Valid values are avg, max and min.
- translatebeam=<value>
- New position to translate the 1D element after executing a section cut. Valid values are:
- usercompsbydata=<flag>
- Used only when propflag=1 and either propmethod=bymethod and usereference=1, or propmethod=byid.
- usereference=<flag>
- 0 - Update elements from user input (default).
- vertexangle=<value>
- The angle used to smooth curves while defining the beamsection topology. Valid values are 0 to 90 (default = 60).
Examples
*createmark elements 1 300-305
*createmark elements 2 586-591 619-638 652-658
*update1delements inputenttype=elems inputmark=1 targetenttype=elems targetmark=2 planebase={700 0 0} planenormal={1 0 0} refentid=1 connectiontol=0.0 contacttol=-1.0 consolidationtol=10.0 consolidateprops=1
*update1delements inputenttype=elems inputmark=1 targetenttype=elems targetmark=2 planebase={502.6 206.1 38} planenormal={0 0 -1} planewidth=200 refentid=1 planeheight=200 connectiontol=0.0 contacttol=-1.0 detatchelements=1 translatebeam=shearcenter
*update1delements inputenttype=elems inputmark=1 targetenttype=elems targetmark=2 cutlocation=0.5 connectiontol=0.0 contacttol=-1.0 detatchelements=1 translatebeam=shearcenter
*update1delements inputenttype=elems inputmark=1 targetenttype=elems targetmark=2 planewidth=10 planeheight=10 cutlocation=0.5 connectiontol=0.0 contacttol=-1.0
*update1delements inputenttype=elems inputmark=1 targetenttype=elems targetmark=2 cutlocation=taper taperangle=15 connectiontol=0.0 contacttol=-1.0
*update1delements inputenttype=elems inputmark=1 targetenttype=elems targetmark=2 planewidth=10 planeheight=10 cutlocation=taper taperangle=15 connectiontol=0.0 contacttol=-1.0
*createmark elems 1 "by config" bar2
*update1delements inputenttype=elem inputmark=1 offsetflag=1 offsetmethod=toorigin
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
2020
2021.1 Added new options connectiontol, contacttol, cutlocation, planebase, planeheight, planenormal, planewidth, refentid, refentname, refentsearchtol, refenttype, taperangle, targetenttype, and targetmark.
2021.2 - Added new options consolidationtol, consolidateprops, detatchelements, and translatebeam.
2022 - Added new values "tocentroid" and "toorigin" to the offsetmethod option.
2022.1 2022.1 – Added new optional arguments defaultmaterial, propcardimage and sectiontype.
2022.2 - Added new sectiontype value solid and new options createsketch and mergetol.
2022.3 - Added new option vertexangle.