- edited description
- changed title to Rectangle in the Z-X plane
Rectangle in the Z-X plane
I get the following error when I try to create a rectangle in the Z-X plane. I attempted several workarounds (rotating the coordinates of the mesh) but those did not work either. I would love to know if something like this will be included in the future or if there is a simple workaround?
In [1]: import mshr
In [2]: from dolfin import *
In [4]: rect=mshr.Rectangle(Point(-50,0,0),Point(50,0,50))
RuntimeError Traceback (most recent call last)
<ipython-input-4-874e3521bae0> in <module>()
----> 1 rect=mshr.Rectangle(Point(-50,0,0),Point(50,0,50))
RuntimeError:
*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
*** fenics-support@googlegroups.com
*** Remember to include the error message listed below and, if possible,
*** include a minimal running example to reproduce the error.
*** -------------------------------------------------------------------------
*** Error: Unable to create rectangle.
*** Reason: Rectangle with corner <Point x = -50 y = 0 z = 0> and <Point x = 50 y = 0 z = 0> degenerated.
*** Where: This error was encountered inside CSGPrimitives2D.cpp.
*** Process: 0
*** DOLFIN version: 2019.1.0
*** Git changeset: unknown
*** -------------------------------------------------------------------------
Comments (2)
-
reporter -
reporter - edited description
- Log in to comment