 Timestamp:
 Dec 8, 2006, 4:37:50 PM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

mso/eml/electrical/electrical.mso
r1 r73 1 #* 2 * This file is property of the author and cannot be used, copyed 3 * or modified without permission. 1 #* 2 * EMSO Model Library (EML) Copyright (C) 2004  2007 ALSOC. 4 3 * 5 * Copyright (C) 2004 the author 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) 20022004. 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 * 17 * Model of eletrical devices: 18 * 19 *  wire: this model holds a current and voltage. 20 * 21 *  electrical_basic: basic model for electrical devices with one 22 * input and one output wire. 23 * 24 *  electrical: model for an electrical device in which the 25 * inlet current is equal to the outlet one. 26 * 27 *  Resistor: electrical resistor 28 * 29 *  Capacitor:electrical capacitor 30 * 31 *  Indutor: electrical indutor 32 * 33 *  Supply: electrical supply 34 * 6 35 * 7 36 * Author: Rafael de Pelegrini Soares … … 12 41 13 42 Model wire 14 #* Model for a electrical wire.15 * This model holds a current and voltage.16 *#17 43 VARIABLES 18 44 i as current(Lower=100); … … 21 47 22 48 Model electrical_basic 23 #* Basic model for electrical devices with one24 * input and one output wire.25 *#26 49 VARIABLES 27 50 in inlet as wire; … … 30 53 31 54 Model electrical as electrical_basic 32 #* Model for an electrical device in which the33 * inlet current is equal to the outlet one.34 *#35 55 EQUATIONS 36 56 outlet.i = inlet.i; … … 38 58 39 59 Model Resistor as electrical 40 #* Electrical resistor *#41 60 PARAMETERS 42 61 R as resistance; … … 46 65 47 66 Model Capacitor as electrical 48 #* Electrical capacitor *#49 67 PARAMETERS 50 68 C as capacitance; … … 57 75 58 76 Model Indutor as electrical 59 #* Electrical indutor *#60 77 PARAMETERS 61 78 L as indutance; … … 65 82 66 83 Model Supply as electrical_basic 67 #* Electrical supply *#68 84 PARAMETERS 69 85 V as voltage;
Note: See TracChangeset
for help on using the changeset viewer.