Hi there!
My topic is the following: I'd like to model a "hydraulic two-pin" containing a freely definable characteristic curve which describes the stationary relation between delta pressure (pressure head) and volume flow rate => H-Q-diagram. This model then represents the characteristics of - for example - a hydraulic network, a filter, a pipe or what ever passive hydraulic device you like.
Now I'm thinking about how to program such a two-pin: It should allow a parametrization by a kind of end-user without going into the source-code. Therefore, eveything must be done via "parameter"-interaction.
I want to be able to define the (monotonically rising) curve ...
+ ... by directly typing the coefficients of a polynom of a degree that also may be defined by the user or ...
+ ... by defining points being approximated with a least-squares-algorithm (Is there a Modelica-tool to define the points grafically???) or
+ ... by using a pipe with a realistic internal friction-model I already developed.
Depending on the way you choose out of these three, different parameters are necessary. A simple way to deal with this could be asking for ALL the parameters nevertheless -- although I do not need all. But I think of a more comfortable way to ask for the parameters:
Is it possible to make a kind of "parametrization-assistant" or an interactive sequence of dialogues which only asks for the parameters which are really needed?
The most comfortable way I found to design such a "dialogue" is to use the choices-annotation (see book of Peter Fritzon). But also here I cannot blind out the not needed parameters... :-(
Can you help me?
Regards,
Hannes
