-
Notifications
You must be signed in to change notification settings - Fork 1
Graphical User Interface
The example below uses the mechanical (M) workflow and follows the same slope-stability setup used in examples/M/example_m_slope_stability.m.
- Open MATLAB in the repository root.
- Open
gui/mainApp.mlappand click Run.
The GUI process begins with the model creation, where the user selects the type of physics to be modeled.
After defining the desired physics, the user is prompted to generate or import the mesh.
The mesh step offers two routes:
- Rectangular domain with structured mesh
- Import
For this slope-stability tutorial, choose Import and then click Import mesh.
|
|
We offer an auxiliary process to generate a structured mesh by setting the domain's dimensions and number of subdivisions, which is useful for simple rectangular problems.
|
|
After generating or importing the mesh, the physics window appears, providing a clear step-by-step interface for applying the necessary simulation settings. Each tab corresponds to a task that must be completed in sequence, reflecting the standard workflow followed when writing code manually.
Once the mesh and physics are defined, the user proceeds to set the boundary conditions for the model. The GUI provides an easy way to apply prescribed displacements (Dirichlet boundary conditions) and loads (Neumann boundary conditions). Users can specify the location and type of boundary conditions and apply them directly to the model. For the slope-stability example, apply the supports in this order:
- Set
Ux = 0andUy = 0, chooseborder, selectbottom, and click Apply. - Keep
Ux = 0, leaveUyunchecked, selectleft, and click Apply. - Repeat the same
Ux = 0condition for therightborder. - In the Neumann BCs tab, turn Body forces to
Yesto include gravity.
This reproduces the standard setup of a fixed base with horizontal restraint on the two vertical boundaries.
First, fix both Ux and Uy along the bottom border.
|
Next, fix only Ux on the left border.
|
Repeat the same horizontal restraint on the right border. |
In the Neumann BCs tab, turn Body forces to Yes to include gravity.
|
Additionally, the material properties can be modified in the same window, where users can select a material model (e.g., Linear Elastic) and set the property values.
Open the Porous media tab and select Drucker-Prager as the material model. Then edit the table values and click Update material.
The values shown in the screenshots are:
Young modulus = 20000 kPaPoisson ratio = 0.4900Density = 2 g/cm3Cohesion = 50 kPaFriction angle = 20 degreeDilation angle = 20 degree
Move to the Analysis tab and switch the analysis type to Quasi-static. Then choose the solution method and update the parameters before running.
The example shown here uses:
Method = Cylindrical Arc LengthInitial increment = 0.1Maximum increment = 0.5Maximum load ratio = 10Maximum number of steps = 70Maximum number of iterations = 20Target number of iterations = 9
Click Update analysis first, then click Run. The text area on the right is useful for checking convergence while the computation is running.
After the analysis finishes, open the Post-Process tab. From there, you can:
- Select a field such as
Ux,Uy,S1,E1, orPEMAG. - Adjust the colorbar limits.
- Plot a profile if you want values along a segment.
- Click Export model to save the MATLAB model object.
The screenshot below shows the PEMAG field with manual colorbar limits from 0 to 1.