Skip to content

Commit

Permalink
Use groups
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Dec 28, 2024
1 parent e38c77b commit 8ba2a2a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions docs/Example/Geotechnical/slope-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,33 @@ material PlaneStrain 2 1
For more information on how to compute the parameters, please check [this](../../Library/Material/Material3D/DruckerPrager/NonlinearDruckerPrager.md) page.
In this problem, the Drucker-Prager yield surface circumscribes the Mohr-Coulomb yield surface.

## Loading
## BCs and Loading

The horizontal displacement of left and bottom boundaries is constrained.
The vertical displacement of the bottom boundary is constrained.
To apply those constraints, we selects two boundaries by generating node groups.

```text
# left vertical boundary
generatebyrule nodegroup 2 1 1. 0.
# bottom horizontal boundary
generatebyrule nodegroup 3 2 1. 0.
grouppenaltybc 1 1 2 3
grouppenaltybc 2 2 3
```

The loading applied was of gravity type, where the load factor is increased from `0` to `1`.
We use [`bodyforce`](../../Collection/Define/load.md#body-force) to apply this load.

```text
load bodyforce 1 0 -20 2 <list of all elements>
# all elements
generate elementgroup 1 1 2880
load groupbodyforce 1 0 -20 2 1
```

In this case, the force applied is equal to the specific weight of the soil applied in the negative y-direction.
In this case, the force applied is equal to the specific weight of the soil applied in the negative y-direction.
We also generate an element group that contains all elements.

## Result

Expand Down
Binary file modified docs/Example/Geotechnical/slope-analysis.zip
Binary file not shown.

0 comments on commit 8ba2a2a

Please sign in to comment.