![]() |
PyHelios 0.1.11
|
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:
Definition at line 61 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. | |
| __del__ (self) | |
| Destructor to ensure C++ resources freed even without 'with' statement. | |
| 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 73 of file BoundaryLayerConductance.py.
| pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.__del__ | ( | self | ) |
Destructor to ensure C++ resources freed even without 'with' statement.
Definition at line 146 of file BoundaryLayerConductance.py.
| pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.__enter__ | ( | self | ) |
Context manager entry.
Definition at line 131 of file BoundaryLayerConductance.py.
| pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.__exit__ | ( | self, | |
| exc_type, | |||
| exc_value, | |||
| traceback ) |
Context manager exit with proper cleanup.
Definition at line 135 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 177 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 165 of file BoundaryLayerConductance.py.
| pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.getNativePtr | ( | self | ) |
Get the native pointer for advanced operations.
Definition at line 156 of file BoundaryLayerConductance.py.
|
static |
Check if BoundaryLayerConductanceModel plugin is available in current build.
Definition at line 281 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 |
Definition at line 258 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 |
Definition at line 215 of file BoundaryLayerConductance.py.
| pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.bl_model = None |
Definition at line 81 of file BoundaryLayerConductance.py.
| pyhelios.BoundaryLayerConductance.BoundaryLayerConductanceModel.context = context |
Definition at line 80 of file BoundaryLayerConductance.py.