assign_hollow_block#
- Icepak.assign_hollow_block(object_name: str | list, assignment_type: str, assignment_value: str | dict | BoundaryDictionary, boundary_name: str | None = None, external_temperature: float | str | dict | BoundaryDictionary = 'AmbientTemp') BoundaryObject | None#
Assign block boundary for hollow objects.
- Parameters:
- object_name
strorlist Object name or a list of object names.
- assignment_type
str Type of the boundary assignment. Options are
"Heat Transfer Coefficient","Heat Flux","Temperature", and"Total Power".- assignment_value
strordictorBoundaryDictionary String with a value and units of the assignment. If
"Total Power"is the assignment type,"Joule Heating"can be used. Assign a transient condition using the result of a function with thecreate_*_transient_assignmentpattern. Assign a temperature-dependent condition using the result of a function with the patterncreate_temp_dep_assignment.- boundary_name
str,optional Name of the source boundary. The default is
None, in which case the boundary is automatically generated.- external_temperature
str,dictorfloatorBoundaryDictionary,optional String with the value and unit of the temperature for the heat transfer coefficient. If a float value is specified, the
"cel"unit is automatically added. Assign a transient condition using the result of a function with thecreate_*_transient_assignmentpattern. The default is"AmbientTemp".
- object_name
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjectBoundary object when successful or
Nonewhen 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], "BlockBox5", "copper") >>> box.solve_inside = False >>> temp_dict = {"Type": "Transient", "Function": "Square Wave", "Values": ["1cel", "0s", "1s", "0.5s", "0cel"]} >>> block = ipk.assign_hollow_block("BlockBox5", "Heat Transfer Coefficient", "1w_per_m2kel", "Test", temp_dict)