mirror of
https://github.com/NGSolve/netgen.git
synced 2026-05-31 01:06:10 +08:00
boundary layer from python
This commit is contained in:
@@ -133,6 +133,18 @@ void ExportNetgenMeshing()
|
||||
"create empty mesh"
|
||||
)
|
||||
*/
|
||||
.def ("BoundaryLayer", FunctionPointer
|
||||
([](Mesh & self, int bc, double thickness, string material)
|
||||
{
|
||||
BoundaryLayerParameters blp;
|
||||
blp.surfid.Append (bc);
|
||||
blp.prismlayers = 1;
|
||||
blp.hfirst = thickness;
|
||||
blp.growthfactor = 1.0;
|
||||
GenerateBoundaryLayer (self, blp);
|
||||
}
|
||||
))
|
||||
|
||||
;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user