source: mso/sample/electrical/sample_electrical.mso @ 1

Last change on this file since 1 was 1, checked in by Rafael de Pelegrini Soares, 16 years ago

Initial import of the library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 855 bytes
Line 
1#*---------------------------------------------------------------------
2* This file is property of the author and cannot be used, copyed
3* or modified without permission.
4*
5* Copyright (C) 2002-2004  the author
6*----------------------------------------------------------------------
7* Author: Paula Bettio Staudt and Rafael de Pelegrini Soares
8* $Id: sample_electrical.mso 1 2006-06-20 17:33:53Z rafael $
9*----------------------------------------------------------------------
10*
11* Sample file RC electrical circuit.
12*
13*
14*-------------------------------------------------------------------*#
15
16using "electrical/electrical";
17
18FlowSheet RCCircuit
19        DEVICES
20        V as Supply;
21        R as Resistor;
22        C as Capacitor;
23
24        CONNECTIONS
25        V.outlet to R.inlet;
26        R.outlet to C.inlet;
27        C.outlet to V.inlet;
28
29        SET
30        V.V = 1.5 * "V";
31        R.R = 500 * "ohm";
32        C.C = 5e-6 * "F";
33       
34        INITIAL
35        C.q = 0 * "C";
36       
37        OPTIONS
38        time = [0:0.001:0.01];
39end
Note: See TracBrowser for help on using the repository browser.