source: branches/newlanguage/sample/electrical/sample_electrical.mso @ 188

Last change on this file since 188 was 87, checked in by Paula Bettio Staudt, 17 years ago

Updated electrical sample file header

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#*-------------------------------------------------------------------
2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
3*
4* This LIBRARY is free software; you can distribute it and/or modify
5* it under the therms of the ALSOC FREE LICENSE as available at
6* http://www.enq.ufrgs.br/alsoc.
7*
8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
11*
12* EMSO is distributed under the therms of the ALSOC LICENSE as
13* available at http://www.enq.ufrgs.br/alsoc.
14*
15*--------------------------------------------------------------------
16* Sample file RC electrical circuit.
17*--------------------------------------------------------------------
18* Author: Paula Bettio Staudt and Rafael de Pelegrini Soares
19* $Id: sample_electrical.mso 87 2006-12-11 13:16:29Z paula $
20*-------------------------------------------------------------------*#
21
22using "electrical/electrical";
23
24FlowSheet RCCircuit
25        DEVICES
26        V as Supply;
27        R as Resistor;
28        C as Capacitor;
29
30        CONNECTIONS
31        V.outlet to R.inlet;
32        R.outlet to C.inlet;
33        C.outlet to V.inlet;
34
35        SET
36        V.V = 1.5 * "V";
37        R.R = 500 * "ohm";
38        C.C = 5e-6 * "F";
39       
40        INITIAL
41        C.q = 0 * "C";
42       
43        OPTIONS
44        time = [0:0.001:0.01];
45end
Note: See TracBrowser for help on using the repository browser.