LAYER

(optional) define layer index

The LAYER functionality offers a method to filter neighbors in the stencils that would otherwise be considered through thin geometries. This prevents influencing through thin layers of geometries, e.g.in stirring applications. A newer algorithm for performing the stencil filtering is steered by NEIGHBOR_FilterMethod. Please consider using these methods before utilizing the LAYER functionality.

Layer based neighbor filtering

Different LAYER numbers tell MESHFREE to treat points with different numbers to not be visible to each other. Neighbor points with a different LAYER number are not taken into account for the points stencil. This helps with certain kinds of problems related to small and/or thin boundary. By default all LAYERS have index 0 - thus all neighbors would be visible to each other. Example 1: In this example points facing one part of the geometry should not be considered neighbors of the other part of the geometry despite being in the h-environment.
begin_alias{} "OnePartOfThinGeometry" = " BC$...$ ACTIVE$...$ IDENT%...% MAT$...$ TOUCH%...% MOVE$...$ LAYER1 CHAMBER1 " "OppositePartOfThinGeometry" = " BC$...$ ACTIVE$...$ IDENT%...% MAT$...$ TOUCH%...% MOVE$...$ LAYER2 CHAMBER1 " end_alias

Advanced Layer based neighbor filtering

The default value of compute_LAYER is 0. To enable the advanced mode of the layer based filtering, compute_LAYER can be set to a positive integer. Points can only be neighbors if the LAYER numbers of two points differ by less or equal than compute_LAYER. Example 2: In common_variables, set In USER_common_variables, the LAYER keyword is attached to the aliases of different geometry parts.
begin_alias{} "OnePartOfThinGeometry" = " BC$...$ ACTIVE$...$ IDENT%...% MAT$...$ TOUCH%...% MOVE$...$ LAYER1 CHAMBER1 " "OppositePartOfThinGeometry" = " BC$...$ ACTIVE$...$ IDENT%...% MAT$...$ TOUCH%...% MOVE$...$ LAYER4 CHAMBER1 " "AnotherPartOfThinGeometry" = " BC$...$ ACTIVE$...$ IDENT%...% MAT$...$ TOUCH%...% MOVE$...$ LAYER3 CHAMBER1 " end_alias
Points with LAYER1 and LAYER4 can't be neighbors of each other, but they can both be neighbor to a point with LAYER3.