assign_solid_block#
- Icepak.assign_solid_block(object_name, power_assignment, boundary_name=None, htc=None, ext_temperature='AmbientTemp')#
Assign block boundary for solid objects.
- Parameters:
- object_name
strorlist Object name or a list of object names.
- power_assignment
strordictorBoundaryDictionary 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 thecreate_*_transient_assignmentpattern. Assign a temperature-dependent condition using the result of a function with thecreate_temp_dep_assignmentpattern.- boundary_name
str,optional Name of the source boundary. The default is
None, in which case the boundary name is automatically generated.- htc
float,str,ordictorBoundaryDictionary,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 thecreate_*_transient_assignmentpattern . Assign a temperature-dependent condition using the result of a function with the patterncreate_temp_dep_assignment. The default isNone, in which case no external condition is applied.- ext_temperature
float,strordictorBoundaryDictionary,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 thecreate_*_transient_assignmentpattern. The default is"AmbientTemp", which is used if thehtcparameter is not set toNone.
- 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], "BlockBox3", "copper") >>> power_dict = {"Type": "Transient", "Function": "Sinusoidal", "Values": ["0W", 1, 1, "1s"]} >>> block = ipk.assign_solid_block("BlockBox3", power_dict)