assign_device_resistance#

Icepak.assign_device_resistance(objects, boundary_name=None, total_power='0W', fluid='air', laminar=False, linear_loss=['1m_per_sec', '1m_per_sec', '1m_per_sec'], quadratic_loss=[1, 1, 1], linear_loss_free_area_ratio=[1, 1, 1], quadratic_loss_free_area_ratio=[1, 1, 1])#

Assign resistance boundary condition using the device/approach model.

Parameters:
objectslist or str

A list of objects to which the resistance condition will be assigned. It can be a single object (a string) or multiple objects specified as a list.

boundary_namestr, optional

The name of the boundary object that will be created. If not provided, a unique name is generated. The default is None.

total_powerstr, float, or dict or BoundaryDictionary, optional

The total power transferred to the fluid through the resistance volume. It is specified as a string with a value and unit or a float where the default unit "W" is used. Assign a transient condition using the result of a function with the create_*_transient_assignment pattern. The default is "0W".

fluidstr, optional

Material of the volume to which the resistance is being assigned. Default is "air".

laminarbool, optional

Whether the flow inside the volume must be treated as laminar or not. Default is False.

linear_losslist of floats or list of strings, optional

Three values representing the linear loss coefficients in the X, Y, and Z directions. These coefficients can be expressed as floats, in which case the default unit "m_per_sec" will be used, or as strings. Relevant only if loss_type=="Device". Default is "1m_per_sec" for all three directions.

quadratic_losslist of floats or list of strings, optional

Three values representing the quadratic loss coefficients in the X, Y, and Z directions. Relevant only if loss_type=="Device". Default is 1 for all three directions.

linear_loss_free_area_ratiolist of floats or list of strings, optional

Three values representing the linear loss free area ratio in the X, Y, and Z directions. Relevant only if loss_type=="Device". Default is 1 for all three directions.

quadratic_loss_free_area_ratiolist of floats or list of strings, optional

Three values representing the quadratic loss coefficient for each direction (X, Y, Z) in the loss model. Relevant only if loss_type=="Device". Default is 1 for all three directions.

Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObject

Boundary object when successful or None when failed.

References

>>> oModule.AssignResistanceBoundary