Load
Self Weight
SELF-WEIGHT LOAD
A nested class within Load used to create self-weight loads.
Constructor
Load.SW(load_case, dir = "Z", value = -1, load_group = "")
Creates a self-weight load for the specified load case.
Parameters
load_case
: Name of the load casedir (default="Z")
: Direction of self-weight ("X", "Y", or "Z")value (default=-1)
: Magnitude of self-weight (can be int or list [FX, FY, FZ])load_group (default="")
: Load group name
Methods
json
Returns JSON representation of all self-weight loads.
sw1 = Load.SW("Dead Load", "Z", -1)
print(Load.SW.json())
create
Sends self-weight loads to Civil NX.
Load.SW.create()
get
Fetches self-weight loads from Civil NX.
print(Load.SW.get())
sync
Synchronizes self-weight loads from Civil NX.
Load.SW.sync()
Examples
# Simple self-weight in Z direction
for i in range(2):
Node(i*10,0,0)
Node.create()
Element.Beam(1,2)
Element.create()
#Load Case
Load_Case("D","SW Load")
Load_Case.create()
Load.SW("SW Load","Z",-1)
Load.SW.create()