thorade / HelmholtzMedia

Modelica library for the calculation of fluid properties from a Helmholtz energy equation of state (EoS).
BSD 3-Clause "New" or "Revised" License
35 stars 16 forks source link

inlining and functions #26

Open thorade opened 7 years ago

thorade commented 7 years ago

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.

thorade commented 5 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

image

thorade commented 4 years ago

Maybe combine with #14 and CSE? https://en.wikipedia.org/wiki/Common_subexpression_elimination