# Loads Python code in CivilFEM allows creating load groups and boundary conditions, as well as spectral analysis and acceleration loads. - **Load Groups**: the first step is to create a Load Group, then you can add point loads, point moments, linear loads, surface loads or temperature. For example to create a point load and a point moment, proceed as follows: ```{code-block} LG = createLoadGroup("Load Group") # Entity, Name, Structural element, Point, Direction, Load addPointLoad([LG],"Punct","SE",(0,0,0),[1,0,0],Double(50,"Newton")) # Entity, Name, Structural element, Point, Direction, Load addPointMoment([LG],"Moment","SE",(0,0,0),[1,0,0],Double(50,"NxM")) ``` Harmonic loads can be also created with the same command, only by writing one more argument: ```{code-block} createLoadGroup("loads","HarmonicLoads") createLoadGroup("loads","PrestressingLoads") ``` - **Acceleration Load**: To create an acceleration load is needed Name, Acceleration on X direction, Acceleration on Y direction, Acceleration on Z direction. ```{code-block} createAccLoadGroup("Acceleration Load",5,0,0) ``` - **Spectral Analysis**: spectral analysis can be created by two standards, Eurocode 8 EN 1998-1:2004 and the NCSE 2002. Having each one its own command and arguments: ```{code-block} createSpectrumEC8("Name","Design2","A", 10, 1, 1, 0.2) createSpectrumNCSE02("Name","Normal","Elastic", 10, 1, 1) ``` - **Boundary Conditions Group**: the first step is creating a Boundary Conditions Group, then you can add point, linear, surface or displacement boundary conditions. For example to create a linear boundary condition, proceed as follows: ```{code-block} BC = createBCGroup("Boundary conditions group") #Entity, Name, Structural Element, Constrain X,Y,Z movement, Constrain X,Y,Z Rotation addCurveBC([BC],"BC Curve","SE",True,True,False,False,False,True) ``` - **Load Case**: Loads and Boundary conditions have to be added to a Load Case once the Load Case is created as follows: ```{code-block} BC = createBCGroup("Boundary conditions group") #Entity, Name, Structural Element, Constrain X,Y,Z movement, Constrain X,Y,Z Rotation addCurveBC([BC],"BC Curve","SE",True,True,False,False,False,True) ```