Changeset 325 for trunk/eml/electrical


Ignore:
Timestamp:
Jul 28, 2007, 9:41:04 PM (15 years ago)
Author:
Argimiro Resende Secchi
Message:

Set icons positions for most devices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eml/electrical/electrical.mso

    r303 r325  
    3232end
    3333
    34 Model electrical_basic
    35         ATTRIBUTES
    36         Pallete         = false;
    37         Brief           = "Basic model for electrical devices with one input and one output wire.";
    38        
    39         VARIABLES
    40 in      inlet  as wire;
    41 out     outlet as wire;
    42 end
    4334
    44 Model electrical as electrical_basic
    45         ATTRIBUTES
    46         Pallete         = false;
    47         Brief           = "Basic electrical device";
    48         Info            =
    49         "Model for an electrical device in which the inlet current
    50         is equal to the outlet one
    51         ";     
    52        
    53         EQUATIONS
    54         outlet.i = inlet.i;
    55 end
    56 
    57 Model Resistor as electrical
     35Model Resistor
    5836        ATTRIBUTES
    5937        Pallete         = true;
     
    6341        PARAMETERS
    6442        R as resistance;
     43
     44        VARIABLES
     45in      inlet  as wire (Brief = "Inlet", PosX=0.3831, PosY=0);
     46out     outlet as wire (Brief = "Outlet", PosX=0.3529, PosY=1);
     47
    6548        EQUATIONS
    6649        inlet.V - outlet.V = R * outlet.i;
     50        outlet.i = inlet.i;
    6751end
    6852
    69 Model Capacitor as electrical
     53Model Capacitor
    7054        ATTRIBUTES
    7155        Pallete         = true;
     
    7559        PARAMETERS
    7660        C as capacitance;
     61
    7762        VARIABLES
    7863        q as charge;
     64in      inlet  as wire (Brief = "Inlet", PosX=0.3978, PosY=0);
     65out     outlet as wire (Brief = "Outlet", PosX=0.3965, PosY=1);
     66
    7967        EQUATIONS
    8068        diff(q) = inlet.i;
    8169        inlet.V - outlet.V = (1/C) * q;
     70        outlet.i = inlet.i;
    8271end
    8372
    84 Model Indutor as electrical
     73Model Indutor
    8574        ATTRIBUTES
    8675        Pallete         = true;
     
    9079        PARAMETERS
    9180        L as indutance;
     81
     82        VARIABLES
     83in      inlet  as wire (Brief = "Inlet", PosX=0.4638, PosY=0);
     84out     outlet as wire (Brief = "Outlet", PosX=0.4638, PosY=1);
     85
    9286        EQUATIONS
    9387        inlet.V - outlet.V = L * diff(inlet.i);
     88        outlet.i = inlet.i;
    9489end
    9590
    96 Model Supply as electrical_basic
     91Model Supply
    9792        ATTRIBUTES
    9893        Pallete         = true;
     
    10398        V  as voltage;
    10499        V0 as voltage(Default = 0);
     100
     101        VARIABLES
     102in      inlet  as wire (Brief = "Inlet", PosX=0.3923, PosY=0);
     103out     outlet as wire (Brief = "Outlet", PosX=0.3984, PosY=1);
     104
    105105        EQUATIONS
    106106        outlet.V = V0;
Note: See TracChangeset for help on using the changeset viewer.