Symbol Naming Convention¶
Version: 1.4 — Canonical reference for all variable names in the
enex_analysispackage.
1. Core Structure¶
All variable names follow a standardized order separated by underscores (_):
[Physical Quantity]_[Medium or Subsystem]_[State or Component]_[Direction]
1.1 Core Principles¶
Ref-First: In the refrigerant cycle,
refis the primary subsystem. Components (cmp,exp) and states (cond,evap) appear afterref.Subsystem Priority: For non-refrigerant systems, the subsystem precedes the medium (e.g.,
oubeforea).Hierarchy Rule: Medium symbols (
_w,_a) MUST follow the entire multi-level subsystem hierarchy (e.g.,dV_ou_fan_a).
1.2 Examples¶
Variable |
Physical Qty |
Subsystem |
State |
Direction |
Meaning |
|---|---|---|---|---|---|
|
Heat Rate |
|
|
|
Heat entering the tank via water |
|
Temp |
|
|
|
Refrigerant saturation temp at condensing side |
|
Temp |
|
|
|
Air outlet temp from outdoor unit fan |
|
Temp |
|
|
|
Compressor inlet refrigerant temperature |
2. Component Symbols¶
2.1 Physical Quantity Prefixes¶
Prefix |
Quantity |
Unit |
|---|---|---|
|
Temperature |
°C or K |
|
Pressure |
Pa |
|
Heat energy rate |
W |
|
Electrical power rate |
W |
|
Exergy flow rate |
W |
|
Exergy consumption (destruction) |
W |
|
Exergy storage (accumulation) |
W |
|
Entropy rate |
W/K |
|
Volumetric flow rate |
m³/s |
|
Mass flow rate |
kg/s |
|
Specific enthalpy |
J/kg |
|
Specific entropy |
J/(kg·K) |
|
Specific exergy |
J/kg |
|
State of Charge |
- |
|
Solar irradiance |
W/m² |
|
Velocity |
m/s |
|
Heat capacity flow |
W/K |
|
Overall heat transfer coefficient |
W/K |
|
Heat capacity |
J/K |
|
Area |
m² |
2.2 Medium and Subsystem Symbols¶
Medium:
w(water),a(air),ref(refrigerant),sol(solar radiation)Subsystem:
cmp(compressor),cond(condenser),evap(evaporator),exp(expansion valve),ou(outdoor unit),tank(thermal storage),stc(solar thermal collector),pv(photovoltaic),ess(energy storage),ctrl(charge controller),inv(inverter),grid(power grid),mix(mixing valve),pump(pump),bhe(borehole heat exchanger)
2.3 Subsystem Hierarchy¶
For nested components: [Subsystem]_[Component] (higher → lower).
Variable |
Meaning |
|---|---|
|
Fan power within the outdoor unit |
|
Air flow through the outdoor unit fan |
|
Water outlet temp from the STC pump |
3. Refrigerant Cycle State Points¶
Traditional numerical state points are mapped to descriptive names:
Primary States¶
Legacy |
Descriptive |
Position |
|---|---|---|
State 1 |
|
Compressor inlet / Evaporator outlet |
State 2 |
|
Compressor outlet / Condenser inlet |
State 3 |
|
Expansion valve inlet / Condenser outlet |
State 4 |
|
Expansion valve outlet / Evaporator inlet |
Saturation States¶
Legacy |
Descriptive |
Meaning |
|---|---|---|
State 1* |
|
Saturated vapor at evaporator pressure |
State 2* |
|
Saturated vapor at condenser pressure |
State 3* |
|
Saturated liquid at condenser pressure |
4. Boundary Flow Naming (Upstream Rule)¶
When a flow exists between two subsystems, name it after the upstream (source) subsystem:
Use
Q_tank_w_out(notQ_mix_w_in)Use
T_ref_cmp_out(notT_ref_cond_in)For external boundaries: use
_in(e.g.,T_tank_w_infor mains water)
5. Implementation Rules¶
Units in Keys: Result dict / DataFrame columns use
[unit]notation:'T_ref_cmp_in [°C]'Aggregates: System-wide totals omit the subsystem:
E_tot,X_tot,Xc_totDimensionless:
cop_ref,cop_sys,eta_cmp,ksi_stcDesign Values:
_designsuffix (e.g.,dV_ou_design)Losses:
_losssuffix (e.g.,Q_tank_loss)Saturation:
_satsuffix (e.g.,T_ref_evap_sat)Target/Setpoint Values:
_targetsuffix (e.g.,Q_cond_target). Replaces legacy_loadsuffix.Heated/Modified Inputs:
_heatedsuffix for values modified by an upstream process (e.g.,T_tank_w_in_heated= mains water preheated by STC).Grid/Export/Dump: For energy exports and unused variables:
_import,_export,_dump(e.g.E_grid_import,E_dump).Flow Qualifiers (Modifier Before Medium): Qualifiers like
sup(supply/supplemental),serv(service), orheatedthat describe the type of medium are placed before the medium symbolw, following the subsystem hierarchy (e.g.,dV_mix_sup_w_in= supplemental water entering the mixing valve, notdV_mix_w_in_sup).
6. Heat Exchanger Variable Naming¶
Category |
Variable |
Meaning |
|---|---|---|
Condenser |
|
Heat rejected by refrigerant side |
|
Heat gained by water side |
|
Evaporator |
|
Heat absorbed by refrigerant side |
|
Heat rejected by air side |