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
Iterations
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
ogs
OpenGeoSys Tools
OGSTools
Commits
33f74ea0
Commit
33f74ea0
authored
3 months ago
by
Julian Heinze
Browse files
Options
Downloads
Patches
Plain Diff
tiny fixes
parent
5348fd9c
No related branches found
No related tags found
1 merge request
!240
feflowlib: rename boundary conditions to subdomains
Pipeline
#27340
passed with warnings
3 months ago
Stage: .pre
Stage: test
Stage: maintenance
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/examples/howto_conversions/plot_B_feflowlib_BC_mesh.py
+1
-1
1 addition, 1 deletion
docs/examples/howto_conversions/plot_B_feflowlib_BC_mesh.py
docs/examples/howto_conversions/plot_F_feflowlib_HT_simulation.py
+1
-0
1 addition, 0 deletions
...mples/howto_conversions/plot_F_feflowlib_HT_simulation.py
with
2 additions
and
1 deletion
docs/examples/howto_conversions/plot_B_feflowlib_BC_mesh.py
+
1
−
1
View file @
33f74ea0
...
@@ -48,7 +48,7 @@ ogs_sim_res = ms.mesh(ms.timesteps[-1])
...
@@ -48,7 +48,7 @@ ogs_sim_res = ms.mesh(ms.timesteps[-1])
ot
.
plot
.
contourf
(
ogs_sim_res
,
ot
.
variables
.
temperature
)
ot
.
plot
.
contourf
(
ogs_sim_res
,
ot
.
variables
.
temperature
)
# %%
# %%
# 6. The boundary meshes are manipulated to alter the model.
# 6. The boundary meshes are manipulated to alter the model.
# The original boundary conditions are shown in this example: :ref:`sphx_glr_auto_examples_howto_conversions_plot_F_HT_simulation.py`
# The original boundary conditions are shown in this example: :ref:`sphx_glr_auto_examples_howto_conversions_plot_F_
feflowlib_
HT_simulation.py`
# 6.1 The Dirichlet boundary conditions for the hydraulic head are set to 0. Therefore, no water flows from the left to the right edge.
# 6.1 The Dirichlet boundary conditions for the hydraulic head are set to 0. Therefore, no water flows from the left to the right edge.
bc_flow
=
feflow_model
.
subdomains
[
"
P_BC_FLOW
"
][
"
P_BC_FLOW
"
]
bc_flow
=
feflow_model
.
subdomains
[
"
P_BC_FLOW
"
][
"
P_BC_FLOW
"
]
feflow_model
.
subdomains
[
"
P_BC_FLOW
"
][
"
P_BC_FLOW
"
][
bc_flow
==
10
]
=
0
feflow_model
.
subdomains
[
"
P_BC_FLOW
"
][
"
P_BC_FLOW
"
][
bc_flow
==
10
]
=
0
...
...
This diff is collapsed.
Click to expand it.
docs/examples/howto_conversions/plot_F_feflowlib_HT_simulation.py
+
1
−
0
View file @
33f74ea0
...
@@ -75,6 +75,7 @@ hydraulic_head_diff = ot.variables.Scalar(
...
@@ -75,6 +75,7 @@ hydraulic_head_diff = ot.variables.Scalar(
data_name
=
"
HEAD_difference
"
,
data_unit
=
"
m
"
,
output_unit
=
"
m
"
data_name
=
"
HEAD_difference
"
,
data_unit
=
"
m
"
,
output_unit
=
"
m
"
)
)
ot
.
plot
.
contourf
(
diff_mesh
,
hydraulic_head_diff
,
vmin
=-
1.5e-9
,
vmax
=
1.5e-9
)
ot
.
plot
.
contourf
(
diff_mesh
,
hydraulic_head_diff
,
vmin
=-
1.5e-9
,
vmax
=
1.5e-9
)
# %%
# Plot differences in temperature.
# Plot differences in temperature.
feflow_model
.
mesh
[
"
temperature
"
]
=
feflow_model
.
mesh
[
"
P_TEMP
"
]
feflow_model
.
mesh
[
"
temperature
"
]
=
feflow_model
.
mesh
[
"
P_TEMP
"
]
# Plot differences in temperature.
# Plot differences in temperature.
...
...
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