Hello everybody,
I'm currently struggling using not pre-defined units within the SystemModeler. I'd specifically like to give the user the possibility to choose between ml/min and l/min (within the other, built-in options) for a volume flow rate input parameter and use mbar as unit for the simulated result. I can do the output by converting the unit in my code and giving the variable the attribute 'unit="mbar"', but I guess somehow SystemModeler can do it automatically like for m and mm. I couldn't find anywhere if or how I might achieve this. I've defined types and conversion functions, but am not able to 'teach' them to the SystemModeler.
Another issue is that SystemModeler doesn't seem to recognize prefixes. Considering again my example from above, SystemModeler doesn't convert ml/min in m3/s at all, this works for me only for built-in units like mm.
Thanks in advance,
Lukas