Nesrinekh / OpenPME

ISC License
4 stars 0 forks source link

Assign properties to symbols in a formula #88

Open lschuetze opened 3 years ago

lschuetze commented 3 years ago

Equations currently reference particle and mesh properties directly. This has drawn some confusion for example in the Vortex in Cell example where Ѡ had been assigned either vorticity or velocity in different commits.

It should be explored if it is valid to write a math formula with all math symbols and then assign properties to these symbols. This could greatly reduce the size of the formulae as well as clarify which property is used how. This also opens possibilities for the type checker to check if a formula is correctly used / instantiated.

This must be only visible in OpenPME and not visible in the generated code.