Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogstools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Max Bittens
ogstools
Commits
09330cb0
Commit
09330cb0
authored
1 year ago
by
Florian Zill
Browse files
Options
Downloads
Patches
Plain Diff
[meshplotlib] update on mechanics example
parent
4d403ed7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/examples/howto_meshplotlib/plot_solid_mechanics.py
+22
-1
22 additions, 1 deletion
docs/examples/howto_meshplotlib/plot_solid_mechanics.py
with
22 additions
and
1 deletion
docs/examples/howto_meshplotlib/plot_solid_mechanics.py
+
22
−
1
View file @
09330cb0
...
...
@@ -23,7 +23,7 @@ stress analysis:
from
ogstools.meshplotlib
import
examples
,
plot
,
setup
from
ogstools.meshplotlib.plot_features
import
plot_streamlines
from
ogstools.propertylib
import
presets
from
ogstools.propertylib
import
mesh_dependent
,
presets
setup
.
reset
()
setup
.
length
.
output_unit
=
"
km
"
...
...
@@ -92,6 +92,27 @@ fig = plot(mesh, presets.stress.octahedral_shear)
# fall under this category make use of
# :py:mod:`ogstools.propertylib.mesh_dependent`.
# %% [markdown]
# The hypothetical water column used in the integrity criteria would at first
# use existing "pressure" data in the mesh, else it is automatically
# calculated as the following:
# %%
mesh
[
"
pressure
"
]
=
mesh_dependent
.
p_fluid
(
mesh
)
fig
=
plot
(
mesh
,
presets
.
pressure
)
# %% [markdown]
# But since this assumes that the top of the model is equal to the ground
# surface, the resulting pressure is underestimated. In this case we have to
# correct the depth manually. Then the pressure is calculated correctly:
# %%
del
mesh
.
point_data
[
"
pressure
"
]
mesh
[
"
depth
"
]
=
mesh_dependent
.
depth
(
mesh
)
+
450
# in m
fig
=
plot
(
mesh
,
"
depth
"
)
mesh
[
"
pressure
"
]
=
mesh_dependent
.
p_fluid
(
mesh
)
fig
=
plot
(
mesh
,
presets
.
pressure
)
# %% [markdown]
# Dilantancy criterion
# --------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment