assign_solid_block#

Icepak.assign_solid_block(object_name, power_assignment, boundary_name=None, htc=None, ext_temperature='AmbientTemp')[source]#

Assign block boundary for solid objects.

Parameters:
object_namestr or list

Object name or a list of object names.

power_assignmentstr or dict or BoundaryDictionary

String with the value and units of the power assignment or with " If you don't want to assign a specific power but set a joule heating dissipation, use ``power_assignment="Joule Heating". Assign a transient condition using the result of a function with the create_*_transient_assignment pattern. Assign a temperature-dependent condition using the result of a function with the create_temp_dep_assignment pattern.

boundary_namestr, optional

Name of the source boundary. The default is None, in which case the boundary name is automatically generated.

htcfloat, str, or dict or BoundaryDictionary, optional

String with the value and units of the heat transfer coefficient for the external conditions. If a float is provided, the unit is "w_per_m2kel". Assign a transient condition using the result of a function with the create_*_transient_assignment pattern . Assign a temperature-dependent condition using the result of a function with the pattern create_temp_dep_assignment. The default is None, in which case no external condition is applied.

ext_temperaturefloat, str or dict or BoundaryDictionary, optional

String with the value and units of temperature for the external conditions. If a float is provided, the "cel" unit is used. Assign a transient condition using the result of a function with the create_*_transient_assignment pattern. The default is "AmbientTemp", which is used if the htc parameter is not set to None.

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

Boundary object when successful or None when failed.

References

>>> oModule.AssignBlockBoundary

Examples

>>> from ansys.aedt.core import Icepak
>>> ipk = Icepak()
>>> ipk.solution_type = "Transient"
>>> box = ipk.modeler.create_box([5, 5, 5],[1, 2, 3],"BlockBox3","copper")
>>> power_dict = {"Type": "Transient", "Function": "Sinusoidal", "Values": ["0W", 1, 1, "1s"]}
>>> block = ipk.assign_solid_block("BlockBox3", power_dict)