Coding Style

Modelica

Modelica code should use the following conventions:

  • ModelNames

  • function_names

  • v_desc, for example: Q_flow_in, P_elec, p_max, epsilon_ext

  • INNER_OUTER_CLASSES

For common components, the following “acronyms” can be used in model names, model instances and packages:

  • CL: Collector

  • RC: Receiver

  • ST: Storage

  • PB: PowerBlock

  • HE: HeatExchanger

  • CN: Constants

  • CV: Conversions

  • SI: SIUnits

  • FI: Finances