Skip to main content

Prime Mesh Python client library 2026 R1

SurfaceMeshSizeScaling

Last update: 02.04.2026

class ansys.meshing.prime.SurfaceMeshSizeScaling(model=None, factor=None, size_range_min=None, size_range_max=None, json_data=None, **kwargs)

Settings related to scaling of surface mesh size for hexcore refinement.

Parameters:

model: Model

Model to create a SurfaceMeshSizeScaling object with default parameters.

factor: float, optional

Value by which size should be multiplied when the size falls within a certain range. Applicable only when size field type is set to Geometric in AutoMeshParams structure.

size_range_min: float, optional

Minimum size required to apply scaling. Applicable only when size field type is set to Geometric in AutoMeshParams structure.

size_range_max: float, optional

Maximum size required to apply scaling. Applicable only when size field type is set to Geometric in AutoMeshParams structure.

json_data: dict, optional

JSON dictionary to create a SurfaceMeshSizeScaling object with provided parameters.

Examples

>>> surface_mesh_size_scaling = prime.SurfaceMeshSizeScaling(model = model)

Methods

Name Description
SurfaceMeshSizeScaling.print_default() Print the default values of SurfaceMeshSizeScaling object.
SurfaceMeshSizeScaling.set_default([factor, ...]) Set the default values of the SurfaceMeshSizeScaling object.

Attributes

Name Description
SurfaceMeshSizeScaling.factor Value by which size should be multiplied when the size falls within a certain range.
SurfaceMeshSizeScaling.size_range_max Maximum size required to apply scaling.
SurfaceMeshSizeScaling.size_range_min Minimum size required to apply scaling.

Connect with Ansys