Graphics interface: CUDA (unable to find version) Version: 2.80 (sub 75), branch: master, commit date: 14:47 Processor Intel(R) Core(TM) i7-9750H CPU 2.60GHz, 2592 Mhz, 6 Core(s), 12 Logical Processor(s)Īdapter Description NVIDIA GeForce GTX 1660 Ti " with a VIDEO TDR FAILURE error message. The 0-level set forms the domain boundary.I just started using a Dell G7 with Nvidia graphics, and I immediately started having the dreaded "Your computer had a problem. (It must be negative inside theĭomain and positive outside. To inspect the level set function of your domain. generate ( geo, 0.1 ) Debuggingĭmsh is rather fragile, but sometimes the break-downs are due to an incorrectly defined einsum ( "ij,ij->j", y, y )) return (( y / r * self. ![]() r def boundary_step ( self, x ): # project onto the circle y = ( x. _init_ ( bounding_box, feature_points ) def dist ( self, x ): assert x. import dmsh import numpy as np class MyDisk ( dmsh. Simply create a class derived fromĭmsh.Geometry that contains a dist method and a method to project points onto theīoundary. It is also possible to define your own geometry. generate ( geo, target_edge_length, tol = 1.0e-10 ) Custom shapes Path (, ]) def target_edge_length ( x ): return 0.03 + 0.1 * p1. generate ( geo, 0.1, tol = 1.0e-5 ) Local refinementĪll objects can be used to refine the mesh according to the distance to the object Į.g. generate ( geo, 0.1 ) import dmsh geo = dmsh. generate ( geo, 0.1, tol = 1.0e-10 ) import dmsh geo = dmsh. Import dmsh import numpy as np geo = dmsh. generate ( geo, 0.1 ) Rotation, translation, scaling The following uses the HalfSpace primtive for cutting off a circle. sin ( angles )], 1.5 ), ] ) X, cells = dmsh. generate ( geo, 0.1, tol = 1.0e-10 ) import dmsh import numpy as np angles = np. sin ( angles )], 1.0 ), ] ) X, cells = dmsh. generate ( geo, 0.15 ) import dmsh import numpy as np angles = np. generate ( geo, 0.15 ) import dmsh geo = dmsh. Circle (, 0.3 ) geo = r - c X, cells = dmsh. The following example uses a nonconstant edge length it depends on the distance to theĬircle c. generate ( geo, 0.1 ) Combinations Difference Polygon (, ,, ,, ,, ] ) X, cells = dmsh. write ( "circle.vtk" ) import dmsh geo = dmsh. show ( X, cells, geo ) # and write it to a file meshio. optimize_points_cells ( X, cells, "CVT (full)", 1.0e-10, 100 ) # visualize the mesh dmsh. generate ( geo, 0.1 ) # optionally optimize the mesh X, cells = optimesh. Import dmsh import meshio import optimesh geo = dmsh. it produces pretty high-quality meshes.Ĭombined with optimesh, dmsh produces the.is pure Python (and hence easily installable on any system), and.Requires a lot of memory, and isn't terribly robust either. ![]() The worst mesh generator you'll ever use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |