HYRCAN
User guide
×
Menu
Index
Setter/Getter
 
Get Minimum Global FOS:
This function allows the extraction of values of global minimum factor of safety for the specified analysis method. If analysis method is not active -1.0 value will be returned.
 
Syntax:
value = getminfos(<keyword>)
 
keyword here is the name of the analysis method. This could be a fullname like: "Bishop Simplified","Janbu Simplified", "Spencer","GLE/Morgenstern-Price" or command name (short) like: "BishopSim","JanbuSim","Spencer","GLE/M-P"
 
Example:
For instance the following commands return the minimum fos for Spencer and GLE methods:
fos = getminfos("Spencer")
fos = getminfos("GLE/Morgenstern-Price")
 
Get Failure Surface List:
This functions allows the extraction of list of the failure surface. All these functions are part of scripting language and can not be found in the GUI.
 
Syntax:
value = getsurf("list",<keywords>)
 
List of Keywords for Failure Getter Function:
Output Value Type
Keyword
Input Value Type
Description
Array of Integer Numbers
"all"
-
This function returns the list of all the failure surface ID numbers available in the model. ID number is integer.
Array of Integer Numbers
"valid"
-
This function returns the list of all the valid failure surface ID numbers available in the model. ID number is integer.
 
Example:
For instance the following command returns array of failure surface IDs:
var idlist = getsurf("list","all")
for (i = 0; i < idlist.length; i++) {
    sid = idlist[i];
    // use sid here and do your thing.
}
 
Get Failure Surface Information:
This functions allows the extraction of failure surface information (i.e. fos, center and radius). All these functions are part of scripting language and can not be found in the GUI.
 
Syntax:
value = getsurf(<keywords>)
 
List of Keywords for Failure Surface Getter Function:
Output Value Type
Keyword
Input Value Type
Description
Single Float Number
"fos",sid,methodname
Surf. ID (sid), Analysis Method Name
This function returns the fos for the specified analysis method for current failure surface ID (sid). ID number is integer number and methodname here is the name of the analysis method. This could be a fullname like: "Bishop Simplified","Janbu Simplified", "Spencer","GLE/Morgenstern-Price" or command name (short) like: "BishopSim","JanbuSim","Spencer","GLE/M-P".
Array of Float Number [center_x,center_y]
"center",sid
Surf. ID (sid)
This function returns the center for the failure surface with ID = sid. ID number is integer number.
Single Float Number
"radius",sid
Surf. ID (sid)
This function returns the radius for the failure surface with ID = sid. ID number is integer number.
 
Example:
For instance the following command return the FOS of failure surface with ID = 11 for "Bishop Simplified method" as well as surface center and radius:
var fos = getsurf("fos",11,"BishopSim")
var center = getsurf("center",11)
var center_x = center[0]
var center_x = center[1]
var radius = getsurf("radius",11)
The help manual was created with Dr.Explain