Boundary Conditions
Supports
SUPPORT
A nested class within Boundary used to create nodal supports with various constraint conditions.
Constructor
Boundary.Support(node, constraint, group = "")
Creates support conditions at specified nodes with defined constraints.
Parameters
node
: Node ID where support is appliedconstraint
: Constraint definition (string of 1s and 0s, or predefined keywords)group (default="")
: Boundary group name
Constraint Options
- String format: "1110000" (7 characters for DOF: DX, DY, DZ, RX, RY, RZ, WARP)
- Predefined keywords:
"pin"
: Pinned support (translational constraints only)"fix"
: Fixed support (all DOF constrained)"roller"
: Roller support (vertical constraint only)
Class Attributes
Boundary.Support.sups -> List of all support instances.
Methods
json
Returns JSON representation of all supports.
sup1 = Boundary.Support(101, "fix")
print(Boundary.Support.json())
create
Sends support data to Civil NX.
Boundary.Support.create()
get
Fetches support data from Civil NX.
print(Boundary.Support.get())
sync
Synchronizes supports from Civil NX to Python.
Boundary.Support.sync()
delete
Deletes all supports from both Python and Civil NX.
Boundary.Support.delete()
Examples
#Create Beam
for i in range(3):
Node(i*10,0,0)
Node.create()
Element.Beam(1,2)
Element.Beam(2,3)
Element.create()
#Apply Support
Boundary.Support(1,"1111111","")
Boundary.Support(3,"pin","")
#create Support
Boundary.Support.create()
#Note: "" represents the absence of a boundary group. By default, it is set to "".
# Therefore, the following two commands are equivalent:Boundary.Support(3, "pin") and Boundary.Support(3, "pin", "").