assign_pressure_free_opening#
- Icepak.assign_pressure_free_opening(assignment: int | str | list, boundary_name: str | None = None, temperature: str | float | dict | BoundaryDictionary | None = 'AmbientTemp', radiation_temperature: str | float | None = 'AmbientRadTemp', pressure: str | float | dict | BoundaryDictionary | None = 'AmbientPressure', no_reverse_flow: bool | None = False) BoundaryObject | None#
Assign free opening boundary condition.
- Parameters:
- assignment
intorstrorlist Integer indicating a face ID or a string indicating an object name. A list of face IDs or object names is also accepted.
- boundary_name
str,optional Boundary name. Default is
None, in which case the name is generated automatically.- temperature
strorfloatordictorBoundaryDictionary,optional Prescribed temperature at the boundary. If a string is set, a variable name or a number with the unit is expected. If a float is set, the unit
'cel'is automatically added. Assign a transient condition using the result of a function with thecreate_*_transient_assignmentpattern.- radiation_temperature
strorfloaty,optional Prescribed radiation temperature at the boundary. If a string is set, a variable name or a number with the unit is expected. If a float is set, the unit
'cel'is automatically added. Default is"AmbientRadTemp".- pressure
floatorstrordictorBoundaryDictionary,optional Prescribed pressure (static or total coherently with flow type) at the boundary. If a string is set, a variable name or a number with the unit is expected. If a float is set, the unit
'pascal'is automatically added. Assign a transient condition using the result of a function with thecreate_*_transient_assignmentpattern. The default is"AmbientPressure".- no_reverse_flowbool,
optional Option to block reverse flow at the boundary. Default is
False.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.common.BoundaryObjectBoundary object when successful or
Nonewhen failed.
References
oModule.AssignOpeningBoundary
Examples
>>> import ansys.aedt.core >>> icepak = ansys.aedt.core.Icepak() >>> f_id = icepak.modeler["Region"].faces[0].id >>> icepak.assign_pressure_free_opening(f_id)