New syntax for boundary layers

Hi,
Could you provide some help with the new syntax for boundary layers in ngsolve 6.2.2501

In ngsolve 6.2.2401 I was using

nmesh = OCCGeometry(joined_object).GenerateMesh(meshsize.coarse, maxh=100)

to generate a mesh and


nmesh.BoundaryLayer(boundary=“.*”, thickness=layer_thicknesses, material=boundary_layer_material,
domains=boundary_layer_material, outside=False)

to add the layers. But this no longer appears to be supported in the new version. The help is suggesting to look at help(BoundaryLayerParameters) but it says this undefined.

Thanks Paul

Thanks to James Elgy, I think what is needed is

from netgen.meshing import BoundaryLayerParameters

and then e.g.

box = Box(Pnt(0,0,0), Pnt(1,1,1))
cyl = Cylinder(Pnt(1,0.5,0.5), X, r=0.3, h=0.5)

fused = box+cyl
geo = OCCGeometry(fused)
B = BoundaryLayerParameters(boundary=‘.‘, thickness=0.1, domain=’.’)
nmesh = (geo.GenerateMesh(boundary_layers=[B], maxh=0.2))

help(BoundaryLayerParameters) will then display the new options.