Model.blmesh_2d_input_nonbl#
- Model.blmesh_2d_input_nonbl(fixed_collection, float_collection, float_mode)#
Specifies non-boundary layer input for
Model.blmesh_2d2(),Model.blmesh2d_computeblthickness1()andModel.blmesh_2d_computeblthickness(). If this function is not called before either functions, then all edges of the selected region are considered as boundary layer edges.If
blmesh_2d_input_nonbl()is not called before either function, then all edges of the selected region are considered as boundary layer edges.- Parameters:
fixed_collection (Collection) –
The collection containing the entities for fixed non-boundary layer. Valid entity types depend on the
base_collectionvalue specified inblmesh_2d2()(or on the others mentioned in the description).If the entities in
base_collectionare surfaces, then the only valid entities in thefixed_collectionare lines.If the entities in
base_collectionare elements, then the only valid entities in thefixed_collectionare nodes or elements. For elements, only elements oftypename=PLOTELare allowed.float_collection (Collection) –
The collection containing the entities for float non-boundary layer. Valid entity types depend on the
base_collectionvalue specified inblmesh_2d2()(or on the others mentioned in the description).If the entities in
base_collectionare surfaces, then the only valid entities in thefloat_collectionare lines.If the entities in
base_collectionare elements, then the only valid entities in thefloat_collectionare nodes or elements. For elements, only elements oftypename=PLOTELare allowed.float_mode (int) –
Option to specify behavior of float non-boundary layer entities. Valid options are:
0 - Do nothing special.
1 - Use remesh option.
Example#
Create a 5 layer boundary mesh with a quad dominated mesh of size 2.0 on surface with ID 10 , with the first layer be 0.15 thick and a growth rate of 1.2 , use boundary layer elements with IDs 10 and 11 as fixed and 12 and 13 as float , and non - boundary layer elements with IDs 1 and 2 as fixed and 5 and 6 as float#import hm import hm.entities as ent model = hm.Model() # Boundary layer elements blFixedEl_collection = hm.Collection(model, ent.Element, [10, 11]) blFloatEl_collection = hm.Collection(model, ent.Element, [12, 13]) model.blmesh_2d_input_bl( fixed_collection=blFixedEl_collection, float_collection=blFloatEl_collection ) # Non-Boundary layer elements nonBlFixedEl_collection = hm.Collection(model, ent.Element, [1, 2]) nonBlFloatEl_collection = hm.Collection(model, ent.Element, [5, 6]) model.blmesh_2d_input_nonbl( fixed_collection=nonBlFixedEl_collection, float_collection=nonBlFloatEl_collection ) # Generate the Boundary layer mesh base_surf_collection = hm.Collection(model, ent.Surface, [10]) model.blmesh_2d2( base_collection=base_surf_collection, num_layers=5, first_layer_thickness=0.15, growth_rate=1.2, element_size=2.0, element_type="quads", )