#*------------------------------------------------------------------- * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. * * This LIBRARY is free software; you can distribute it and/or modify * it under the therms of the ALSOC FREE LICENSE as available at * http://www.enq.ufrgs.br/alsoc. * * EMSO Copyright (C) 2004 - 2007 ALSOC, original code * from http://www.rps.eng.br Copyright (C) 2002-2004. * All rights reserved. * * EMSO is distributed under the therms of the ALSOC LICENSE as * available at http://www.enq.ufrgs.br/alsoc. * *-------------------------------------------------------------------- * Sample file RC electrical circuit. *-------------------------------------------------------------------- * Author: Paula Bettio Staudt and Rafael de Pelegrini Soares * $Id: sample_electrical.mso 195 2007-03-07 20:30:12Z rafael $ *-------------------------------------------------------------------*# using "electrical/electrical"; FlowSheet RCCircuit DEVICES V as Supply; R as Resistor; C as Capacitor; CONNECTIONS V.outlet to R.inlet; R.outlet to C.inlet; C.outlet to V.inlet; SET V.V = 1.5 * 'V'; R.R = 500 * 'ohm'; C.C = 5e-6 * 'F'; INITIAL C.q = 0 * 'C'; OPTIONS TimeStep = 0.001; TimeEnd = 0.01; end