ConstIM Command
- Hazard.ConstIM(Tag, DefType, IM=0)
Using this command a defined Intensity Measure (IM) will be consider as the simulated IM in all Simulations.
Argument
Type
Description
Tag
int
Unique integer value that will be used for referring to the defined elements or objects.
DefType
str
Specifies the type of the earthquake magnitude. Currently it has no effect on the program process and the input is only as a string.
IM
float
Value of Intensity Measure (IM) that will be consider as the simulated IM in all simulations.
Note
If user used this command without assigning any value to IM, then 0 will be consider for it!
Example:
The following demonstrates the use of the ConstIM command.
Python Code
import opensrane as opr #Create Hazard Object with Tag=1 and a constant IM equal to 0.99 is considered for it. opr.Hazard.ConstIM(1,'PGA',IM=0.99)
Code Developed by: Bijan Sayyafzadeh