gdmcbain/fenics-tuto-in-skfem

try adaptmesh

Opened this issue · 4 comments

pygmsh 7 broke rather completely with previous versions nschloe/pygmsh#380 and dmsh is suffering from duplicate points meshpro/dmsh#66. What about adaptmesh? For example in

geom = Geometry()
cylinder = geom.add_circle([0.2, 0.2, 0.0], radius, lcar=radius / 2)
channel = geom.add_rectangle(
0.0, 2.2, 0.0, height, 0, holes=[cylinder], lcar=radius / 2
)
geom.add_physical(channel.surface, "domain")
geom.add_physical(channel.lines[1], "outlet")
geom.add_physical(channel.lines[3], "inlet")
mesh = from_meshio(generate_mesh(geom, dim=2))

To use adaptmesh.triangulate would require holes kinnala/adaptmesh#4 which is in the current master but not the latest release, 0.1.3.

In an Anaconda Powershell Prompt:

 pip freeze | Select-String -pattern adaptmesh

adaptmesh @ file:///C:/Users/gmcbain/src/adaptmesh

No, that's not what I meant.

pip install -U git+git://github.com/kinnala/adaptmesh.git#egg=adaptmesh
pip freeze | Select-String -pattern adaptmesh

adaptmesh @ git+git://github.com/kinnala/adaptmesh.git@b59c3e063d87dc23fc15ec099573e82524169030

Released adaptmesh v0.2.0 in case you wish to use the PyPI version instead.

Thanks!