Class Names
Class names start always with an upper case letter.
Instance Names
Instance names, i.e., names of component instances and of variables (with the exception of constants), start usually with a lower case letter with only a few exceptions if this is common sense (such as T
for a temperature variable).
Constant Names
Constant names, i.e., names of variables declared with the constant
prefix, start usually with a upper case letter with only a few exceptions if this is common sense e.g. pi
, cp
.
Model, Block and Package Names
Names of models, blocks and packages should start with an upper-case letter and be a noun or a noun with a combination of adjectives and nouns. Use camel-case notation to combine multiple words, such as HeatTransfer
.
Ports
For model with multiple ports, an upper case letter is added, e.g. portA
.
go to Architecture