Open thorade opened 7 years ago
Also check precomputing products like delta*tau*frtd
within HelmholtzDerivs
https://github.com/thorade/HelmholtzMedia/blob/master/HelmholtzMedia/Interfaces/PartialHelmholtzMedium/EoS/HelmholtzDerivs.mo
Maybe combine with #14 and CSE? https://en.wikipedia.org/wiki/Common_subexpression_elimination
Some of the functions could be inlined if the intermediate protected variables were used directly; makes the code less readable, but possibly faster. Some of the more complicated intermediate variables could be calculated in a function that again can be inlined.