Skip to content
Snippets Groups Projects
Commit d8175a52 authored by Florian Zill's avatar Florian Zill
Browse files

[meshplotlib] removed log_magnitude example

parent 385de091
No related branches found
No related tags found
1 merge request!119Stress Analysis and Refactoring
......@@ -49,10 +49,6 @@ print(presets.displacement[1]([0.01, 0.02, 0.03]))
print(presets.displacement.magnitude([0.03, 0.04]))
# %%
# Log of Magnitude of a 2D velocity vector from the Hydraulics collection:
print(presets.velocity.log_magnitude(np.sqrt([50, 50])))
# %%
# Magnitude and trace of a 3D strain matrix:
eps = np.array([1, 3, 9, 1, 2, 2]) * 1e-2
......
......@@ -47,12 +47,6 @@ class PhysicalPropertyTest(unittest.TestCase):
self.equality(
pp.velocity.magnitude, [[3, 4], [1, 0]], qty([5, 1], "m/s")
)
self.equality(pp.velocity.log_magnitude, np.sqrt([50, 50]), qty(1, ""))
self.equality(
pp.velocity.log_magnitude,
[np.sqrt([50, 50]), [10, 0]],
qty([1, 1], ""),
)
def test_displacement(self):
"""Test displacement property."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment