Conservative systems and terminals

(branch quantities, voltage & current, natures & arrays, terminal attributes)
 

Branch quantities:
For example, a resistance is a path governed by the law of Ohm that connects the tension levels of its terminals (across quantity) and specifies the current that crosses it (through quantity).

Voltage & current:
In the following example we declare two subtypes: voltage and current with their respective tolerances and a simple nature electrical.
Then we declare two terminals of this nature, and a quantity v across the terminals and a current i through the same terminals t1 to t2.
 
subtype voltage is real tolerance - " tol_voltage" ;
subtype current is real tolerance - " tol_current" ;
nature electrical is voltage across current through;
terminal t1, t2: electrical;
quantity v across i through t1 to t2;
 
 
 

Natures & arrays:
In the following example, one declares an array of nature type and a subnature of this vector type:
 
nature electrical_vector is array(natural range <>) of electrical;
subnature el_vect4 is electrical_vector(0 to 3);
terminal t3, t4: el_vect4;
quantity vpp across ipp through t3 to t4;
quantity vps across ips through t1 to t4;
 
 
 
 
subnature low_voltage is electrical;
tolerance "tol_lowvoltage" across "tol_lowcurrent" through;
terminal tx, ty: low_voltage;
quantity vlow1 across ilow1 through tx to ty:
 


Terminal attributes:
 
entity simple is
port (terminal terin, terout:electrical);
end simple;
 
 
 
The declaration of terin creates two quantities: