Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 22, 2019
1 parent 632c2e7 commit 232b64f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/02_pump_test_het_3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
cov_model = Gaussian(dim=3, var=2, len_scale=10, anis=[1, 0.2])
srf = SRF(model=cov_model, mean=-9, seed=1000)
# ogs base class
model = OGS(task_root="test_het_3D", task_id="model", output_dir="out")
model = OGS(task_root="test_het_3D3", task_id="model", output_dir="out")
# generate a radial 3D mesh and conductivity field
model.msh.generate(
"radial", dim=3, angles=64, rad=np.arange(101), z_arr=-np.arange(11)
)
cond = np.exp(srf.mesh(model.msh))
model.mpd.add() # add distributed medium properties
model.mpd.add(name="conductivity")
model.mpd.add_block( # edit recent mpd file
MSH_TYPE="GROUNDWATER_FLOW",
MMP_TYPE="PERMEABILITY",
Expand All @@ -36,7 +36,7 @@
DIS_TYPE=["CONSTANT_NEUMANN", 1.0e-3],
)
model.mmp.add_block( # permeability, storage and porosity
GEOMETRY_DIMENSION=3, PERMEABILITY_DISTRIBUTION=model.mpd.name
GEOMETRY_DIMENSION=3, PERMEABILITY_DISTRIBUTION=model.mpd.file_name
)
model.num.add_block( # numerical solver
PCS_TYPE="GROUNDWATER_FLOW",
Expand Down

0 comments on commit 232b64f

Please sign in to comment.