Skip to main content

Prime Mesh Python client library 2025 R2

HardSizingParams

Last update: 10.09.2025

class ansys.meshing.prime.HardSizingParams(model=None, min=None, growth_rate=None, json_data=None, **kwargs)

Size field computed using hard size control enables you to maintain a uniform size based on the size specified.

The hard sizing will override any other specified size.

  • Parameters:

    model: Model : Model to create a HardSizingParams object with default parameters.

    min: float, optional : Minimum size used for computing edge and face size using hard size control.

    growth_rate: float, optional : Growth rate used for transitioning from one element size to neighbor element size.

    json_data: dict, optional : JSON dictionary to create a HardSizingParams object with provided parameters.

Examples

>>> hard_sizing_params = prime.HardSizingParams(model = model)

Methods

Name Description
HardSizingParams.print_default() Print the default values of HardSizingParams object.
HardSizingParams.set_default([min, growth_rate]) Set the default values of the HardSizingParams object.

Attributes

Name Description
HardSizingParams.growth_rate Growth rate used for transitioning from one element size to neighbor element size.
HardSizingParams.min Minimum size used for computing edge and face size using hard size control.

Connect with Ansys