Modelica.UsersGuide.Conventions.ModelicaCodeIn this section the naming conventions of class and instance names, parameters and variables are specified. Additionally some format UsersGuide are stated.
Extends from Modelica.Icons.Information (Icon for general information packages).
| Name | Description |
|---|---|
| Format | |
| Naming convention |
Modelica.UsersGuide.Conventions.ModelicaCode.Format%name) in blue color.
Parameter values, e.g., resistance, mass, gear ratio, are displayed
in the icon in black color in a smaller font size as the instance name.parameter Real a = 1 "Arbitrary factor";Extends from Modelica.Icons.Information (Icon for general information packages).
Modelica.UsersGuide.Conventions.ModelicaCode.NamingElectricCurrent. An underscore is only used
at the end of a name to characterize a lower or upper index,
e.g., pin_a.T for a temperature variable)._a, _b
or _p, _n, e.g., Flange_a, Flange_b,
HeatPort_a, HeatPort_b.In the following table typical variable names are listed. This list should be completd.
| Variable | Quantity |
|---|---|
| a | acceleration |
| A | area |
| C | Capacitance |
| d | damping, density, diameter |
| dp | pressureDrop |
| e | specificEntropy |
| E | energy, entropy |
| eta | efficiency |
| f | force, frequency |
| G | conductance |
| H | enthalpy |
| h | height, specificEnthalpy |
| HFlow | enthalpyFlow |
| i | current |
| J | inertia |
| l | length |
| L | Inductance |
| m | mass |
| M | mutualInductance |
| mFlow | massFlow |
| P | power |
| p | pressure |
| Q | heat |
| Qflow | heatFlow |
| r | radius |
| R | radius, resistance |
| t | time |
| T | temperature |
| tau | torque |
| U | internalEnergy |
| v | electricPotential, specificVolume, velocity, voltage |
| V | volume |
| w | angularVelocity |
| X | reactance |
| Z | impedance |
Extends from Modelica.Icons.Information (Icon for general information packages).