Re: Array nature example


Subject: Re: Array nature example
From: Alain Vachoux (alain.vachoux@antrim.com)
Date: Wed Sep 19 2001 - 00:18:59 PDT


Dear Shishir,

>Can anyone provide me with a complete example of using Array natures and
>subnature. I want to define terminals of array nature or subnature and
>then across and through quantities defined between those terminals.
>
>
>Also what does the following declaration imply :
>
> quantity VR across IR through n1 to n2;
>
>where n1 and n2 are terminals of array nature.
>
>..does it mean that internally we create VR(0), VR(1), ... as across
>quantities between n1(0) and n2(0) , n1(1) and n2(1) and so on ,
>respectively. The same holds for IR also. Please correct me if I am wrong.

Let us assume the following nature, terminal, and branch quantity declarations:

subtype voltage is real;
subtype current is real;
nature electrical is
         voltage across
         current through
         electrical_ref reference;
nature electrical_vector is array (natural range <>) of electrical;

terminal t1, t2: electrical;
terminal t3, t4: electrical_vector(1 to 3);

quantity v12 across i1, i2 through t1 to t2; -- case a
quantity v13 across i3 through t3 to t1; -- case b
quantity v24 across i4 through t2 to t4; -- case c
quantity v34 across i5 through t3 to t4; -- case d

The branch quantity declarations above then define different topologies and
different numbers of branch quantities:

Case a: 1 across quantity v12
         2 through quantities i1 and i2

                 /-------- i1 -->---------\
             t1 o (+) v12 (-) o t2
                 \-------- i2 -->---------/

Case b: 3 across quantities v13(1) v13(2), v13(3)
         3 through quantities i3(1) i3(2), i3(3)

               (+) v13(1)
          t3(1) o-------- i3(1) -->-------\
               (+) v13(2) \
          t3(2) o-------- i3(2) -->--------o t1 (-)
               (+) v13(3) /
          t3(3) o-------- i3(3) -->-------/

Case c: 3 across quantities v24(1) v24(2), v24(3)
         3 through quantities i4(1) i4(2), i4(3)

                          v24(1) (-)
                  /------ i4(1) -->--------o t4(1)
                 / v24(2) (-)
         (+) t2 o-------- i4(2) -->--------o t4(2)
                 \ v24(3) (-)
                  \------ i4(3) -->--------o t4(3)

Case d: 3 across quantities v34(1) v34(2), v34(3)
         3 through quantities i5(1) i5(2), i5(3)

               (+) v34(1) (-)
          t3(1) o-------- i5(1) -->--------o t4(1)
               (+) v34(2) (-)
          t3(2) o-------- i5(2) -->--------o t4(2)
               (+) v34(3) (-)
          t3(3) o-------- i5(3) -->--------o t4(3)

I hope this helps.

Best Regards,
Alain Vachoux



This archive was generated by hypermail 2b28 : Wed Sep 19 2001 - 00:48:04 PDT