dieter wrote

on the one hand are declaratory variable names good for grasping the
usage but on the other they are making the look of equations rather
ugly.  I'm using e. g.

   Real headStart;
 protected
   parameter Real n = fluid.viscosity;
   parameter Real d = characteristicDiameter;
 equation
   headStart = r/2 * v^2 + n - d ; // and so on ...

etc for shortening the parameter names.  This does not (seem to) work
with variables though.

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 ...

?

                                Francesco


--
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

Reply via email to