Once the element cross section has been defined, additional mechanical properties must be associated (aggregated) to it. Elastic torsion needs to be added to the column under consideration, using an elastic uniaxial material:
set IDcolTors 10; # ID tag for column section in torsion
set IDcolSec 1; # ID tag for column section
uniaxialMaterial Elastic $IDcolTors $GJ; # Define torsional stiffness
section Aggregator $IDcolSec $IDcolTors T -section $IDcolFlex; # attach torsion to flexure and create a new section IDtag
The geometric transformation is used to relate the local element, and section, coordinates to the global system coordinates (simple here for a 2-D problem):
set IDcolTrans 1; # ID tag for column transformation, defining element normal
geomTransf Linear $IDcolTrans; # Linear: no second-order effects
The element, a nonlinearBeamColulmn element, and its connectivity, are defined as follows:
set np 5; # Number of integration points
element nonlinearBeamColumn 1 1 2 $np $IDcolSec $IDcolTrans