assign_power_law_resistance#

Icepak.assign_power_law_resistance(objects, boundary_name=None, total_power='0W', fluid='air', laminar=False, power_law_constant=1, power_law_exponent=1)[source]#

Assign resistance boundary condition prescribing a power law.

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 will be generated. Default is None.

total_powerstr, float, or dict, optional

The total power transferred to the fluid through the resistance volume. It is specified as a string with value and unit, a float where the default unit “W” will be used, or a dictionary for transient assignment. The dictionary should contain two keys: "Function" and "Values".

  • For the "Function" key, options are "Exponential",

"Linear", "Piecewise Linear", "Power Law", "Sinusoidal", and "Square Wave". - For the "Values" key, provide a list of strings containing the parameters required by the "Function" key selection. For example, when "Linear" is set as the "Function" key, two parameters are required: the value of the variable at t=0 and the slope of the line. For the parameters required by each "Function" key selection, see the Icepak documentation.

Default is "0W".

fluidstr, 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.

power_law_constantstr or float, optional

Specifies the coefficient in the power law equation for pressure loss. Default is 1.

power_law_exponentstr or float, optional

Specifies the exponent value in the power law equation for pressure loss calculation. Default is 1.

Returns:
pyaedt.modules.Boundary.BoundaryObject

Boundary object when successful or None when failed.

References

>>> oModule.AssignResistanceBoundary