-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure CI commit ref c67d0341f466f257a63e54a06f0c85af28291ca0
- Loading branch information
1 parent
4857e7c
commit 8bf2b58
Showing
4,552 changed files
with
256,645 additions
and
53,809 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/0015c1ae22b32f1ae042ea8b512bb728/discretize-TensorMesh-edges-1_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...05789fc4d07d603b5f8ac849b9d13b3/discretize-TensorMesh-stencil_cell_gradient_z-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...5009dc1fb7/discretize-base-BaseRectangularMesh-average_node_to_cell-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...e8d2afd4a5bbe6b217d60537/discretize-operators-DiffOperators-face_x_divergence-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ebfced6fee4/discretize-CurvilinearMesh-get_edge_inner_product_deriv-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...nloads/00c18696815b23b36c4786d751a8586f/discretize-base-BaseMesh-edges-1_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...7302800446136e7f6e8a82203/discretize-base-BaseTensorMesh-average_edge_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-3.83 KB
(98%)
...653a41d5f035/discretize-CurvilinearMesh-average_face_to_cell_vector-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...69cda7e03fd34af/discretize-CurvilinearMesh-get_interpolation_matrix-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.49 KB
(98%)
...d7341283b3661b4cf49b31a1/discretize-CurvilinearMesh-face_divergence-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...018ad03a47e6fc4ac8975d06d643b583/discretize-base-BaseRegularMesh-edges-1_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...367098dfc42c1287921d4a9/discretize-TensorMesh-stencil_cell_gradient-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...4de2b1a2d3510c48a/discretize-CylindricalMesh-average_face_x_to_cell-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...ain/_downloads/02757b99cbbb215d32dcf0a1323025fa/discretize-CylindricalMesh-edges-1_01.pdf
Binary file not shown.
Binary file modified
BIN
-23 Bytes
(100%)
...wnloads/02b9103cdbe6a2f68cbad753f94aa68e/discretize-CylindricalMesh-plot_grid-1_05_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...c5cb36b222b650187964dfb865297/discretize-operators-DiffOperators-faces-1_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...cf0473045a00cf34ea97a4/discretize-TensorMesh-get_face_inner_product-1_02_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...ce1b1cd5d1947d382226d8df/discretize-TensorMesh-average_cell_to_face-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...c199c33b043/discretize-operators-DiffOperators-average_cell_to_edge-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...nloads/03f29178dc14685c4db2c2707feccb82/discretize-TensorMesh-n_edges_per_direction-1.pdf
Binary file not shown.
Binary file added
BIN
+12.9 KB
...246f94b9356bf87/discretize-base-BaseTensorMesh-get_edge_inner_product_surface-1_00_00.pdf
Binary file not shown.
Binary file removed
BIN
-145 KB
...loads/044983c5b53d4fdf772805e649922960/discretize-base-BaseMesh-edge_curl-1.png
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ain/_downloads/0452b2a406cf6b502e4a71047cf53780/discretize-TreeMesh-plot_grid-1_02_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...cc8e6b707f392dfb5c7792/discretize-CurvilinearMesh-face_x_divergence-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.71 KB
...8d7d68523a6f1c5792cf8/discretize-base-BaseMesh-get_edge_inner_product_surface-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...5817ce789a293d/discretize-base-BaseRegularMesh-average_node_to_cell-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...3248740b8a8/discretize-base-BaseTensorMesh-get_interpolation_matrix-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.71 KB
(90%)
.../_downloads/0506c19b6a230e4689887f46ad5718d5/discretize-TensorMesh-plot_slice-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d4e17fd13ce682a337481072ef/discretize-CylindricalMesh-stencil_cell_gradient_y-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...51fdb23c9494cd12b34fff11571/discretize-CurvilinearMesh-get_face_inner_product-1_02_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...f365f3e86695/discretize-CylindricalMesh-average_face_to_cell_vector-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
...s/058e116a1fb270a9275c72215e13c12b/discretize-SimplexMesh-plot_grid-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...edc55a0052ae482b94d72/discretize-operators-DiffOperators-average_node_to_face-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0a0e78364dd9c7/discretize-base-BaseRegularMesh-average_face_to_cell-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...s/05eed4fdbce6888496b23beb44addabc/discretize-CylindricalMesh-n_edges_per_direction-1.pdf
Binary file not shown.
Binary file modified
BIN
-8.39 KB
(56%)
...54dc08ec74bc195eef45db281fb/discretize-CylindricalMesh-get_face_inner_product-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...4f8ce5191570e4758d419/discretize-TensorMesh-stencil_cell_gradient_z-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.71 KB
(90%)
...in/_downloads/0644374311de9256e7735bf0ae9d18da/discretize-TreeMesh-plot_slice-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/0661819a9bdd86937f5d8fe736393c4a/mesh_generation_python.zip
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...644f34557be890ba701df/discretize-operators-DiffOperators-average_node_to_face-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-4.49 KB
(98%)
...fbf4/discretize-operators-InnerProducts-average_edge_to_cell_vector-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...4373ccc86ec41e8236582104/discretize-base-BaseRegularMesh-average_edge_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e112f8251087dbba/discretize-SimplexMesh-average_cell_vector_to_face-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.05 KB
(95%)
...63ac6ddea0a189e8c/discretize-base-BaseRegularMesh-average_edge_to_cell_vector-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...f9cb26dbb9c/discretize-operators-InnerProducts-average_edge_to_face-1_01_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...1dc707be12d39684a3629/discretize-operators-DiffOperators-average_edge_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...6d953d8b8/discretize-operators-InnerProducts-get_edge_inner_product-1_00_00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.49 KB
(98%)
...9fec2bf805adfed4936ae41dc4a77/discretize-SimplexMesh-nodal_gradient-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...4bcc20ebc4188bf2cc1028031ed4/discretize-base-BaseRectangularMesh-faces-1_01.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...89eac5806520cf625/discretize-CylindricalMesh-average_edge_y_to_cell-1_00_00.png
Oops, something went wrong.
Binary file added
BIN
+11.4 KB
...3b17f103cd32d6cea0926/discretize-base-BaseMesh-get_face_inner_product_surface-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+9.71 KB
...ddd29b05b8/discretize-base-BaseRectangularMesh-get_edge_inner_product_surface-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-11 Bytes
(100%)
...ads/0943fdbabefb0e8b86d9f5337b49f831/discretize-mixins-InterfaceMPL-plot_grid-1_03_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...s/0971963813b0ff7e343cbf7d0769ec19/discretize-TensorMesh-average_node_to_face-1_00_00.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...780110d2ff0/discretize-operators-InnerProducts-average_face_to_cell-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...54bf662a9e6788dba72b6a07/discretize-CurvilinearMesh-n_faces_per_direction-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ac2545f87452929b6/discretize-base-BaseRegularMesh-average_cell_vector_to_face-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
..._downloads/09dc5b9dadafa966c80bdfb71d87872c/discretize-SimplexMesh-plot_slice-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-5.33 KB
(94%)
...21ab89faaed0be1f2190e321/discretize-base-BaseMesh-average_cell_vector_to_face-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...loads/0a26efac70734497ff0718c3bfef300b/discretize-SimplexMesh-face_divergence-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-1.44 KB
(89%)
...a3b4e789967ac481067e9f266ce55fc/discretize-SimplexMesh-get_edge_inner_product-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...a84742284824d77454a32601575ebcd/discretize-SimplexMesh-get_face_inner_product-1_02_00.pdf
Binary file not shown.
Binary file modified
BIN
-3.37 KB
(99%)
...e1d/discretize-base-BaseRectangularMesh-average_cell_vector_to_face-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...0b375eee5269a48b7d8f4226ff6edb38/discretize-TensorMesh-average_edge_y_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...55ab0a144e7/discretize-operators-InnerProducts-average_cell_to_face-1_01_00.png
Oops, something went wrong.
Binary file added
BIN
+9.06 KB
...a5f0ba2d88a77/discretize-base-BaseRectangularMesh-get_edge_inner_product_line-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../0b650939a9377c9813121b420d68c2b2/discretize-TreeMesh-cell_gradient-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ds/0b667df0ccaade5076191cfbecfe57dd/discretize-TreeMesh-stencil_cell_gradient-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ownloads/0b6f529cc9b21a7e614ddd1b0016e9bb/discretize-TreeMesh-cell_gradient_x-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0875e9ef5cc3184532cad013/discretize-TensorMesh-average_edge_to_face-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...d2ea3000d7062c946c7ae19/discretize-SimplexMesh-average_edge_to_face-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ads/0bbd16292f6fab1ddb82dc858b233bbd/discretize-TreeMesh-plot_slice-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...6cff26f57f9b66/discretize-base-BaseMesh-average_edge_to_cell_vector-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
-5.05 KB
(95%)
...4420f6371728ed/discretize-operators-InnerProducts-average_edge_to_cell_vector-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-2.67 KB
(93%)
...wnloads/0c37e2f05e82815e018ebc817ddb1013/discretize-TensorMesh-nodal_gradient-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...96e1e87a17/discretize-base-BaseRectangularMesh-average_node_to_edge-1_01_00.png
Oops, something went wrong.
Binary file removed
BIN
-45.9 KB
...b84acf9b2452baf7cf44e7c4/discretize-operators-DiffOperators-face_z_divergence-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+12.9 KB
...05fb520d4998062c91b/discretize-CylindricalMesh-get_edge_inner_product_surface-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...7217ace62b1/discretize-operators-InnerProducts-average_face_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ce11b80a45/discretize-base-BaseRectangularMesh-average_edge_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ds/0c7c1154616644375a9b2112d58f22b5/discretize-CurvilinearMesh-nodal_gradient-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-2.62 KB
(94%)
...ads/0c9e15a59949497fa284eb0ae2375162/discretize-base-BaseMesh-face_divergence-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-8 Bytes
(100%)
...wnloads/0cbf4555bbb6796dc9d9165917a9e8e8/discretize-CylindricalMesh-plot_grid-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ef2a55ce9354632c0143517944c/discretize-CurvilinearMesh-average_face_y_to_cell-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...506c3ce3582db92680d2b9/discretize-TensorMesh-average_edge_z_to_cell-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...0d1899a27515f0b7c0e08836592b40eb/discretize-TensorMesh-average_face_z_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
..._downloads/0d3a41ec77c992d6c6aebcafc7a81d7b/discretize-TreeMesh-refine_bounding_box-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...b083ee57ca7d235eef6c/discretize-base-BaseTensorMesh-n_edges_per_direction-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...0d958e3368b0cf10e876f8b0fa6ebc02/discretize-CurvilinearMesh-face_y_divergence-1_00_00.pdf
Binary file not shown.
Binary file removed
BIN
-145 KB
...d980232d1e8947eefa623ff2ba9dbde/discretize-base-BaseRegularMesh-edge_curl-1.png
Diff not rendered.
Binary file modified
BIN
+0 Bytes
(100%)
...ads/0daa9d54180fbd9ededf1a2c40cc3f19/discretize-base-BaseMesh-face_divergence-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...3be16bcfc750905f69737503/discretize-base-BaseRegularMesh-average_node_to_edge-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ecfe5d75c5fe424cb0c665ff/discretize-TensorMesh-average_node_to_edge-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...02c7f847b07622/discretize-base-BaseTensorMesh-stencil_cell_gradient-1_01_00.png
Oops, something went wrong.
Binary file removed
BIN
-45.9 KB
...oads/0ee1bb1d4effe2b4e23874d50ae20c81/discretize-TensorMesh-face_z_divergence-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+9.06 KB
...247f7d16317679/discretize-operators-DiffOperators-get_edge_inner_product_line-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...b6611649/discretize-base-BaseRectangularMesh-get_edge_inner_product-1_01_00.png
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
.../0f4f6bc512b2d2fb7caddc3dccb63c79/discretize-SimplexMesh-get_edge_inner_product_line-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Here we provide an example of edge inner product line matrix. | ||
# For simplicity, we will work on a 2 x 2 x 2 tensor mesh. | ||
# As seen below, we begin by constructing and imaging the basic | ||
# edge inner product line matrix. | ||
# | ||
from discretize import TensorMesh | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
# | ||
h = np.ones(2) | ||
mesh = TensorMesh([h, h, h]) | ||
Me = mesh.get_edge_inner_product_line() | ||
# | ||
fig = plt.figure(figsize=(6, 6)) | ||
ax = fig.add_subplot(111) | ||
ax.imshow(Me.todense()) | ||
ax.set_title('Basic Edge Inner Product Line Matrix', fontsize=18) | ||
plt.show() | ||
# | ||
# Next, we consider the case where the physical properties | ||
# are defined by diagnostic properties on mesh edges. For the isotropic case, | ||
# we show the physical property tensor for a single cell. | ||
# | ||
# Define the diagnostic property values for x, y and z faces. | ||
# | ||
tau_x, tau_y, tau_z = 3, 2, 1 | ||
# | ||
# Here construct and image the edge inner product line matrix for the isotropic case. | ||
# Spy plots are used to demonstrate the sparsity of the matrix. | ||
# | ||
tau = np.r_[ | ||
tau_x * np.ones(mesh.n_edges_x), | ||
tau_y * np.ones(mesh.n_edges_y), | ||
tau_z * np.ones(mesh.n_edges_z) | ||
] | ||
M = mesh.get_edge_inner_product_line(tau) | ||
# | ||
# Then plot the sparse representation, | ||
# | ||
fig = plt.figure(figsize=(4, 4)) | ||
ax1 = fig.add_subplot(111) | ||
ax1.imshow(M.todense()) | ||
ax1.set_title("M (isotropic)", fontsize=16) | ||
plt.show() |
Binary file modified
BIN
-2.49 KB
(98%)
...0e1d4e0f57a21e202/discretize-operators-DiffOperators-nodal_gradient-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...8f5a31b7416ca4b409d4340b/discretize-CylindricalMesh-n_faces_per_direction-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
..._downloads/0fe7075fa688d176cf666418a1872b9c/discretize-TreeMesh-cell_gradient-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/0ff1c1b36727c777e33f5ab515e70c5f/discretize-CurvilinearMesh-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...5fd/discretize-operators-DiffOperators-get_face_inner_product_deriv-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ads/1003a74608b143580f924f5b9df3f43b/discretize-TreeMesh-plot_image-1_00_00.png
Oops, something went wrong.
Binary file removed
BIN
-145 KB
...81444245f40c3dd91787b7b4f6f6/discretize-operators-DiffOperators-edge_curl-1.png
Diff not rendered.
Binary file modified
BIN
+0 Bytes
(100%)
...3fb6c60022a7e964/discretize-operators-DiffOperators-cell_gradient_y-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...6e4372a83e5a2df3ee94fd3b/discretize-CurvilinearMesh-cell_gradient_y-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...9bd70ac29b8f4e11047e9/discretize-operators-InnerProducts-average_node_to_face-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-4.49 KB
(98%)
...94a20a5606d7/discretize-CylindricalMesh-average_edge_to_cell_vector-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...cb6c8eaad459e21a9/discretize-CylindricalMesh-average_face_y_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ds/10996385318d76f63bca0b853bc53c1b/discretize-CurvilinearMesh-faces_y-1_01.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...nloads/109e9e8f203128600edde926958068a6/discretize-CurvilinearMesh-plot_slice-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0c895deb66ca7a72381f539aa23cde0/discretize-TreeMesh-cell_gradient_x-1_01_00.png
Oops, something went wrong.
Binary file added
BIN
+14.3 KB
...42e9/discretize-operators-DiffOperators-get_edge_inner_product_line-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
-2.49 KB
(98%)
...5bdd8bbb1a24ea5352b/discretize-base-BaseRegularMesh-face_divergence-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/110c46518a011aecf449f3c8121b9371/discretize-CurvilinearMesh-cell_gradient_x-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...a9dba68/discretize-operators-InnerProducts-get_interpolation_matrix-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...71d8a4b9cfc64d075da5be6f5d/discretize-TensorMesh-get_face_inner_product_deriv-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+11.5 KB
...6d83003f071aca4fe2ed7d00/discretize-base-BaseMesh-get_edge_inner_product_line-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e41765bbbc6499cabc01a31a19/discretize-utils-inverse_property_tensor-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/117814b8144b1a23b24ec8c6f5558873/discretize-TensorMesh-average_node_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...1961e990f717a98aa30cae861485b5c/discretize-base-BaseMesh-average_edge_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-5.33 KB
(94%)
...fe6f3af6a5431acff6acfb95b1f/discretize-TensorMesh-average_cell_vector_to_face-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...7d0a06e4f4fbadbd347267/discretize-CurvilinearMesh-average_edge_to_cell_vector-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...f690941a75517dedcfb/discretize-CylindricalMesh-average_face_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...db8b5d553a8/discretize-CurvilinearMesh-get_face_inner_product_deriv-1_00_00.png
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
...8682d30fa54c346cb0/discretize-operators-InnerProducts-get_edge_inner_product_surface-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Here we provide an example of edge inner product surface matrix. | ||
# For simplicity, we will work on a 2 x 2 x 2 tensor mesh. | ||
# As seen below, we begin by constructing and imaging the basic | ||
# edge inner product surface matrix. | ||
# | ||
from discretize import TensorMesh | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
import matplotlib as mpl | ||
# | ||
h = np.ones(2) | ||
mesh = TensorMesh([h, h, h]) | ||
Me = mesh.get_edge_inner_product_surface() | ||
# | ||
fig = plt.figure(figsize=(6, 6)) | ||
ax = fig.add_subplot(111) | ||
ax.imshow(Me.todense()) | ||
ax.set_title('Basic Edge Inner Product Surface Matrix', fontsize=18) | ||
plt.show() | ||
# | ||
# Next, we consider the case where the physical properties | ||
# are defined by diagnostic properties on mesh faces. For the isotropic case, | ||
# we show the physical property tensor for a single cell. | ||
# | ||
# Define the diagnostic property values for x, y and z faces. | ||
# | ||
tau_x, tau_y, tau_z = 3, 2, 1 | ||
# | ||
# Here construct and image the edge inner product surface matrix for the isotropic case. | ||
# Spy plots are used to demonstrate the sparsity of the inner product surface matrices. | ||
# | ||
tau = np.r_[ | ||
tau_x * np.ones(mesh.n_faces_x), | ||
tau_y * np.ones(mesh.n_faces_y), | ||
tau_z * np.ones(mesh.n_faces_z) | ||
] | ||
M = mesh.get_edge_inner_product_surface(tau) | ||
# | ||
# Then plot the sparse representation, | ||
# | ||
fig = plt.figure(figsize=(4, 4)) | ||
ax1 = fig.add_subplot(111) | ||
ax1.imshow(M.todense()) | ||
ax1.set_title("M (isotropic)", fontsize=16) | ||
plt.show() |
Binary file modified
BIN
+0 Bytes
(100%)
...f4ffb3d9dfd26cdc/discretize-base-BaseRegularMesh-get_edge_inner_product_deriv-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ef24deaa8aae1dc9461d1c5/discretize-base-BaseMesh-get_face_inner_product_deriv-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e57c77bb82188/discretize-base-BaseMesh-get_face_inner_product_deriv-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/1324fa3d2a93f89d7e4cd0da5aeb7f72/discretize-CurvilinearMesh-cell_gradient_y-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-8.39 KB
(56%)
...34ce43d9d1b06e8211d43cb61a6e82d/discretize-SimplexMesh-get_face_inner_product-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...118/discretize-operators-InnerProducts-get_edge_inner_product_deriv-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
-11 Bytes
(100%)
.../_downloads/139af9c15c8edc568bc167cd870e7cfb/discretize-SimplexMesh-plot_grid-1_03_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...wnloads/13cb2728c8b816acdd156fc8acde5aff/discretize-TensorMesh-nodal_gradient-1_01_00.pdf
Binary file not shown.
Binary file added
BIN
+9.71 KB
...403953c6777/discretize-operators-DiffOperators-get_edge_inner_product_surface-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...9f3e5b78c34d794ef3ecc1255f564/discretize-operators-DiffOperators-edges-1_01.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...940558d3d9e5fde315040e490a/discretize-operators-DiffOperators-cell_gradient_y-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-2.49 KB
(98%)
...f99fff78d3ae7daa3acf7097f4c/discretize-base-BaseMesh-nodal_gradient-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...nloads/14211851bb4aa5b9c79c12d27127bf0b/discretize-CylindricalMesh-plot_image-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...4304125c49f1fadd867f976ac9b42e3/discretize-TreeMesh-cell_gradient_x-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/14354dc35c819cfce4c442664a88de77/discretize-TreeMesh-refine-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0b6ff6507a92cbaa818e9/discretize-base-BaseMesh-average_node_to_cell-1_01_00.png
Oops, something went wrong.
Binary file removed
BIN
-18.5 KB
en/main/_downloads/1455a9153a84ab7a5253f662623df217/discretize-TensorMesh-edge_curl-1.pdf
Binary file not shown.
Binary file modified
BIN
-1.44 KB
(89%)
...s/145807230bf44da2ac9f438f31c4885f/discretize-TreeMesh-get_edge_inner_product-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...8f35f7b00f4e4c6b0e12/discretize-base-BaseRegularMesh-nodal_gradient-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...3f9ea679a88282dcdcf14445/discretize-TreeMesh-get_face_inner_product-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/155a9fd1c175993115b36f7da6020fbc/discretize-TreeMesh-refine_box-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...2ed24b1861c84f0a1d889b7e5b9c9/discretize-CylindricalMesh-plot_slice-1_02_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...a186cc2983fb43d9b66f4/discretize-operators-InnerProducts-average_face_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-2.37 KB
(98%)
.../15ba07d4e9e0d23a276b13bede1fb616/discretize-TreeMesh-cell_gradient-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...15d991ae554a79103bae052ce2413488/discretize-TensorMesh-average_face_y_to_cell-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-1.59 KB
(88%)
...f80d581a1d178f5fc7e/discretize-operators-DiffOperators-get_face_inner_product-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...nloads/1616b1756a242bdb1f8101016626f2bf/discretize-TensorMesh-cell_gradient_y-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...9164d44a46fb1ee11d569ae1612c0/discretize-SimplexMesh-closest_points_index-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...88dfec6978/discretize-base-BaseRectangularMesh-average_node_to_cell-1_01_00.png
Oops, something went wrong.
Binary file removed
BIN
-18.5 KB
...downloads/16e8ebd5241ce86724a44b00fd6f7c5b/discretize-base-BaseTensorMesh-edge_curl-1.pdf
Binary file not shown.
Binary file removed
BIN
-83.5 KB
...0350f4b6a0e60b15c51ed3/discretize-CurvilinearMesh-face_z_divergence-1_01_00.png
Diff not rendered.
Binary file modified
BIN
+0 Bytes
(100%)
...957695e3fdac48dc041bfa91/discretize-TensorMesh-average_node_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
-2.67 KB
(93%)
...nloads/170e36407321645c9a912ebaa741b59b/discretize-SimplexMesh-nodal_gradient-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/1738b50aa178e7b4230879ecd5b02d54/pde_python.zip
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e55350eefd8025d443c69475639f/discretize-TreeMesh-get_face_inner_product_deriv-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...dce4d241cf7596fae6fd5/discretize-operators-DiffOperators-average_node_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...874f62b95383ac143bab7/discretize-base-BaseMesh-average_node_to_face-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...c3375c5ac92014f2c6c69/discretize-base-BaseTensorMesh-nodal_gradient-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...81169b13b1140fe7c3adb2480bebbb1/discretize-base-BaseMesh-average_node_to_cell-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+12.9 KB
...e9ed97d1c3ad7192a2a1242c/discretize-TensorMesh-get_edge_inner_product_surface-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...4910b9ba1b6f56be9fc/discretize-base-BaseRectangularMesh-stencil_cell_gradient-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+8.48 KB
...2b7066e37/discretize-CylindricalMesh-get_face_inner_product_surface-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ds/18b7299b33f66cbe4c2f2780565c1b3c/discretize-CurvilinearMesh-edges_x-1_00.png
Oops, something went wrong.
Binary file removed
BIN
-18.5 KB
en/main/_downloads/18c5e493bbeef6648625f074ac4b23c1/discretize-base-BaseMesh-edge_curl-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...a6daf59630c91ea88f713441c/discretize-mixins-InterfaceMPL-plot_slice-1_02_00.png
Oops, something went wrong.
Binary file modified
BIN
-5.05 KB
(95%)
...2c68cf98ced8ede96e65f6/discretize-CylindricalMesh-average_edge_to_cell_vector-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-5.2 KB
(95%)
...d9e5ceba195ca728edc43d105a/discretize-SimplexMesh-average_face_to_cell_vector-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...4652a61d586d1bbab332551f3/discretize-base-BaseTensorMesh-average_edge_to_face-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-2.49 KB
(98%)
...9bff1711489e348cde8adac151a3d/discretize-TensorMesh-face_divergence-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
-5.33 KB
(94%)
...e32ef6fce9f5fff8e86190/discretize-CylindricalMesh-average_cell_vector_to_face-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...9f89bb191e2fb5d14ce9185a37ab9e6/discretize-SimplexMesh-get_edge_inner_product-1_02_00.pdf
Binary file not shown.
Binary file modified
BIN
-8.39 KB
(56%)
...55a305d7f77261d30b1/discretize-operators-DiffOperators-get_face_inner_product-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...a3019aceeb2c61fc46dd2/discretize-base-BaseMesh-average_cell_to_edge-1_00_00.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...9004207b9b266bb45e13751f/discretize-CylindricalMesh-n_edges_per_direction-1.png
Oops, something went wrong.
Binary file modified
BIN
-2.71 KB
(90%)
..._downloads/1b770ff6436a3da7663ac23daeeea057/discretize-SimplexMesh-plot_slice-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...cde02bce4d0f33e62/discretize-CurvilinearMesh-get_edge_inner_product-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
-5.2 KB
(95%)
...bc43727b1fea2c28b4c92eee/discretize-base-BaseMesh-average_face_to_cell_vector-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+9.71 KB
...477ac1041beebff/discretize-base-BaseTensorMesh-get_edge_inner_product_surface-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...91e3b1405913ae432810d68c/discretize-base-BaseRegularMesh-average_cell_to_edge-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...5f7fa6b81e5f2303/discretize-CylindricalMesh-stencil_cell_gradient_z-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...nloads/1c0cd3882ad29150af17ee5ca55940d5/discretize-TreeMesh-face_y_divergence-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...9ea92ace2cc4cfb8800ce45397712/discretize-TensorMesh-cell_gradient_z-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...0a83f40b2/discretize-operators-InnerProducts-get_edge_inner_product-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...99475e6fbfe8db38/discretize-base-BaseRectangularMesh-get_interpolation_matrix-1_01_00.pdf
Binary file not shown.
Binary file added
BIN
+8.61 KB
...070d5894e/discretize-CylindricalMesh-get_edge_inner_product_surface-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ads/1c72a735e32b0ea7efe92e369b29c78d/discretize-CylindricalMesh-cell_gradient-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...56340e137632f296d6ead8f7d64b5/discretize-operators-DiffOperators-faces-1_01.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
..._downloads/1d1ffb2f4cf20c6c657b987482c95b41/discretize-base-BaseTensorMesh-faces-1_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...c557a2e2d1e4f9883d80f/discretize-CurvilinearMesh-get_face_inner_product_deriv-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e8375a4351869fa4c62c1798319f1/discretize-operators-InnerProducts-edges-1_01.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...9c0f3409cad57a94e98dac/discretize-CurvilinearMesh-average_face_to_cell_vector-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../_downloads/1e3ce924288f28f0d0037d9c1bdf056d/discretize-SimplexMesh-plot_grid-1_02_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d46c5ff35becd4e0458b/discretize-base-BaseRectangularMesh-average_cell_to_edge-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...8df036d19fac18014a0/discretize-CurvilinearMesh-average_node_to_edge-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...07ed91608056ce2/discretize-base-BaseTensorMesh-average_cell_to_edge-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...b5507cd3441647aa5042104c/discretize-base-BaseRegularMesh-average_cell_to_face-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...25b899e277687066ac68871ca143d/discretize-CurvilinearMesh-plot_image-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...a91a12eb1f9922bedaa33194a716d/discretize-CurvilinearMesh-plot_slice-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...75773c9cf64f388cc6d5f/discretize-base-BaseMesh-average_edge_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...a869770961a4bb60b586c382c9/discretize-SimplexMesh-average_face_to_cell_vector-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...28e686ab11d345b/discretize-SimplexMesh-get_edge_inner_product_deriv-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...8f6d175f4bebdc66/discretize-operators-DiffOperators-face_divergence-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
-2.62 KB
(94%)
...s/1f527792a847d80eab1b1dad31d19792/discretize-CurvilinearMesh-face_divergence-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+97 Bytes
(100%)
...nloads/1fc615586e611c7b2281561cb67cb99a/discretize-tests-check_derivative-1.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/205a870278621baa51f41961060bd59b/discretize-utils-volume_average-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...78515f2/discretize-operators-InnerProducts-get_interpolation_matrix-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...7324ff082c2887a/discretize-base-BaseTensorMesh-average_node_to_edge-1_01_00.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...wnloads/214676e1a57fbe7dbd63628d32137ab4/discretize-utils-refine_tree_xyz-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/215be22fd63366b26530c24e153ef08d/discretize-TensorMesh-plot_slice-1_02_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...8dbde08c8c19d9af4684a052fbc/discretize-base-BaseMesh-get_interpolation_matrix-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...28d9fae7f30d4903c5/discretize-operators-DiffOperators-stencil_cell_gradient_y-1_01_00.pdf
Binary file not shown.
Binary file removed
BIN
-21.7 KB
...3456460f02e943/discretize-operators-DiffOperators-face_z_divergence-1_00_00.png
Diff not rendered.
Binary file modified
BIN
-4.49 KB
(98%)
...b51/discretize-base-BaseRectangularMesh-average_edge_to_cell_vector-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...887d91f9aa8ad0c36d39adc799a/discretize-base-BaseMesh-closest_points_index-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...65632fd6b2ee8c5b643bd3c73c1f8/discretize-TreeMesh-face_x_divergence-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...f03/discretize-operators-DiffOperators-get_edge_inner_product_deriv-1_01_00.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...ownloads/2321d2bbfdf3302ddb9de1d36f86bb78/discretize-TreeMesh-refine_line-1.png
Oops, something went wrong.
Binary file removed
BIN
-45.9 KB
...2329144d44b00441a8edc744002cce6f/discretize-CylindricalMesh-face_z_divergence-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...58883e9fba3a57862f24/discretize-base-BaseRectangularMesh-average_face_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...oads/2384ab2e84229d4fca9bd4eb2a2504fb/discretize-CylindricalMesh-faces-1_01.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ownloads/24182895bb3b54ba90ba17e91ef8a9da/discretize-SimplexMesh-edges-1_01.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...5de6/discretize-operators-InnerProducts-average_edge_to_cell_vector-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...65084c06ed4/discretize-operators-InnerProducts-average_cell_to_edge-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...f5deb4ea51b0642b128/discretize-CylindricalMesh-average_node_to_cell-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...d3980f7454/discretize-operators-InnerProducts-stencil_cell_gradient-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...2c2bb666/discretize-base-BaseRectangularMesh-get_face_inner_product-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
-5.13 KB
(95%)
...445ae49a7608d1064601c5f7ec71c/discretize-CurvilinearMesh-average_edge_to_face-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ads/24d243034ab7eb0dddd89c555da3ba9a/discretize-TreeMesh-plot_image-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ain/_downloads/24eda4e92aa8534eb056e842f668658c/discretize-CylindricalMesh-faces-1_01.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...bda37a89894658621f4/discretize-CurvilinearMesh-average_face_to_cell-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...66db0fcad7a/discretize-operators-DiffOperators-average_edge_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...eb59fd46b1f6d4c0764ccda/discretize-base-BaseMesh-get_edge_inner_product_deriv-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e16275496faab07d7ac8ffef/discretize-TensorMesh-average_cell_to_edge-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...oads/25ec07adeb8f850748fc7a9203350d55/discretize-CylindricalMesh-faces-1_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...06724e1cadf40/discretize-operators-InnerProducts-get_edge_inner_product_deriv-1_01_00.pdf
Binary file not shown.
Binary file added
BIN
+15.5 KB
...597a6/discretize-base-BaseTensorMesh-get_face_inner_product_surface-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...7e3460376fd5594974f18cb0a4/discretize-SimplexMesh-average_cell_vector_to_face-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...n/_downloads/27519d53355e296e8d6b40419fedc78f/discretize-utils-closest_points_index-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...60e43938b46ce37ad9fe65/discretize-TensorMesh-average_face_z_to_cell-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...05e5f10885665bfb100e7c523ea5b/discretize-TensorMesh-n_edges_per_direction-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
..._downloads/27919a583c7a5f017ca91c873f43fc03/discretize-base-BaseTensorMesh-faces-1_01.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...s/27a7da4d1b4ae730754da06bd228f485/discretize-TensorMesh-average_cell_to_edge-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...27bd2910402a5be53dd43c937af83085/discretize-TreeMesh-closest_points_index-1.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...7db8386ed30f922850f651c265/discretize-mixins-InterfaceMPL-plot_grid-1_02_00.png
Oops, something went wrong.
Binary file added
BIN
+9.71 KB
...bc4984c24591e21e9d667e88d5/discretize-TreeMesh-get_edge_inner_product_surface-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-2.2 KB
(97%)
...s/289f22bb8ca9a92d8a89526c1d898ac2/discretize-TensorMesh-plot_slice-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...bd128cec4ee3bea49928689f2fe8fe/discretize-CylindricalMesh-plot_grid-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...83960882cfead217aa7a8fd6/discretize-CylindricalMesh-cell_gradient_x-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/28c5b2b1410edccc82765e12515b16c7/discretize-SimplexMesh-1.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...6ea9517750857e87db7b6f95f/discretize-SimplexMesh-get_edge_inner_product_deriv-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...f99d65289f2b34/discretize-base-BaseRegularMesh-average_node_to_cell-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...4094221ebfaebb18132e29b5813/discretize-CurvilinearMesh-average_edge_y_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0044d69f7b5381c869bc7cc06a0/discretize-CurvilinearMesh-average_face_x_to_cell-1_00_00.pdf
Binary file not shown.
44 changes: 44 additions & 0 deletions
44
...s/29990ec6f12eb652d454d413c372f2c1/discretize-TensorMesh-get_edge_inner_product_line-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Here we provide an example of edge inner product line matrix. | ||
# For simplicity, we will work on a 2 x 2 x 2 tensor mesh. | ||
# As seen below, we begin by constructing and imaging the basic | ||
# edge inner product line matrix. | ||
# | ||
from discretize import TensorMesh | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
# | ||
h = np.ones(2) | ||
mesh = TensorMesh([h, h, h]) | ||
Me = mesh.get_edge_inner_product_line() | ||
# | ||
fig = plt.figure(figsize=(6, 6)) | ||
ax = fig.add_subplot(111) | ||
ax.imshow(Me.todense()) | ||
ax.set_title('Basic Edge Inner Product Line Matrix', fontsize=18) | ||
plt.show() | ||
# | ||
# Next, we consider the case where the physical properties | ||
# are defined by diagnostic properties on mesh edges. For the isotropic case, | ||
# we show the physical property tensor for a single cell. | ||
# | ||
# Define the diagnostic property values for x, y and z faces. | ||
# | ||
tau_x, tau_y, tau_z = 3, 2, 1 | ||
# | ||
# Here construct and image the edge inner product line matrix for the isotropic case. | ||
# Spy plots are used to demonstrate the sparsity of the matrix. | ||
# | ||
tau = np.r_[ | ||
tau_x * np.ones(mesh.n_edges_x), | ||
tau_y * np.ones(mesh.n_edges_y), | ||
tau_z * np.ones(mesh.n_edges_z) | ||
] | ||
M = mesh.get_edge_inner_product_line(tau) | ||
# | ||
# Then plot the sparse representation, | ||
# | ||
fig = plt.figure(figsize=(4, 4)) | ||
ax1 = fig.add_subplot(111) | ||
ax1.imshow(M.todense()) | ||
ax1.set_title("M (isotropic)", fontsize=16) | ||
plt.show() |
Binary file modified
BIN
+0 Bytes
(100%)
...nloads/29aa21f6439c738858eed6f859ee2e1e/discretize-CylindricalMesh-plot_slice-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0bcbd6eb948/discretize-operators-DiffOperators-average_node_to_cell-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...s/2a1d38f8c87ae132f9ec3ad78f8ba7df/discretize-CurvilinearMesh-cell_gradient_z-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0ebd2e4c7/discretize-operators-DiffOperators-average_edge_x_to_cell-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...539a19c0abeca3987d606/discretize-TensorMesh-stencil_cell_gradient_x-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ede4f0e4ee7c6c67d/discretize-base-BaseTensorMesh-get_edge_inner_product_deriv-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...78352b0e469dd5/discretize-base-BaseMesh-average_cell_vector_to_face-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...a9ae74eff28d17ea892c2c215/discretize-CurvilinearMesh-get_interpolation_matrix-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...54ad88f0afc6e867fc5468e97e903/discretize-CylindricalMesh-average_node_to_face-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+9.06 KB
...5068d515faab21fd75ef86a4/discretize-base-BaseMesh-get_edge_inner_product_line-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-2.62 KB
(94%)
...1855a2426d341773fa8540bc09/discretize-operators-InnerProducts-face_divergence-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d6302c772fe76d/discretize-base-BaseRegularMesh-average_cell_to_edge-1_00_00.png
Oops, something went wrong.
Binary file added
BIN
+11.5 KB
...f0d9cb25fca9898adbff32ffedeb7/discretize-TreeMesh-get_edge_inner_product_line-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e4f6b93db2b1eb019ac/discretize-CylindricalMesh-average_cell_to_face-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ds/2c1405b8d22af0ea01544eb7d2187831/discretize-mixins-InterfaceMPL-plot_image-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
-3.22 KB
(99%)
...e4fa9ae4dec3f829869d9/discretize-base-BaseMesh-average_edge_to_face-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...35215a8b91a432d8b65f65339b5/discretize-CylindricalMesh-average_edge_y_to_cell-1_01_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...dcd065404/discretize-operators-InnerProducts-get_face_inner_product-1_02_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...3458001a5aef59b1e151a5d614/discretize-operators-DiffOperators-cell_gradient_z-1_00_00.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...69fc7ec14b3bc1/discretize-base-BaseRegularMesh-average_node_to_edge-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...6b2917ef6f3718c050bd8d1/discretize-base-BaseRegularMesh-stencil_cell_gradient-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...690fac62e1a97879f23d9bb733f/discretize-CurvilinearMesh-average_face_z_to_cell-1_00_00.pdf
Binary file not shown.
Binary file added
BIN
+8.38 KB
...0dd63a4d49e1/discretize-CylindricalMesh-get_edge_inner_product_line-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...170d84d3661f6435e98c1b32f54b9/discretize-CylindricalMesh-average_node_to_cell-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
-4.49 KB
(98%)
...a21a997c7eaeb0b13/discretize-TensorMesh-average_edge_to_cell_vector-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
-1.44 KB
(89%)
...bd47b1db21a7763fe2/discretize-base-BaseRectangularMesh-get_edge_inner_product-1_00_00.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...f00813536fd0d2/discretize-base-BaseRegularMesh-average_node_to_face-1_00_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...619dd44e2580e12ed39bb826c3896/discretize-TensorMesh-cell_gradient_y-1_01_00.png
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
...ads/2df370105257f1a2b7aadf9b1e1c62b9/discretize-TreeMesh-get_edge_inner_product_line-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Here we provide an example of edge inner product line matrix. | ||
# For simplicity, we will work on a 2 x 2 x 2 tensor mesh. | ||
# As seen below, we begin by constructing and imaging the basic | ||
# edge inner product line matrix. | ||
# | ||
from discretize import TensorMesh | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
# | ||
h = np.ones(2) | ||
mesh = TensorMesh([h, h, h]) | ||
Me = mesh.get_edge_inner_product_line() | ||
# | ||
fig = plt.figure(figsize=(6, 6)) | ||
ax = fig.add_subplot(111) | ||
ax.imshow(Me.todense()) | ||
ax.set_title('Basic Edge Inner Product Line Matrix', fontsize=18) | ||
plt.show() | ||
# | ||
# Next, we consider the case where the physical properties | ||
# are defined by diagnostic properties on mesh edges. For the isotropic case, | ||
# we show the physical property tensor for a single cell. | ||
# | ||
# Define the diagnostic property values for x, y and z faces. | ||
# | ||
tau_x, tau_y, tau_z = 3, 2, 1 | ||
# | ||
# Here construct and image the edge inner product line matrix for the isotropic case. | ||
# Spy plots are used to demonstrate the sparsity of the matrix. | ||
# | ||
tau = np.r_[ | ||
tau_x * np.ones(mesh.n_edges_x), | ||
tau_y * np.ones(mesh.n_edges_y), | ||
tau_z * np.ones(mesh.n_edges_z) | ||
] | ||
M = mesh.get_edge_inner_product_line(tau) | ||
# | ||
# Then plot the sparse representation, | ||
# | ||
fig = plt.figure(figsize=(4, 4)) | ||
ax1 = fig.add_subplot(111) | ||
ax1.imshow(M.todense()) | ||
ax1.set_title("M (isotropic)", fontsize=16) | ||
plt.show() |
Binary file modified
BIN
+0 Bytes
(100%)
...b74a/discretize-operators-DiffOperators-average_edge_to_cell_vector-1_01_00.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
en/main/_downloads/2e0f820b08f2b22bb795ce4e2f4cf4c9/discretize-SimplexMesh-edges-1_01.pdf
Binary file not shown.
Oops, something went wrong.