![]() |
0.1.8
|
High-level interface for boundary layer conductance modeling and heat/mass transfer calculations. More...
High-level interface for boundary layer conductance modeling and heat/mass transfer calculations.
This class provides a user-friendly wrapper around the native Helios boundary layer conductance plugin with automatic plugin availability checking and graceful error handling.
The boundary layer conductance model implements four different boundary-layer models:
System requirements:
Examples
Definition at line 63 of file BoundaryLayerConductance.py.
Public Member Functions | |
__init__ (self, Context context) | |
Initialize BoundaryLayerConductanceModel with graceful plugin handling. | |
__enter__ (self) | |
Context manager entry. | |
__exit__ (self, exc_type, exc_value, traceback) | |
Context manager exit with proper cleanup. | |
getNativePtr (self) | |
Get the native pointer for advanced operations. | |
None | enableMessages (self) |
Enable console output messages from the boundary layer conductance model. | |
None | disableMessages (self) |
Disable console output messages from the boundary layer conductance model. | |
None | setBoundaryLayerModel (self, str model_name, Optional[List[int]] uuids=None) |
Set the boundary layer conductance model to be used. | |
None | run (self, Optional[List[int]] uuids=None) |
Run the boundary layer conductance calculations. | |
Static Public Member Functions | |
bool | is_available () |
Check if BoundaryLayerConductanceModel plugin is available in current build. | |
Public Attributes | |
context = context | |
bl_model = None | |
pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.__init__ | ( | self, | |
Context | context ) |
Initialize BoundaryLayerConductanceModel with graceful plugin handling.
context | Helios Context instance |
TypeError | If context is not a Context instance |
BoundaryLayerConductanceModelError | If boundary layer conductance plugin is not available |
Definition at line 75 of file BoundaryLayerConductance.py.
pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.__enter__ | ( | self | ) |
Context manager entry.
Definition at line 133 of file BoundaryLayerConductance.py.
pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.__exit__ | ( | self, | |
exc_type, | |||
exc_value, | |||
traceback ) |
Context manager exit with proper cleanup.
Definition at line 137 of file BoundaryLayerConductance.py.
None pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.disableMessages | ( | self | ) |
Disable console output messages from the boundary layer conductance model.
BoundaryLayerConductanceModelError | If operation fails |
Definition at line 169 of file BoundaryLayerConductance.py.
None pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.enableMessages | ( | self | ) |
Enable console output messages from the boundary layer conductance model.
BoundaryLayerConductanceModelError | If operation fails |
Definition at line 157 of file BoundaryLayerConductance.py.
pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.getNativePtr | ( | self | ) |
Get the native pointer for advanced operations.
Definition at line 148 of file BoundaryLayerConductance.py.
|
static |
Check if BoundaryLayerConductanceModel plugin is available in current build.
Examples
Definition at line 279 of file BoundaryLayerConductance.py.
None pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.run | ( | self, | |
Optional[List[int]] | uuids = None ) |
Run the boundary layer conductance calculations.
Calculates boundary-layer conductance values and stores results as primitive data "boundarylayer_conductance" (mol air/m²/s).
uuids | Optional list of primitive UUIDs to process. If None, processes all primitives in the Context. |
BoundaryLayerConductanceModelError | If calculation fails |
Examples
Definition at line 254 of file BoundaryLayerConductance.py.
None pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.setBoundaryLayerModel | ( | self, | |
str | model_name, | ||
Optional[List[int]] | uuids = None ) |
Set the boundary layer conductance model to be used.
Four models are available: - "Pohlhausen": Laminar flat plate, forced convection (default) - "InclinedPlate": Mixed free-forced convection for inclined plates - "Sphere": Laminar flow around a sphere - "Ground": Flow over bare ground surface
model_name | Name of the boundary layer model to use. Must be one of: "Pohlhausen", "InclinedPlate", "Sphere", "Ground" |
uuids | Optional list of primitive UUIDs to apply the model to. If None, applies to all primitives in the Context. |
ValueError | If model_name is not valid |
BoundaryLayerConductanceModelError | If operation fails |
Examples
Definition at line 209 of file BoundaryLayerConductance.py.
pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.bl_model = None |
Definition at line 83 of file BoundaryLayerConductance.py.
pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.context = context |
Definition at line 82 of file BoundaryLayerConductance.py.