assign_loss_curve_resistance#
- Icepak.assign_loss_curve_resistance(objects: str | list, boundary_name: str | None = None, total_power: str | float | dict | BoundaryDictionary | None = '0W', fluid: str | None = 'air', laminar: bool | None = False, loss_curves_x: list[list[float]] | None = [[0, 1], [0, 1]], loss_curves_y: list[list[float]] | None = [[0, 1], [0, 1]], loss_curves_z: list[list[float]] | None = [[0, 1], [0, 1]], loss_curve_flow_unit: str | None = 'm_per_sec', loss_curve_pressure_unit: str | None = 'n_per_meter_sq') BoundaryObject | None#
Assign resistance boundary condition prescribing a loss curve.
- Parameters:
- objects
listorstr 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_name
str,optional Name of the boundary object to create. If a name is not provided, a unique name is generated. The default is
None.- total_power
str,float,ordictorBoundaryDictionary,optional 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 thecreate_*_transient_assignmentpattern. Default is"0W".- fluid
str,optional The 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.- loss_curves_x
listoflistsoffloat List of two list defining the loss curve in the X direction. The first list contains the mass flow rate value of the curve while the second contains the pressure values. Units can be specified with the
loss_curve_flow_unitandloss_curve_pressure_unitparameters. Default is[[0,1],[0,1]].- loss_curves_y
listoflistsoffloat List of two list defining the loss curve in the Y direction. The first list contains the mass flow rate value of the curve while the second contains the pressure values. Units can be specified with the
loss_curve_flow_unitandloss_curve_pressure_unitparameters. Default is[[0,1],[0,1]].- loss_curves_z
listoflistsoffloat List of two list defining the loss curve in the Z direction. The first list contains the mass flow rate value of the curve while the second contains the pressure values. Units can be specified with the
loss_curve_flow_unitandloss_curve_pressure_unitparameters. Default is[[0,1],[0,1]].- loss_curve_flow_unit
str,optional Specifies the unit of flow rate in the loss curvev (for all directions). Default is
"m_per_sec".- loss_curve_pressure_unit
str,optional Specifies the unit of pressure drop in the loss curve (for all directions). Default is
"n_per_meter_sq".
- objects
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjectBoundary object when successful or
Nonewhen failed.
References
>>> oModule.AssignResistanceBoundary