assign_initial_mesh#
- Mesh.assign_initial_mesh(method='Auto', surface_deviation=None, normal_deviation=None, aspect_ratio=None, flex_mesh=False, curvilinear=False, fallback=True, phi=True, auto_model_resolution=True, model_resolution_length='0.0001mm')#
Assign a surface mesh level to an object.
- Parameters:
- method
str,optional Meshing method. Options are
"Auto","AnsoftTAU", and"AnsoftClassic"The default is"Auto".- surface_deviation
floatorstr,optional Surface deviation. The default is
None, in which case the default value is assigned.- normal_deviation
floatorstr,optional Normal deviation. The default is
None, in which case the default value is assigned.- aspect_ratio
floatorstr,optional Aspect ratio. The default is
None, in which case the default value is assigned.- flex_meshbool,
optional Whether to use flexible mesh for TAU volume mesh. The default is
False.- curvilinearbool,
optional Whether to apply curvilinear elements. The default is
False.- fallbackbool,
optional Whether to retain as a fallback. The default is
True.- phibool,
optional Whether to use the Phi mesher for layered geometry. The default is
True.- auto_model_resolutionbool,
optional Whether to automatically calculate the resolution length based on each object’s effective thickness. The default is
True.- model_resolution_length
floatorstr,optional Resolution thickness with units if
automodelresolution=False. The default"0.0001mm".
- method
- Returns:
- bool
Truewhen successful,Falsewhen failed.
References
>>> oModule.InitialMeshSettings