By the way,
instead of
>> protected
>> parameter Real n = fluid.viscosity;
>> parameter Real d = characteristicDiameter;
you might write
>> final parameter Real n = fluid.viscosity;
>> final parameter Real d = characteristicDiameter;
since the binding equation is final, it is no longer possible to change
the parameter with a modifier when instantiating it. In GUI terms, n and
d will not appear in the parameter dialog.
Cheers,
Francesco
dieter ha scritto:
Francesco Casella <[EMAIL PROTECTED]> writes:
Why not? Can't you write
Real headStart;
protected
parameter Real n = fluid.viscosity;
parameter Real d = characteristicDiameter;
Real H = headStart;
equation
H = r/2 * v^2 + n - d ; // and so on ...
You're right, this is helpful, thank you very much! Who knows what
additional silly mistakes I did when trying to figure out how it's
supposed to work.
Dieter
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
--
Francesco Casella - Ph.D.
Dipartimento di Elettronica e Informazione
Politecnico di Milano
Via Ponzio 34/5
I-20133 MILANO - ITALY
Tel: +39-02-2399-3465 (Leonardo)
+39-02-2399-7749 (Polo di Cremona)
Fax: +39-02-2399-3412
e-mail: [EMAIL PROTECTED]
web: http://home.dei.polimi.it/casella
Skype: callto://francesco.casella