Skip to content

Commit

Permalink
Updates: ogs 6.5.3, ogstools 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Sep 9, 2024
1 parent 2f20354 commit 65b03ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions SimpleMechanics/SimpleMechanics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
}
],
"source": [
"from ogs6py import ogs\n",
"import ogstools as ogs\n",
"\n",
"prj_name = \"SimpleMechanics\"\n",
"model = ogs.OGS(PROJECT_FILE=(out_dir / f\"{prj_name}.prj\"))\n",
"model = ogs.Project(PROJECT_FILE=(out_dir / f\"{prj_name}.prj\"))\n",
"model.geometry.add_geometry(filename=\"./square_1x1.gml\")\n",
"model.mesh.add_mesh(filename=\"./square_1x1_quad_1e2.vtu\")\n",
"model.processes.set_process(\n",
Expand Down Expand Up @@ -300,13 +300,13 @@
"source": [
"mesh_series = MeshSeries(f\"{out_dir}/{prj_name}.pvd\")\n",
"points = np.asarray([[0.3, 0.5, 0.0], [0.24, 0.21, 0.0]])\n",
"disp = ot.properties.displacement\n",
"disp = ot.variables.displacement\n",
"\n",
"labels = [\n",
" f\"{i}: {label}\" for i, label in enumerate(ot.plot.utils.justified_labels(points))\n",
"]\n",
"fig = mesh_series.plot_probe(\n",
" points=points[:4], mesh_property=disp, time_unit=\"a\", labels=labels[:4]\n",
" points=points[:4], variable=disp, time_unit=\"a\", labels=labels[:4]\n",
")"
]
},
Expand Down
5 changes: 3 additions & 2 deletions requirements-no-deps.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
git+https://gitlab.opengeosys.org/ogs/tools/ogstools@b4f3780274c464260ff43a248fac7379e49c8975#egg=ogstools
git+https://github.com/bilke/ogs6py@66410a2acc6db77f33c78949e0601670895b0af6#egg=ogs6py
ogstools==0.4.0
# git+https://gitlab.opengeosys.org/ogs/tools/ogstools@b4f3780274c464260ff43a248fac7379e49c8975#egg=ogstools
# git+https://github.com/bilke/ogs6py@66410a2acc6db77f33c78949e0601670895b0af6#egg=ogs6py
VTUinterface>=0.704
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ pandas<2.2
scipy<1.13
lxml
# ogs
--extra-index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple
ogs
# --extra-index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple
ogs==6.5.3
git+https://github.com/joergbuchwald/heatsource_thm@bbd5bab17fc2ec228c773e087dc847e1ad5f9a4c#egg=heatsource-py
# ogstools:
h5py>=3.8.0
Expand Down

0 comments on commit 65b03ca

Please sign in to comment.