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:
methodstr, optional

Meshing method. Options are "Auto", "AnsoftTAU", and "AnsoftClassic" The default is "Auto".

surface_deviationfloat or str, optional

Surface deviation. The default is None, in which case the default value is assigned.

normal_deviationfloat or str, optional

Normal deviation. The default is None, in which case the default value is assigned.

aspect_ratiofloat or str, 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_lengthfloat or str, optional

Resolution thickness with units if automodelresolution=False. The default "0.0001mm".

Returns:
bool

True when successful, False when failed.

References

>>> oModule.InitialMeshSettings