Analysis

Analysis class holds the analysis properties, such as the geometry, the material distribution, the boundary conditions and the computational mesh if it is defined.

It can be accessed from the main driver GeoStudioFile with the method getAnalysisByName() or getAnalysisByID():

geofile.showAnalysisTree()
analysis1 = geofile.getAnalysisByID(1)

This will return an instance of the Analysis class which the user can access the properties described below.

class PyGeoStudio.Analysis(prop=None)
Parameters:
  • ID (int) – Index of the analysis in GeoStudio file

  • Name (str) – Name of the analysis in GeoStudio file

  • Kind (str) – Type of analysis (SEEP or SLOPE)

  • Description (str) – More information about the analysis

  • ParentID (int) – Index of the parent analysis in GeoStudio file

  • Method (str) –

  • GeometryId (str) – Index of the Geometry of the analysis in GeoStudio file. Handle automatically by PyGeoStudio. Do not change until you know what you are doing.

  • Geometry (Geometry object) – Geometry of the analysis. Use the method setGeometry() below to change this property.

  • Context (Context object) – Boundary condition and material distribution coupler. Use the method setContext() below to change this property.

  • ExcludeInitDeformation (bool) –

  • Results (Results object) – Interface to analysis results

  • TimeIncrements (TimeIncrements object) – Timestepping control

  • ComputedPhysics (dict) –

  • PhysicsOptions (dict) –

setContext(context)

Set a new material distribution and boundary conditions to the analysis

Parameters:

geom (Context object) – The new material distribution and boundary condition of the analysis

setGeometry(geom)

Set a new geometry to the analysis

Parameters:

geom (Geometry object) – The new geometry of the analysis

showProblem()

Plot the conceptual problem defined in the analysis (with material distribution)