diff --git a/examples/01_basic_model.ipynb b/examples/01_basic_model.ipynb index 8ea46219..f67a9e49 100644 --- a/examples/01_basic_model.ipynb +++ b/examples/01_basic_model.ipynb @@ -276,8 +276,8 @@ "\n", "\n", "# add constant head cells at model boundaries\n", - "chd = nlmod.mfpackages.chd_at_model_edge_from_model_ds(\n", - " model_ds, gwf, head='starting_head')" + "model_ds.update(nlmod.mfpackages.constant_head.get_chd_at_model_edge(model_ds, model_ds['idomain'])) \n", + "chd = nlmod.mfpackages.chd_from_model_ds(model_ds, gwf, head='starting_head')" ] }, { @@ -694,7 +694,7 @@ "Attributes: (12/24)\n", " model_name: IJmuiden\n", " mfversion: mf6\n", - " model_dataset_created_on: 20211202_17:29:52\n", + " model_dataset_created_on: 20211203_12:31:15\n", " exe_name: c:\\users\\oebbe\\02_python\\nlmod\\nlmod\\mdims\\..\\...\n", " model_ws: model1\n", " figdir: model1\\figure\n", @@ -704,7 +704,7 @@ " anisotropy: 10\n", " fill_value_kh: 1.0\n", " fill_value_kv: 0.1\n", - " surface_drn_cond: 1000
array(['2015-01-01T00:00:00.000000000'], dtype='datetime64[ns]')
array([ 95050., 95150., 95250., 95350., 95450., 95550., 95650., 95750.,\n", + " surface_drn_cond: 1000
array(['2015-01-01T00:00:00.000000000'], dtype='datetime64[ns]')
array([ 95050., 95150., 95250., 95350., 95450., 95550., 95650., 95750.,\n", " 95850., 95950., 96050., 96150., 96250., 96350., 96450., 96550.,\n", " 96650., 96750., 96850., 96950., 97050., 97150., 97250., 97350.,\n", " 97450., 97550., 97650., 97750., 97850., 97950., 98050., 98150.,\n", @@ -716,19 +716,19 @@ " 102250., 102350., 102450., 102550., 102650., 102750., 102850., 102950.,\n", " 103050., 103150., 103250., 103350., 103450., 103550., 103650., 103750.,\n", " 103850., 103950., 104050., 104150., 104250., 104350., 104450., 104550.,\n", - " 104650., 104750., 104850., 104950.])
array([499950., 499850., 499750., 499650., 499550., 499450., 499350., 499250.,\n", + " 104650., 104750., 104850., 104950.])
array([499950., 499850., 499750., 499650., 499550., 499450., 499350., 499250.,\n", " 499150., 499050., 498950., 498850., 498750., 498650., 498550., 498450.,\n", " 498350., 498250., 498150., 498050., 497950., 497850., 497750., 497650.,\n", " 497550., 497450., 497350., 497250., 497150., 497050., 496950., 496850.,\n", " 496750., 496650., 496550., 496450., 496350., 496250., 496150., 496050.,\n", " 495950., 495850., 495750., 495650., 495550., 495450., 495350., 495250.,\n", " 495150., 495050., 494950., 494850., 494750., 494650., 494550., 494450.,\n", - " 494350., 494250., 494150., 494050.])
array(['AAOP', 'NASC', 'ONAWA', 'NAZA', 'NAWA', 'NAWO', 'NAWOVE', 'NIBA',\n", + " 494350., 494250., 494150., 494050.])
array(['AAOP', 'NASC', 'ONAWA', 'NAZA', 'NAWA', 'NAWO', 'NAWOVE', 'NIBA',\n", " 'BXWISIKO', 'BX', 'KRBXDE', 'BXz4', 'KRz3', 'EEz1', 'EEk1', 'EEz2',\n", " 'EEk2', 'EEz3', 'DRz1', 'DRUIk1', 'DRz2', 'DRGIk1', 'DRz3', 'URz2',\n", " 'URz3', 'URz4', 'URk3', 'URz5', 'STz1', 'STk1', 'STz2', 'APz1',\n", " 'PZWAz1', 'WAk1', 'PZWAz2', 'WAk2', 'PZWAz3', 'PZc', 'PZWAz4', 'MSz1'],\n", - " dtype=object)
array([0])
array([[[ 1, 1, 1, ..., 1, 1, 1],\n", + " dtype=object)
array([0])
array([[[ 1, 1, 1, ..., 1, 1, 1],\n", " [ 1, 1, 1, ..., 1, 1, 1],\n", " [ 1, 1, 1, ..., 1, 1, 1],\n", " ...,\n", @@ -768,13 +768,13 @@ " ...,\n", " [-1, -1, -1, ..., 1, 1, 1],\n", " [-1, -1, -1, ..., 1, 1, 1],\n", - " [-1, -1, -1, ..., 1, 1, 1]]])
array([[0, 0, 0, ..., 0, 0, 0],\n", + " [-1, -1, -1, ..., 1, 1, 1]]])
array([[0, 0, 0, ..., 0, 0, 0],\n", " [0, 0, 0, ..., 0, 0, 0],\n", " [0, 0, 0, ..., 0, 0, 0],\n", " ...,\n", " [0, 0, 0, ..., 0, 0, 0],\n", " [0, 0, 0, ..., 0, 0, 0],\n", - " [0, 0, 0, ..., 0, 0, 0]])
array([[[ -13.07 , -13.07 , -13.07 , ...,\n", + " [0, 0, 0, ..., 0, 0, 0]])
array([[[ -13.07 , -13.07 , -13.07 , ...,\n", " 3. , 3. , 3. ],\n", " [ -13.07 , -13.07 , -13.07 , ...,\n", " 2.5 , 2.5 , 2.5 ],\n", @@ -814,7 +814,7 @@ " [ -10.91 , -10.91 , -10.91 , ...,\n", " -218.27000427, -218.55000305, -218.8500061 ],\n", " [-200.77000427, -200.77000427, -200.77000427, ...,\n", - " -217.88999939, -218.19999695, -218.47000122]]])
array([[0. , 0. , 0. , ..., 3.5 , 3.5 ,\n", + " -217.88999939, -218.19999695, -218.47000122]]])
array([[0. , 0. , 0. , ..., 3.5 , 3.5 ,\n", " 3.5 ],\n", " [0. , 0. , 0. , ..., 3. , 3. ,\n", " 3.36999989],\n", @@ -826,7 +826,7 @@ " [0. , 0. , 0. , ..., 1.5 , 0.88999999,\n", " 0. ],\n", " [0. , 0. , 0. , ..., 1.49000001, 0.5 ,\n", - " 0.37 ]])
array([[[1.00000000e+01, 1.00000000e+01, 1.00000000e+01, ...,\n", + " 0.37 ]])
array([[[1.00000000e+01, 1.00000000e+01, 1.00000000e+01, ...,\n", " 5.00000000e+00, 5.00000000e+00, 5.00000000e+00],\n", " [1.00000000e+01, 1.00000000e+01, 1.00000000e+01, ...,\n", " 5.00000000e+00, 5.00000000e+00, 5.00000000e+00],\n", @@ -866,7 +866,7 @@ " [1.00000000e+00, 1.00000000e+00, 1.00000000e+00, ...,\n", " 6.09999990e+00, 6.09999990e+00, 6.09999990e+00],\n", " [6.11999989e+00, 6.11999989e+00, 6.11999989e+00, ...,\n", - " 6.09999990e+00, 6.11000013e+00, 6.11000013e+00]]])
array([[[1.00000000e+01, 1.00000000e+01, 1.00000000e+01, ...,\n", + " 6.09999990e+00, 6.11000013e+00, 6.11000013e+00]]])
array([[[1.00000000e+01, 1.00000000e+01, 1.00000000e+01, ...,\n", " 1.25000000e+00, 1.25000000e+00, 1.25000000e+00],\n", " [1.00000000e+01, 1.00000000e+01, 1.00000000e+01, ...,\n", " 1.25000000e+00, 1.25000000e+00, 1.25000000e+00],\n", @@ -906,19 +906,19 @@ " [1.00000000e-01, 1.00000000e-01, 1.00000000e-01, ...,\n", " 6.09999990e-01, 6.09999990e-01, 6.09999990e-01],\n", " [6.11999989e-01, 6.11999989e-01, 6.11999989e-01, ...,\n", - " 6.09999990e-01, 6.11000013e-01, 6.11000013e-01]]])
array([[1., 1., 1., ..., 0., 0., 0.],\n", + " 6.09999990e-01, 6.11000013e-01, 6.11000013e-01]]])
array([[1., 1., 1., ..., 0., 0., 0.],\n", " [1., 1., 1., ..., 0., 0., 0.],\n", " [1., 1., 1., ..., 0., 0., 0.],\n", " ...,\n", " [1., 1., 1., ..., 0., 0., 0.],\n", " [1., 1., 1., ..., 0., 0., 0.],\n", - " [1., 1., 1., ..., 0., 0., 0.]])
array([[-13.07, -13.07, -13.07, ..., nan, nan, nan],\n", + " [1., 1., 1., ..., 0., 0., 0.]])
array([[-13.07, -13.07, -13.07, ..., nan, nan, nan],\n", " [-13.07, -13.07, -13.07, ..., nan, nan, nan],\n", " [-13.07, -13.07, -13.07, ..., nan, nan, nan],\n", " ...,\n", " [-10.9 , -10.9 , -10.9 , ..., nan, nan, nan],\n", " [-10.91, -10.91, -10.91, ..., nan, nan, nan],\n", - " [-10.95, -10.91, -10.91, ..., nan, nan, nan]])
array([[[13.07 , 13.07 , 13.07 , ..., 0.5 ,\n", + " [-10.95, -10.91, -10.91, ..., nan, nan, nan]])
array([[[13.07 , 13.07 , 13.07 , ..., 0.5 ,\n", " 0.5 , 0.5 ],\n", " [13.07 , 13.07 , 13.07 , ..., 0.5 ,\n", " 0.5 , 0.86999989],\n", @@ -958,7 +958,7 @@ " [ 0. , 0. , 0. , ..., 0. ,\n", " 0. , 0. ],\n", " [ 0. , 0. , 0. , ..., 0. ,\n", - " 0. , 0. ]]])
array([[[1., 1., 1., ..., 1., 1., 1.],\n", + " 0. , 0. ]]])
array([[[1., 1., 1., ..., 1., 1., 1.],\n", " [1., 1., 1., ..., 1., 1., 1.],\n", " [1., 1., 1., ..., 1., 1., 1.],\n", " ...,\n", @@ -998,31 +998,31 @@ " ...,\n", " [1., 1., 1., ..., 1., 1., 1.],\n", " [1., 1., 1., ..., 1., 1., 1.],\n", - " [1., 1., 1., ..., 1., 1., 1.]]])
array([[10000., 10000., 10000., ..., 0., 0., 0.],\n", + " [1., 1., 1., ..., 1., 1., 1.]]])
array([[10000., 10000., 10000., ..., 0., 0., 0.],\n", " [10000., 10000., 10000., ..., 0., 0., 0.],\n", " [10000., 10000., 10000., ..., 0., 0., 0.],\n", " ...,\n", " [10000., 10000., 10000., ..., 0., 0., 0.],\n", " [10000., 10000., 10000., ..., 0., 0., 0.],\n", - " [10000., 10000., 10000., ..., 0., 0., 0.]])
array([[1000., 1000., 1000., ..., 0., 0., 0.],\n", + " [10000., 10000., 10000., ..., 0., 0., 0.]])
array([[1000., 1000., 1000., ..., 0., 0., 0.],\n", " [1000., 1000., 1000., ..., 0., 0., 0.],\n", " [1000., 1000., 1000., ..., 0., 0., 0.],\n", " ...,\n", " [1000., 1000., 1000., ..., 0., 0., 0.],\n", " [1000., 1000., 1000., ..., 0., 0., 0.],\n", - " [1000., 1000., 1000., ..., 0., 0., 0.]])
array([[0., 0., 0., ..., 0., 0., 0.],\n", + " [1000., 1000., 1000., ..., 0., 0., 0.]])
array([[0., 0., 0., ..., 0., 0., 0.],\n", " [0., 0., 0., ..., 0., 0., 0.],\n", " [0., 0., 0., ..., 0., 0., 0.],\n", " ...,\n", " [0., 0., 0., ..., 0., 0., 0.],\n", " [0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.]])
array([[ nan, nan, nan, ..., 3.407 , 3.172 , nan],\n", + " [0., 0., 0., ..., 0., 0., 0.]])
array([[ nan, nan, nan, ..., 3.407 , 3.172 , nan],\n", " [ nan, nan, nan, ..., nan, nan, 2.99225],\n", " [ nan, nan, nan, ..., nan, 2.68275, nan],\n", " ...,\n", " [ nan, nan, nan, ..., 2.74175, 1.03975, nan],\n", " [ nan, nan, nan, ..., nan, 0.81975, 0.058 ],\n", - " [ nan, nan, nan, ..., nan, nan, 0.23775]])
array([[[1, 1, 1, ..., 1, 1, 1],\n", + " [ nan, nan, nan, ..., nan, nan, 0.23775]])
array([[[1, 1, 1, ..., 1, 1, 1],\n", " [1, 0, 0, ..., 0, 0, 1],\n", " [1, 0, 0, ..., 0, 0, 1],\n", " ...,\n", @@ -1062,13 +1062,13 @@ " ...,\n", " [0, 0, 0, ..., 0, 0, 1],\n", " [0, 0, 0, ..., 0, 0, 1],\n", - " [0, 0, 0, ..., 1, 1, 1]]])
array([[-7.50e-05, -7.50e-05, -7.50e-05, ..., -7.50e-05, -7.50e-05, -7.50e-05],\n", + " [0, 0, 0, ..., 1, 1, 1]]])
array([[-7.50e-05, -7.50e-05, -7.50e-05, ..., -7.50e-05, -7.50e-05, -7.50e-05],\n", " [-7.50e-05, -7.50e-05, -7.50e-05, ..., -7.50e-05, -7.50e-05, -7.50e-05],\n", " [-7.50e-05, -7.50e-05, -7.50e-05, ..., -7.50e-05, -7.50e-05, -7.50e-05],\n", " ...,\n", " [ 1.00e-04, 1.00e-04, 1.00e-04, ..., 8.75e-04, 8.75e-04, 8.75e-04],\n", " [ 1.00e-04, 1.00e-04, 1.00e-04, ..., 8.75e-04, 8.75e-04, 8.75e-04],\n", - " [ 1.00e-04, 1.00e-04, 1.00e-04, ..., 8.75e-04, 8.75e-04, 8.75e-04]])