Home
4.2. Installing Microsoft Visual Studio 2003
Contents
1. 17 6 1 MEE 17 6 2 uuu 17 06 2 1 STEP I Cheek that the programis installed ai 17 6 2 2 STEP 2 Install the hardware key software USB driver and network server 17 6 2 3 STEP 3 Insert the hardware key and run 17 7 OVERVIEW OF THE PROGRALMI 19 7 1 SHORT FES 19 7 2 CIRBENTAPPDIGATIONS uu US usan aa 20 7 3 CONCEPTS 21 7 4 WORKING IN ECOSIMPRO 22 7 5 THE SIMULATION LANGUAGE cccccsccsccsccscesceccscescescescscescescscecescescescsscssescescsscscescescescesescescscscessescesceses 23 7 6 LOOK AND FEEL OF AN COMPONENT cscssceccecceccscesceccecesceccesceccscescescescecescsceseecescecescscescescescssescesceseuses 23 7 7 LOOK AND FEEL OF PORT ccccesceccecceccsceccecceccsceccesceccscescscssceseecescescecescescescesescescescscessescesceses 23 7 8 24 7 9 GRAPHICAL USER INTER pel suis n Vos Poi crat Uds 24 SEE eR 24 FD CTI a 27 I OST Ue 27 8 EXAMPLE OF MODELLING AND SIMULATIOLN
2. Fi rrrrTPTTETTTTTTTTTTETTTTTTTTTTTTT ITTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT 10 12 14 074 076 070 00 0 02 004 0 06 0 00 03 THe compressor WR 00 8 ext 1205 out P Congressorg ox T Comeressorg inl 1 05 h 26 ff Comeressorg od 7 turbine g 1 UJUXOD ES hrda g ox P aww 400000 n 200000 T T T T TTTUTTTUTTTUTTTTTTTUTT 0 2 amp 8 10 12 14 16 TME gt Output messages LIME 14 5 Integrabon step 145 A T1ME 14 6 Integration step 146 TIME 14 7 Integration step 147 TIME 14 8 Integration step 148 2 14 01 Vile alie 140 Stakes STOP Experiment turbojet transient exp m The window is divided into several areas Menu area top This provides menus for creating plots tracing variables calculating steady and transient states etc Below the main menu there are three video recorder type buttons Start Pause Stop and Quit the Simulation Page 26 Overview of the program External connections Plotting area large left hand window This contains all the graphs of the simulation Multiple windows can be viewed with one or more plotted variables in each Each of these windows can be copied and pasted into any Office application Word Excel Power Point etc for documentation purposes a Watch area right hand window This displays several variable values Their values are updated during
3. 29 8 1 YOUR FIRST COMPONENT USING SOURCE sete saos 20 8 2 REUSING A COMPONENT CREATED WITH SCHEMATIC csccscecceccsccscesceccsccscescesceccscescscesescescesescesceseesceses 37 9 MORE SIMULATIONS IN THE INSTALLATIONN 41 External connections Introduction Page 3 4 9 1 9 1 1 9 1 2 9 1 3 9 1 4 9 1 5 92 9 2 1 9 3 9 4 95 EXAMPLES IN THE DEFAULT LIB LIBRARY Copying graphs to Word Analyzing results other Office applications I ntroduction LET CRT EORR Loreni OS saca RS EXAMPLES IN THE ELECTRICAL LIBRARY Diode DIVA SE EXAMPLES IN THE CONTROL LIBRARY EXAMPLES IN THE THERMAL LIBRARY EXAMPLES IN THE TURBOJET LIBRARY I nstallation and getting started 1 Introduction 1 1 Summary EcosimPro is a very powerful continuous discrete simulation tool It offers extensive capabilities for modelling and simulation based on more than twenty years engineering experience simulating complex systems The EcosimPro development team is drawn from a diverse range of engineering disciplines simulation object oriented programming and modern user interface design Normally engineers doing simula
4. Partition To simulate a component the user first has to define its associated mathematical model this is called a partition A component may have more than one partition For example if a component has several different boundary conditions depending on the set of variables selected each set of variables produces a different mathematical model or partition The next step is to generate experiments for each partition The partition defines the causality of the final model External connections Overview of the program Page 21 Experiment The experiments performed for each partition of the component are the different simulation cases They may be trivial for calculating a steady state or very complex with many steady and transient states changing multiple variables in the model Library of components All the components are classified by disciplines into libraries 7 4 Working in EcosimPro A EcosimPro component can be built either from scratch or formed from basic predefined components The components are taken either from a system library or are defined by the user Each component contains a mathematical description of the real world component it represents Components have interfaces with each other by means of connection ports Components can be joined together by their ports to form a new component EcosimPro is hierarchical in the sense that models may also have ports and so can be joined to other components to create more com
5. Variable Value Units Category 1 ni 1 08748 EXPLICIT VAC1 v 7 57105e V EXPLICIT Tab 1 Output messages SS a TIME 0 196 Integration step 196 TIME 0 197 Integration step 197 TIME 0 198 Integration step 198 TIME 0 199 Integration step 199 ITIME 0 21 Integration step 200 End of transient 1 Status OK Proc time 1 6615 Jacob 397 Residues 2913 I END OF EXPERIMENT Total steady evaluations OK 0 0 Total transient evaluations OK 1 0 Total processor time 1 801 seconds ca v State STOP Experiment my circuit default exp1 Congratulations You have just completed your first simulation in EcosimPro and without needing to know anything about the EcosimPro Simulation Language EL And most importantly you have relearned the key concepts for preparing simulations using Schematics 8 2 Reusing a component created with Schematic After creating a component with Schematic you may want to reuse it in a new component in other schematics This section explains how We will reuse the previous electric circuit Obviously to reuse the circuit we need to add an external connection port otherwise we cannot connect this complete component to another one External connections Example of modelling and simulation Page 37 From the Electrical palette drag and drop two connection points onto the component They are called Elec ports represe
6. 7 2 Current applications The following table shows the main applications of EcosimPro to the present time Main Applications with EcosimPro A HL MEE SYSTEM SYSTEME ypical Applications Results Technologies Involved cisco NN Control and Life System definition and design Fluids Support Systems i Mission preparation Mass and heat transfer raining Chemical reactors Assessment of the mission hermal Control of Satellites Passive insulation thermal load Cooling loops Liquid fuel rocket engine Mass hydraulic and heat balances Gas fuelling of ionic engines Adjustment and optimisation of controls Mass and heat transfer Feeding fuel and combustibles to Dynamic simulation operating transients Chemical reactors Satellite engines SEA SKIMMER Anti missile Defence e Kinematics and Dynamics System rajectory X X X Warheads Configuration of control Servo control systems Success criteria PROPULSION ENERGY IBERDROLA Energy Balances i Dynamic simulation operating transients Mass and heat transfer Adjustment and optimisation of controls Chemical reactors DEFENCE Page 20 Overview of the program External connections WASTE PROCESSING T cnicas Reunidas Mineral processing Aqueous metallurgy Recovery of heavy metals from liquid effluents WATER TREATMENT _ Bristol Water Abstraction and treatment of water to Chemical reactors otable standards i Coagulation and precipitation Disinfecting and oxidatio
7. inductances etc amp LEVEL 2 Users who create models also known in EcosimPro as components based on existing libraries They do not need to have the extent of knowledge LEVEL 1 users have but they do of course need to know what is under the components In EcosimPro they are the typical users who generate and simulate the schematics that represent the different physical systems For example a user creating an electric circuit based on the ELECTRIC library LEVEL Users who just run simulations from existing models They need only be capable of changing the input data and running the simulations to obtain the results They do not require any special math knowledge they just need background knowledge of the final application For example an operator in a plant needs to know what happens in a scenario if some of the plant parameters change He can run the simulation with the new parameters to obtain the results Page 6 I ntroduction External connections 2 General information 2 1 Ecosimpro web site The EcosimPro web site is http www ecosimpro com 2 2 Manuals All the manuals are usually located in the manuals directory of the installation in PDF format Manuals available are Installation amp Getting Started this one a User Manual It describes the different options in the man machine interface for using the program for instance how to compile run an experiment use the schematics etc a EL Language
8. sin 2 TI ME BOUNDS zet expressions for boundary variables w x siniZ TIME Save this experiment by clicking File and selecting the Save option You can also save it by clicking the Save icon on the Toolbar The final layout should be File Edit View Tools Window x 3 215 i 5 4 l d R Simulation View v Workspace DEMO EXPERIMENT 1 ON equation test default ij CONTROL r E 0 DISCRETE EXAMPLES State variables f DISCRETE LIB ELECTRIC FLIGHT BOUNDS fi GRAVITATIONAL Set expressions for boundary variables v f t Hi GRAVITATIONAL EXAMPLES x sin 2 TIME f HYDRAULIC f HYDRAULIC_EXAMPLES BODY fj MATH REPORT TABLE report ll jj PHYSIOLOGICAL jj PHYSIOLOGICAL EXAMPLES TIME 0 0 THERMAL jj TURBOJET TSTOP 15 fj TURBOJET EXAMPLES CINT 0 1 INTEG END EXPERIMENT M aircraftGear default M bouncingBall default M circuit default M equation default M equation test default Output messages Find in Files M freezer default default particle default pendulum default waveFunctions default whenExample default zoneExample default 6 6 61 BEI REI RED REI Ln 9 Col 17 Page 32 Example of modelling and simulation External connections Tab 1 Watch v
9. 3 SUPPORT AND CONSULTING SER VICES u uuu uy ua 7 24 REP iO ATRO i RR 219 USERGROUPS OP ECOSIMPRO 2 2 8 3 INSTALLATION PROCEDURRE 9 3 1 MINIMUM HARDWARE REQUIREMENTS 9 3225 SOEPWARETPEODIBENIBNTS suu MIEL MM 9 3 3 STEPS 9 4 INSTALLING THE C COMPILER 11 4 1 INSTALLING MICROSOFT VISUAL 11 4 2 INSTALLING MICROSOFT VISUAL STUDIO 2003 11 4 3 INSTALLING MICROSOFT VISUAL STUDIO 2008 cccsccscoscecceccscescsceccscesccceccecescescescecescescuscecescescesceces 11 4 4 ENVIRONMENT VARIABLES csccscoscecceccsccscecceccscescescescscescescscecescescescsscssescescsscscescescescssescescscssessescesceces 11 LE PER 12 Du Visal 2003 12 AAD 13 4 4 4 Gcc 4 4 WINCOWS 0 cc 13 5 INSTALLING THE PROGRALMI 15 INSTALLING THE PROTECTION BASED ON HARDWARE KEY S
10. It is a reference manual for the simulation language used in the software a Mathematical Algorithms and Simulation Guide It describes the mathematical operations done by the program to sort the equations and also the examples of the libraries coming with the installation e External Connections Manual It describes the different ways to connect the models generated with the tool from other programs It is recommended that user first follow the guide to Installation amp Getting Started and create the examples and then take a look at the User Manual 2 3 Support and Consulting Services EA Internacional offers several other services in addition to this product Modelling support This service has been set up to help users to optimise their models to use the appropriate techniques in each case to study non convergence errors in models etc EA engineers have many years of experience in modelling complex systems enabling them to assist users with less experience and thus reduce costs and optimise their resources Contact us for more information at info ecosimpro com Courses The standard course lasts for three days but they can be adjusted to the specific needs of each company They can also be directed towards a particular discipline Many of the courses offered mainly those in universities are free and anybody can attend Take a look at our web site for additional information System modelling and simulation service
11. basic components to create more sophisticated ones create an icon for them and then reuse the new icon as if it were a simple component This concept is very powerful and allows you to create complex simulations from simple basic components The same principles applied here to electric circuits can be applied to any other discipline fluid chemical propulsion etc 8 2 1 1 The bouncing ball example In this example we will model a rubber ball which dropped from a certain height bounces successively on the ground until it stops It is assumed that the ball accelerates at the speed of gravity as it falls Each time it bounces it loses 20 of its speed It must take into account when the simulation has to be stopped This will be when the ball no longer bounces on the ground We are crossing into the numeric world and must tread carefully so we need to allow a certain margin of error This can be modelled writing an event into the equation that if the height is less than a certain tolerance a message is generated and the simulation stops TSTOP TIME The final model in EL is as follows COMPONENT bouncingBall DATA REAL 4 9 806 gravity m s 2 REAL 0 8 restitution coefficient DECLS REAL h 10 height m DISCRETE event when bouncing on the ground WHEN h lt O THEN h k h END WHEN event to detect stopping the simulation External connections Example of modelling and simulation Pag
12. burner g out T 1634 04 gt lt Experiment turbojet transient expl The results are displayed when the fuel flow is varied and the pressures in the outlets of the most important elements are as illustrated in External connections More simulations in the installation Page 51 EA Internacional Magallanes 3 28015 Madrid SPAIN E mail infoeecosimpro com Web www ecosimpro com EP A Guns AE AE EMPRESARIOS AGRUPADOS 1992 2010 EA Internacional All rights reserved
13. connections BODY REPORT TABLE reportAll TIME O TSTOP 15 CINT 0 1 INTEG END EXPERIMENT The result is illustrated in the figure below and it shows how the evolution of y is cut when it reaches the limits 0 8 0 5 0 4 Ta 0 2 0 4 0 TIME 9 1 5 Lorentz equations Lorentz system of equations is a nonlinear differential system of equations The solution is always rounding two space points never reaching them These two points are the steady solutions of the system and it is easy to obtain them Nb r 1 Nb r 1 r 1 B Nb r 1 Nb r 1 r 1 The Lorentz equations were discovered by Ed Lorentz in 1963 as a very simplified model of convection rolls in the upper atmosphere These same equations later appeared in studies of lasers and batteries and in a simple chaotic waterwheel that can be easily built Lorentz found that for certain settings the trajectories of this system never settle down to a fixed point never approach a stable limit cycle and yet never diverge to infinity What Lorentz discovered was at the time unheard of in the mathematical community and was largely ignored for many years Now this beautiful attractor is the most well known strange attractor that chaos has to offer A simple physical model of the Lorentz equations at work is a leaky waterwheel A waterwheel built from paper cups with equal sized holes in the bottom of each cup is allowed to turn freely u
14. program will not run External connections Installing the protection based on Hardware Keys Page 17 This page intentionally left blank Page 18 I nstalling the protection based on Hardware Keys External connections 7 Overview of the program 7 1 Short history The name EcosimPro name has been changed in Version 3 0 before it was known as Ecosim Due to some commercial issues EA Internacional decided to change the name to EcosimPro Here is a brief history of EcosimPro s evolution Ecosim 1 0 1994 The development of this version began in 1989 within the framework of a contract with the European Space Agency ESA under the Spanish Space Programme for the development of a European tool to simulate environmental control and life support systems on manned spacecraft EcosimPro 1 0 ran under UNIX in 1993 Ecosim 2 0 1996 The setback in the European manned space programmes and the general approach adopted in the development of Ecosim gave rise to the improvement and subsequent extension of the tool to other types of applications up to the time EcosimPro 2 0 emerged in 1996 running under UNIX This version has been used in important companies not only in the space industry DORNIER and DASA of Germany SNECMA SEP and CEA of France ALENIA of Italy TECHSPACE AERO of Belgium and VOLVO of Sweden but also in the development of numerous applications in other sectors energy IBERDROLA and airports AENA EcosimPro version 3 0 2
15. 0 TURBOJET Mach 0 burner AL 2 5 burner PQ 0 96 compressor DN 0 compressor EPD 0 92 compressor PCNR 92 compressor g out P 28 5 compressor beta 0 7 turbofan design M expl turbofan transient M turbofan_mixer design turbofan_mixer transient M turbofan_mixer_afterburner design M turbofan_mixer_afterburner transient turbojet design M turbojet prediction turbojet transient M turbojet_afterburner design M turbojet_afterburner transient Output messages Output Experiment Find in Files 8 The user can create components libraries mathematical models experiments etc and also run simulations without graphical plots Simulations with graphical output are run in the Experiment Monitor see the next section 7 9 1 1 Experiments Monitor This is used to run simulations with graphical output It is launched from the EcosimPro Main Window in Simulation View After creating an experiment right click on the experiment name in the explorer area and select the option Simulate in Monitor then the Experiments Monitor is displayed It looks like this IMieaaasmkamuwsi M y m Tb 1 2 Watch variables Tl D eS 15 15 compressur Wes Venable Value 2t artt
16. 0 THERMAL i TURBOJET 0 TURBOJET EXAMPLES Elite E li 4B Dutput messages Output Experiment Find in Files AfterBurner Burner Compressor Schematic is older than its compiled item Its items connections and attributes will be updated Fan Force Fuel m j Fuelmeter FuelT ank FuelValve ES I dt aL _ SHR Bea ARE FSP a 7 9 3 Object Editors EcosimPro provides visual editors to enter the object properties Double clicking an object displays a window for editing the object The figure below shows an example External connections Overview of the program Page 27 Library TURBOJET Name Show label Description REAL 1 kg m 2 Inertial moment kaqri 2 HEAL 10000 rpm Design rotational speed rpm CG1 REAL 1 Correction coefficient corrected mass flow HEAL 1 Correction coefficient Far efficiency L4 HEAL 1 Correction coefficient For compression work F1 TABLE 20 J kg K vs adime Compression work K vs adimensional speed FA TABLE 20 adimensiona Efficiency vs adimensional speed and beta param F3 TABLE 20 kg s vs adimensi mass flow 607 vs adimensional speed a The object editor accepts different data types REAL INTEGER ENUMERATION BOOLEAN and tables 1D 2D and 3D These editors
17. 000 Based on experience gained during the development and application of the tool EA International was able to assess its feasibility and make the decision to make it completely commercial and generally applicable to industrial simulation A complete redesign was carried out using an object oriented approach and to produce a robust modelling software package The design targeted a PC with Windows because of the wide market and current power of INTEL based machines Its characteristics were compared in detail with other reputable tools and a goal was set to carry out a series of improvements that basically focused on a A language for simulation and experiments that should be as simple and robust as possible a The algorithms for arranging and resolving systems of differential algebraic equations handling discontinuities and encompassing state of the art technology a The user graphics interface that should be constructed as far as possible with commercial tools eg Microsoft to cover a very wide environment Windows NT 95 and 98 and that should also be powerful for solving very complex modelling problems involving hundreds of equations This version was also subjected to a comprehensive test campaign in different areas of application that culminated in the first commercial version at the end of 1999 The test campaign included but was not limited to the following a European ESPRIT project with the application of EcosimPro 3 0 in
18. 1 Derivative filter parameter DECLS REAL yf Filtered variable yf yb alpha Td v k beta r y Td yf vi END COMPONENT This component models a typical PID controller It shows how inheritance allows much of the code to be reused from the parent components Each new component defines its own data variables and equations 7 7 Look and feel of an Port Type EL allows the modeller to create very powerful connection port types by including intelligent behaviour For instance that the behaviour of a variable in a multiple connection must follow the rule of equality in all the connections EQUAL flag or that the addition of all the variables must be equal to zero SUM flag The modeller can then insert equations manually without worrying about multiple connections as the tool handles it automatically The example below shows an electrical port with two variables current and voltage The first is SUM and the second EQUAL behaviour External connections Overview of the program Page 23 PORT Elec SUM REAL c current EQUAL REAL v voltage Volts END PORT 7 8 Libraries Everything will be inserted into a library Usually the libraries are classified by discipline such as Electrical Control Fluid etc The program is supplied with a set of standard libraries and others can be purchased separately The figure below shows a typical configuration of libraries There is a workspace containing several libraries such as CON
19. External connections General information Page 7 EA will undertake to carry out simulation projects that are tailor made to the needs of our clients In such cases EA will create the system to be simulated Contact us for more information at info ecosimpro com 2 4 Reporting a problem If you encounter an error in the software please contact by e mail with bugs ecosimpro com asking for an account for reporting errors or enhancements The URL of the Software problem report system is http sprs ecosimpro com 2 5 User groups of Ecosimpro There are two mailing lists for EcosimPro users to share their experiences using EcosimPro The goals of this group are to Share experiences using EcosimPro Solve problems Get advice about modelling techniques in EcosimPro Language EL Get the latest news about releases bugs found etc Both can be found in http groups yahoo com ecosim group The language of this list is English Group Web http groups yahoo com group ecosim group Group Email Addresses Post message ecosim group yahoogroups com Subscribe ecosim group subscribe yahoogroups com Unsubscribe ecosim group unsubscribe yahoogroups com List owner ecosim group owner yahoogroups com ecosim group esp The language of this list is Spanish Group Web http groups yahoo com group ecosim group esp Group Email Addresses Post message ecosim group esp 9 yahoogroups com Subscribe ecosim group
20. TATIONAL EXAMPLES HYDRAULIC 0 HYDRAULIC EXAMPLES MATH PHYSIOLOGICAL 0 PHYSIOLOGICAL EXAMPLES PORTS LIB THERMAL TURBOJET trime ker TURBOJET_EXAMPLES lt m Symbols Schematics Partitions Experiments amp sheni comp AfterBurne Burner Compresso compressor Force Fuel lt i CO j Output messages Output Experiment Find in Files Fuelmeter FuelTank FuelValve A Til Lata The following will be displayed in the Simulation View of the Workspace area Experiments experiments associated with the models generated External connections Overview of the program Page 25 Edit View Tools Window Help SW m 2809 has Simulation View L Z 04 1 Workspace DEMO EXPERIMENT expi ON turbofan design fj CONTROL DECLS f DEFAULT LIB INTEGER i ff DISCRETE EXAMPLES 0 DISCRETE LIB INIT f ELECTRIC FLIGHT SIM 0 GRAVITATIONAL GRAVITATIONAL EXAMPLES 0 HYDRAULIC HYDRAULIC EXAMPLES 0 MATH PHYSIOLOGICAL PHYSIOLOGICAL EXAMPLES 0 THERMAL Dynamic variables compressor N 12000 fan N 4000 Algebraic variables spliti g in T 500 hp turbine g 11 1 25 nozzle sec g in T 500 fj TURBOJET i TURBOJET EXAMPLES BOUNDS TURBOJET Altitude
21. TROL ELECTRI CAL etc Each library contains different items such as components port types and functions 7 9 Graphical user interface 7 9 1 Main window The tool provides a very powerful Man Machine interface for building new components This window is shown below There are three types of views that display suitable library components that the user may want to create or view Code View generate schematics Schematic View or simulation experiments Simulation View Each view has common areas namely Editing area the right hand area contains the editing windows Each window is associated with a file that can contain one or more components ports functions etc Workspace area the left hand side provides tabs for different views of the library Message windows the bottom area provides three different windows that display messages from the system general messages output tab messages associated to the simulation and the experiment experiment tab and search messages find in files tab Selection of the view required will activate the components necessary for the work The following will be displayed in the Code View of the Workspace area Files items partitions and experiment for EL files items partitions and experiments associated with the library Page 24 Overview of the program External connections View Tools Window Help 2388 A A lli gt a TENE DEMO L
22. Visual Studio C Program Files Microsoft Visual Studio INCLUDE C Program Files Microsoft Visual Studio C Program Files Microsoft Visual Studio C Program Files Microsoft Visual Studio LIB C Program Files Microsoft Visual Studio C Program Files Microsoft Visual Studio C Program Files Microsoft Visual Studio Page 12 2003 Common 7 I DE 2003 Vc7 bin NET 2003 SDK v1 1 bin NET 2003 Vc7 PlatformSDK bin 2003 Vc7 include 2003 SDK v1 1 include 2003 Vc7 PlatformSDK Include 2003 Vc7 lib NET 2003 SDK v1 1 Lib 2003 Vc7 PlatformSDK Lib Installing the C compiler External connections External connections 4 4 3 Microsoft Visual Studio 2008 PATH C Program Files Microsoft Visual Studio 9 01Common7MDE C Program Files Microsoft Visual Studio 9 0 VC bin INCLUDE C Program Files Microsoft Visual Studio 9 0 VC include LIB C Program Files Microsoft Visual Studio 9 0 VC lib C Program Files Microsoft SDKs Windows v6 0A lib 4 4 4 Gcc 4 4 on Windows PATH C Program Files gcc mingw_gcc_4 4 MinGW bin Program Files gcc mingw_gcc_4 4 msys 1 0 bin Installing the C compiler Page 13 This page intentionally left blank Page 14 Installing the C compiler External connections 5 Installing the program When the installer is executed the program is installed into a given folder in the hard disk of the computer The install
23. allow the user to modify the attributes of an object instance in an intuitive way The example in the figure below shows the 2D table editor for an attribute of a component File Edit Axis Description vs adimensional speed 0 274445 0 2821 0 29828 0 300624 0 394562 0 419562 0 453043 0 444121 0 432107 0 475000 0 456047 0 517361 0 549752 0 577993 0 603177 0 615194 Rows 100 Cols 100 1 Number of 98 I 8 0 6 0 4 ai ii rn n Ta The user can dynamically modify the values of the table and the graph is updated automatically The graph rotated in any direction Page 28 Overview of the program External connections 8 Example of modelling and simulation In this section you will learn how to use EcosimPro to create a simple component create an experiment for it and run the experiment All the examples given here can be found in the library DEFAULT LIB First of all open EcosimPro s Main Window by launching the EcosimPro exe file It can also be executed from the Start menu in Programs EcosimPro EcosimPro It is a good idea to create a shortcut to this file on your Windows desktop to avoid searching for it every time Select the file in Windows Explorer and drag it onto the desktop A new icon should appear like this Now you can start EcosimPro just by double clicki
24. amp turbofan mixer E turbofan mixer afterburner li turbojet i burner E turbojet afterburner J li sh_end_comp sh_end_tur compressor turbine lt Output messages Output Experiment Find in Files Sa Sea AS Wah Bass TURBOJET EXAMPLES turbojet Zoom 77 903 672 For these components three different partitions have been defined one for design called Design and used for steady state studies of this model Prediction for multiple steady states and finally Transient to study a transient state There is not much room for detail in this brief explanation but many physical problems are modelled here To run this model we suggest the user runs the Transient partition experiment The following results are obtained Page 50 More simulations in the installation External connections File Edit Help d E 2 Tab 1 0 74 0 76 0 78 0 8 0 82 0 84 0 86 0 88 0 9 compressor VR Output messages END OF EXPERIMENT Total steady calls OK 1 Total transient calls OF 1 Total processor time 2 391 seconds State STOP 1 2e 06 1 06 800000 g 600000 400000 200000 i burner g_out T compressor compressor g_out F turbine g_out P 3 watch variables 15 Initial Inputs Variable Value Units TURBOQJET Altitude 0 m burner GLF 0 0028 s kg
25. ariables Basically this experiment integrates the model from 0 to 15 seconds with a communications interval of 0 1 seconds It also generates a text file report called reportAIl containing all the variable values during the simulation Simulate the experiment right click expl within equation test default in the Workspace and select the option Simulate in Monitor The experiment will compile automatically and display an error message if the code is not written correctly It will then simulate the experiment EcosimPro automatically generates an executable simulation file The Experiments Monitor window opens Add a new plot with the variables x and y by clicking the icon New plot on the Toolbar then highlight the variables x and y and click OK Name Plot 2 qu TT sss Model variables Internal variables Filter Sel Units Initial Yalue Current Value Type Category Alias tau 5 0 6 0 6 REAL DATUM x 0 0 REAL BOUNDARY Oy 0 0 REAL DYNAMIC FI y 0 0 REAL DERIVATIVE Filtered 4 Total 4 Check selection Uncheck selection Show hidden variables TIME Variable Calculations C Show secondary axis A axis variable lt lt Select Add a new watch display for the variables x and y Right click on the watch area select Edit watch from the context menu select the variables x and y and click OK Select Play from the Toolbar We ca
26. ary as in previous examples COMPONENT Lorentz DATA REAL alfa 10 REAL b 8 3 REAL r 28 DECLS REAL yl 0 REAL 2 1 REAL y3 O0 CONTINUOUS yl alfa y2 yl y2 r yl y2 yl y3 y3 yl y2 b y3 END COMPONENT The following graphic shows the evolution of the solution in the XZ plane but similar graphics could be obtained in other planes Page 46 More simulations in the installation External connections 9 2 Examples the ELECTRI CAL library The software includes an Electrical library with components such as capacitors resistors diodes thyristors etc The user can examine the source code of that library by selecting the tab Library and then deploying the ELECTRICAL library To examine the source code of this library under the tab Work Files select ELECTRICAL library Some files appear like ELEC CompBasic el ELEC Compldeal el etc The user can double click any of these files to view them All the components appear with their math formulations using EL language 9 2 1 Diode bridge example The user can run some experiments for this library They are located in the ELECTRICAL EXAMPLES library which is used to create experiments for the ELECTRICAL library Select Schematic View from the drop down menu on the Toolbar then File Open Schematic or click the Open button on the Toolbar select the library ELECTRICAL EXAMPLES the schematic Amplifier and click OK Since all the interme
27. as Turbine Energy Propulsion Control etc The EcosimPro main window providing a user friendly environment for creating new components using the EcosimPro Simulation Language EL Page 22 Overview of the program External connections The schematic tool This is a tool designed by EA International for drawing a schematic simulation model which can then be compiled as an EcosimPro component a A graphical experiment monitor to run simulations and plot graphs of variables 7 5 The Simulation Language The simulation language EL language has a rich set of language features for expressing both models and experiments The language provides sequential statements similar to FORTRAN C etc as well as continuous and discrete statements for modelling physical behaviour The program compiler checks the lexical syntactical and semantic correctness of any new component If the compiler detects an error it reports the problem with the line number and gives an explanation for the error EL provides capabilities for defining components connection ports functions enumeration types etc The final simulation model is translated into native code for use in other software modules to run the simulations programmatically 7 6 Look and feel of an component The figure below illustrates the look and feel of an component modelled in EL language COMPONENT Cntrl pid 15 Cntrl pi DATA ATA annl an ordenava n REAL alpha 0
28. bottom of the Workspace click expl and select the option Simulate This experiment takes the form of a transient case from 0 to 200 seconds with a communications interval of 1 second It generates a report called reportAll containing all the simulation results If you select the option Simulate in Monitor you should get the following result External connections More simulations in the installation Page 41 0 50 100 150 200 TIME 9 1 2 Copying graphs to Word After running a simulation it is straightforward to copy and paste graphs from the simulation monitor to Office applications such as Microsoft Word Simply proceed as follows On the Simulation Monitor select the graph to be copied using the mouse Select the option Edit gt Copy from the menu This can also be done from the contextual menu by right clicking the graph and selecting the option Copy In your Office application e g Word select paste Using the mouse enlarge the small icon to the desired size 9 1 3 Analyzing results in other Office applications The user can easily visualize the simulation results by using standard applications like Excel amp To do this you should use the report file generated when the simulation was run In the last example the file was called reportAll Simply proceed as follows e In Simulation View right click the experiment name amp Select the option View Reports Page 42 More simulations in the installation Externa
29. c j 2 di L AZ gt k 4 4 1 J t 5 1 1 Installation amp Getting Started Guide Version 4 8 P1 1 Cntrl P1 2 Source liquid Flow_liquid Source gas 1 Source gas 2 Flow gas 2 FreeConve FreeConve FreeConve Boiler Column Compressor 8 GL mat Dryer Evaporator Flash 9 Im Heater HeatFlowM Insulation Flow gas Flow liquid Flow steam Ia E e cg Peltier Periodic St Heat Exch Heat ExchangeHeat Exchange 16 4 a IQ um em ge Q sensor Radiator Heat Exchange Mix ga Mix liquid W 2 2 5 o TD GL T sensor port steam Pump liquid Reactor AA 3 AE EMPRESARIOS AGRUPADOS O 1992 2010 EA Internacional All rights reserved i This page intentionally left blank I nstallation and getting started CONTENTS 1 INIRODUCTIUN rrrrK 5 1 1 IUS a 2 5 AIS CI uuu 5 2 GENERALINFORMATIONN 7 2 1 ECOSIMPRO WEB SITE 7 Zu hub qai rE 7 2
30. ct and you can continue 4 4 Environment variables The programming language compiler must be installed BEFORE installing the program External connections Installing the compiler Page 11 Additionally when someone uses compiler it is necessary to set previously a set of values related with some locations required by the compiler This is usually done by modifying the Operating System OS environment variables named PATH LIB and INCLUDE The environment variables PATH LIB and INCLUDE are edited in the menu Edit Options so it is not necessary anymore to set any environment variable externally The variables for each compiler are listed in the following section For more information see User Manual 4 4 1 Microsoft Visual 6 0 INCLUDE C Program Files Microsoft Visual Studio VC98VatlNinclude C Program Files Microsoft Visual Studio 98 C Program Files Microsoft Visual Studio VC98Vinclude LIB C Program Files Microsoft Visual Studio VC98 mfc lib C Program Files Microsoft Visual Studio VC98 lib PATH C Program Files Microsoft Visual Studio Common Tools WinNT C Program Files Microsoft Visual Studio Common MSDev98 Bin C Program Files Microsoft Visual Studio Common Tools C Program Files Microsoft Visual Studio VC98 bin 4 4 2 Microsoft Visual Studio 2003 PATH C Program Files Microsoft Visual Studio C Program Files Microsoft Visual Studio C Program Files Microsoft
31. del represents a control system which receives the transfer functions as shown in the following figure Page 48 More simulations in the installation External connections s dau 5 285 160 Process In Simulation View select the partition linearSystem default and run the simulation on the Experiment Monitor This experiment creates a plot with two variables comparator s in l signal and process plant s out signal The second variable should follow the first and the result obtained is as follows 12 I i I 5 0 2 comparator s in 1 signal process plant s out signal m ho 0 5 10 15 20 TIME The figure shows the frequency signal to be followed by a series of pulses and the process output 9 4 Examples in the THERMAL library This is another library included in the tool You can navigate through the components and source files as before Typical thermal components such as conductors diffusive thermal nodes etc are defined It is possible to run an experiment from the THERMAL EXAMPLES library following the same steps indicate above for example the Wall 3 model This model contains three walls The external layers are made of GFC material and the inner one of aluminium The associated experiments can be run and the temperature evolution on each layer can be seen Tab 1 Watch variables Initial Inputs View layer3 ip o
32. diate steps have already been carried out for this example we can directly run a simulation for this circuit Go to Simulation View select the library ELECTRICAL EXAMPLES in the Workspace and open the tree Amplifier default External connections More simulations in the installation Page 47 B Amplifier default expl EH Iv CommanEmitterAmplifier default 8 P ideal amp defaulk Right click on the experiment name 1 and select the option Simulate in Monitor Click Start simulation in the Monitor window The result is as follows Tab 1 Watch variables 6 Ra v Initial Inputs View Variable Value Units voltage s_in n il RF R 400 Ohm 2 A G 1000000 V source state off FALSE 4 12 3 07706152 0 1 ho 1 EN m lv In this example you can see the voltage evolutions and how the amplifier works 9 3 Examples the CONTROL library You can navigate in the CONTROL library in the same way as in the ELECTRICAL library Typical controls such as P PI PID etc are modelled in EL Any CONTROL experiment from the CONTROL EXAMPLES library can be run For instance you can run the experiment prepared for the linearSystem component The schematic of this component is as follows obtained following the same steps as before T comparator amplifier cornpensator 1 process plant This mo
33. e install the following program that can be found in the installation files with the complete option in each machine in which you have installed the program SentinelHK1 0 2 Sentinel Keys Protection Installer English SETUP EXE If you have purchased a floating license edition install the program below also in the machine in which you want to plug the network USB hardware key This machine may be the same in which you installed the simulation tool 6 2 3 STEP 3 Insert the hardware key and run it If you are using a standalone license insert USB key in your machine USB port and run the simulation tool If you are using a floating license insert hardware key in the USB port of the machine that you want to act as network server Then run the simulation tool in each machine this last case you can speed up the connection with the network server using the following file SentinelHK1 0 2 sntlconfig xml This file must be copied in the program installation directory inside bin folder and it has to be modified with the IP direction of the machine that is wanted to be network server The semantics of the file is as follows if the sntlconfig xml file is not present in bin folder the hardware key driver will perform a broadcast over the local network but if it is present the IP inside the file will be used to connect with network server directly Please take into account that if the file is present but is bad configured the
34. e 39 WHEN h lt 0 003 THEN PRINT of simulation TSTOP TIME END WHEN CONTINUOUS h g END COMPONENT We can insert this text into an EL file as explained in the previous chapter and generate a default partition and an experiment We run the following experiment in the Experiments Monitor from 0 to 15 seconds with a communications interval of 0 1 seconds EXPERIMENT exp1 ON bouncingBall default INIT Dynamic variables h 10 h 0 BODY REPORT TABLE reportAll RDIGITS 8 TSTOP 15 CINT 0 1 INTEG END EXPERIMENT We then plot the variable h which should be something similar to the following 2 TIME Tab 1 l Watch variables 12 8764 10 h Initial Inputs View Variable Value Units Category g 9 80665 m s 2 DATLIM EE 0 003000 DYNAMIC 0 8 DATLIM B E 4 We see that at time 12 8764 the ball doesn t bounce any more and the simulation is automatically stopped Page 40 Example of modelling and simulation External connections 9 More simulations the installation The default installation of the program includes several examples of libraries and experiments This chapter gives an introduction to some examples The intention here is not to provide a detailed understanding of the models but to permit the user to appreciate the power of this program for modelling both simple and complex phys
35. e connection to pass up to the destination gate where you end with one final click confirm that the cursor is really on top of a gate when you move it over one with the connector option selected a box pops up with an anchor and a tag showing the name of the gate niELECTRIC Elec IM all the connections as shown below R1 lower port is connected to both G1 and Don t worry if the lines are not very straight you will have time later to improve your skill with Schematics Now as an example of how to customize the components attributes we will change the capacitance of C1 to 0 00005 Farads and the resistance from R1 to 5500 Ohms To change any of these attributes double click on the corresponding symbol to open the Attributes Editor For the Resistance it looks like this Library ELECTRIC Mame R1 Show label Description R REAL 1000 Ohm Resistance at reference temperature Ohm TR HEAL 300 K Resistor temperature K TRI REAL 0 DUhm K Linear temperature coefficient D hm F TRAZ REAL 0 hm 272 Quadratic temperature coefficient D hm E 2 Change the value of to the new value and click OK the row changes colour because the new value differs from the default one for R Do the same with the Capacitor This circuit will be a new EcosimPro component To compile it in EcosimPro select the Library Toolbar and click P EcosimPro then aut
36. er suggests a default folder for installing the program Follow these steps Put the CD in the drive bay only if you have a CD based installation Run the program executable file exe Type the serial number in serial entry field Install the program in the directory of your choice a default directory is suggested Restart the system The main executable is located in the directory installation bin Create a shortcut to this program on your desktop You can then start the program by double clicking on the icon External connections Installing the program Page 15 This page intentionally left blank Page 16 I nstalling the program External connections 6 Installing the protection based on Hardware Keys In this chapter is described how to install both USB driver and network server for the hardware keys In addition it is provided SecureUpdate a program that is used for updating license information 6 1 Warning The hardware key software USB driver and network server works in Microsoft Windows Networks Hardware Key must be inserted in USB port after installing hardware key software and installing the program 6 2 Installation steps 6 2 1 STEP 1 Check that the program is installed Install the program on each machine in which you want to use it following the instructions in this manual 6 2 2 STEP 2 Install the hardware key software USB driver and network server If you have purchased a standalone licens
37. esp subscribe Q yahoogroups com Unsubscribe ecosim group esp unsubscribe Q yahoogroups com List owner ecosim group esp owner yahoogroups com Page 8 General information External connections 3 Installation Procedure 3 1 Minimum hardware requirements PC running Windows 2000 Windows XP or Windows Vista Pentium 1 133 MHz 128 MB of RAM memory 310 MB free disk space 3 2 Software requirements This program needs to invoke a programming language compiler at run time For this version the compatible versions are the following Microsoft Visual 6 0 Microsoft Visual Studio 2003 Microsoft Visual Studio 2008 Gcc 4 4 on Windows Additionally and depending on the type of license purchased it may be necessary to install the software necessary to manage the licenses 3 3 Steps to install the program To install the program correctly follow these steps Install one programming language compiler CHAPTER 4 Install the program CHAPTER 5 Optionally depending on the type of license purchased External connections Install the Software for licensing based on Hardware Keys CHAPTER 6 Install the Software for licensing based on Software License CHAPTER 7 Installation Procedure Page 9 This page intentionally left blank Page 10 Installation Procedure External connections 4 Installing the C compiler 4 1 Installing Microsoft Visual C 6 0 The required version is the minimum configurati
38. every communications interval The current simulation time is shown at the top Message area bottom simulation events are logged in this window It enables you to follow up a simulation trace all the integration steps and handle events 7 9 2 Schematics In EcosimPro all components can be created using EL even if they have very complex topology But EcosimPro makes it easier to create complex and simple components graphically without having to learn the details of EL in Schematic View The example of creating a component given in this manual shows you the most important concepts for any other application The following figure shows a component that has been created graphically On the left hand side of the window is the palette of available components one icon for each component The user drags and drops components from the palette onto the canvas and then connects them and sets the attributes of every instance of the object Finally selecting the option Compile it creates a new component in EcosimPro This component is then simulated in the normal way as if it had been created using the EcosimPro language EL amp File Edit view Tools Window Help cc uoi 209 Workspace DEMO CONTROL 0 DEFAULT_LIB 0 DISCRETE EXAMPLES 0 DISCRETE LiB 0 ELECTRIC 00 FLIGHT SIM GRAVITATIONAL 0 GRAVITATIONAL EXAMPLES 0 HYDRAULIC fi HYDRAULIC EXAMPLES 0 MATH fi PHYSIOLOGICAL 0 PHYSIOLOGICAL_EXAMPLES
39. ibrary e CONTROL DEFAULT LIB ENUM Chemicals H C 5 O2 Ar CO2 H20v 502 Chemical elements fj DISCRETE EXAMPLES DISCRETE LIB ELECTRICAL FLIGHT 51 GRAVITATIONAL fj GRAVITATIONAL EXAMPLES HYDRAULIC fj HYDRAULIC ExAMPLES MATH PHYSIOLOGICAL ENUM PressLossMode FromData FromTable Data pressure loss modes fi PHYSIOLOGICAL EXAMPLES PORTS LIB lt iii Set of enumeratives m Files Items Partitions Experiments TURB Common el TURB CompBasic el A 5 e TURB Funcs el SET OF Chemicals GasComp 2 02 Ar CO2 H20v 502 Chemical elements for gas flow TURB Ports el 2 version el SET OF Chemicals FuelComp H C S Chemical elements for fuel flow Global constants CONST REAL g 9 806 Gravity acceleration m s 2 lt Output messages Output Experiment Find in Files Ln 1 Col 1 The following will be displayed in the Schematics View of the Workspace area Symbols associated with the library components schematics partitions and experiments File Edit view Tools Window l gt 4 1 2 Schematic View v Doe amp EQ JA 38 Q Qd Q Q 49 Bh apa Workspace DEMO K p Ej Tri T Library FLIGHT SIM Q GRAVITATIONAL fj GRAVI
40. ical and chemical problems 9 1 Examples in the DEFAULT LIB library The default library contains miscellaneous examples Some of them are the following 9 1 1 WHEN example This is an example concerning the use of discrete events using WHEN statements and delayed assignments Basically our intention is to maintain a temperature within certain minimum and maximum limits The component we create is COMPONENT whenExample DATA 20 50 REAL Tmin REAL Tmax DECLS BOOLEAN HeaterON DISCR REAL HeaterPower REAL T 10 DISCRETE WHEN T Tmin THEN HeaterON TRUE HeaterPower 50 AFTER 4 END WHEN WHEN T Tmax THEN HeaterON FALSE HeaterPower 0 CONTINUOUS T 20 1 HeaterPower 10 END COMPONENT The continuous part of this model merely introduces a dynamic law for the temperature based on the heater power Two discrete events are introduced into the discrete part The first is when the temperature falls below the limit Tmin At this moment we connect the heater and we assign it a power but this power is delayed for 4 seconds This creates a time event at current time plus 4 seconds The second discrete event models the opposite behaviour When the temperature rises above the Tmax value we disconnect the power to the heater To execute the default experiment select Simulation View from the drop down menu on the Toolbar select the library DEFAULT LIB click in whenExample default at the
41. ill need to use the library DEFAULT LIB and must check that it is open in the Workspace A list of open libraries is displayed at the top of the Workspace which is on the left hand side of the screen If the library is not displayed go to File gt Open gt Library and select the library DEFAULT LIB From EcosimPro s Main Window select File New Source File This will open a dialogue box where we key in the name of the new code file and select the library with which we wish to associate it Type in the name equation test and select the library DEFAULT LIB from the list A new window will open in the top left hand part of the screen Library DEFALILT LIB 2 The component to be simulated EL is like this COMPONENT equation test DATA REAL tau 0 6 delay time seconds DECLS REAL x y CONTINUOUS y x y tau END COMPONENT e Insert the code COMPONENT equation test DATA REAL tau 0 6 delay time seconds DECLS REAL X CONTINUOUS x Z tau EMD COMPONENT Compile this file by selecting the library DEFAULT LIB in the top of the Workspace and under the Files tab at the bottom of the Workspace right click on the file name equation test el and select Compile Page 30 Example of modelling and simulation External connections Files Items Partitions Experiments aircraftear el bouncingBall el circuit el equation el freezer el lorentz el particle pend
42. is default and click OK This generates a default mathematical model for this component Right click in the new partition and select the option Validate This checks that the partition we have created is correct and we can create experiments for it Files Items Partitions Experiments bouncingBall circuit Freezer 29 lorentz 2 Mew Partition article 4 8 New Design Partition pendulur Use Partition whenE xa mc ry lll Update View Source Code Info sign should appear to the left of the component name Right click it to display the default partition External connections Example of modelling and simulation Page 31 Files Items Partitions Experiments aircraFEGear bauncingBall circuit equation freezer E lorentz Validate particle view Mathematical Model pendulum WwaveFuncti whenExamy Lege zoneExample View External Objects oo OOOO ACCOA amp Select now the Experiments tab where the experiments are managed Right click equation test default and select new experiment Type in the name of the experiment and click OK This will create a new default experiment A window will open displaying the experiment code file for editing Replace the boundary condition x with the expression x
43. l connections B M whenE ample default Y i 3M zonet ide Simulate in Monitor gt Simulate H Compile Edit ib View Postprocess Results ES View Reports EVI View Log i Clean Postprocess Results x Delete A window appears with the existing report files You can open Excel and drag and drop the file to Excel Now that the results file is in Excel you can create graphics reports etc For example 1 HeaterON HesterPower T Tmax mu TRUE 0 1 50 20 1 00E 00 TRUE 0 9 1 50 20 4 2 00 00 TRUE 0 8 1 50 20 5 3 0 1 50 20 B 4 TRUE 0 6 1 50 20 7 4 TRUE 50 4 50 20 8 5 TRUE 50 10 4 50 20 9 B TRUE 50 10 7 TRUE 50 11 8 TRUE 50 12 9 TRUE 50 13 10 TRUE 50 14 11 TRUE 50 15 12 50 15 13 TRUE 50 17 14 TRUE 50 18 15 TRUE 50 19 15 0000009 TRUE 50 20 15 0000009 FALSE 0 21 15 FALSE 22 17 FALSE 0 23 18 FALSE 0 24 18 FALSE 25 20 FALSE 45 0000045 1 50 20 26 21 FALSE 44 0000045 1 50 20 27 22 FALSE D 43 0000045 1 50 20 28 23 FALSE 42 0000045 1 50 20 29 24 FALSE 41 0000045 1 50 20 30 25 FALSE 40 0000045 1 50 20 3l 26 FALSE 0 39 0000045 1 50 20 A CE 9 1 4 The freezer We can take a look at the freezer example from the DEFAULT LIB library This model is explained in the Math Algorithms amp Simulation Guide The objective is to model a freezer with all the thermodynamic equations The tem
44. n Sand filters Average process and connection times for Optimisation different kinds of passengers assignor supervisor of resources Evolution in time of necessary process elements check in counters controls rains baggage reclaim halls etc Automatic Baggage Handling Average flows and times of baggage Queue theory AENA handli Optimisation Different control schemas Resources available space and man hours for operation Defective operation with failures Sensitivity studies capacity and design margins Storage and Distribution of Warehouse occupation levels Queue theory Merchandise EXEL LOGISTI C DEM Resources necessary available space Optimisation machines staff for operation Defective operation with failures 7 3 Key concepts The fundamental concepts are Component This represents a model of the system simulated by means of variables differential algebraic equations topology and event based behaviour The component is the equivalent of the class concept in object oriented programming a Port connection type This defines a set of variables to be interchanged in connections and the behaviour and restrictions when there are connections between more than two ports For instance an electric connection type uses voltage and current as variables to be used in connections The connection port avoids connecting individual variables instead sets of variables are managed together
45. n see in the plot window how the variables change In the right hand window we can see how the numeric values of the selected variables change 1 Initial Inputs view 0 5 Variable value Units Category RENE o 0480793535 DYNAMIC ari 0 5 1 amp The simulation results are saved a text file called reportAll To see the results of the experiment 1 return to EcosimPro s Main Window In the bottom window of the Workspace right click exp1 and select View Reports Select the report you want to open and click OK External connections Example of modelling and simulation Page 33 w aircraftGear default H bouncingBall default circuit default equation default equation Fest default IEEE fresa Simulate in Monitor zal gt Simulate partic Ed di M pend H Compile 8 Wave a whe Edit E View Log Clean Postprocess Results o Delete amp You can drag and drop your report files to Microsoft Excel amp You can also edit the log file with all the events of simulation e Congratulations you have done your first EcosimPro simulation The steps you have followed are the same even for complex simulations so you have learned most of the key conceptsYour firs
46. nder the force of a steady stream of water poured into the top cup With a slow flow of water the water leaks out fast enough so that friction keeps the waterwheel from moving With just a little more flow the waterwheel will pick a direction and spin in that direction forever If the flow is increased further the waterwheel does not settle into a stable cycle Instead it spins in one External connections More simulations in the installation Page 45 direction for a bit then slows down and starts to spin in the other The waterwheel will constantly change its direction of spin and never in a repeating predictable manner Here is a picture of the waterwheel Many more sophisticated but similar systems have been built and they all show the same chaotic behaviour Lorentz equations are actually three differential equations a first order equation for each of the 1 y2 and y3 components of the trajectory position They are given as yl alfa y2 yl y2 r yl y2 yl y3 y3 yl y2 b y3 where r b and alfa are parameters that change the behaviour of the system There are a lot of resources available if you wish to study the Lorentz equations in detail These equations are usually the first chaotic differential equations introduced in any book on chaos Ed Lorentz paper 1963 is also a very good source of information An component modelling the equations is listed below and the default experiment can be run in the DEFALT LIB libr
47. ng the shortcut 8 1 Your first component using source code To begin using EcosimPro we will first create a simple component to solve a differential equation EcosimPro was designed to simulate complex systems but it can also be used independently of a physical system as if it were a pure equation solver The example in this section illustrates this use It solves the following differential equation to introduce a delay to variable x dy t d y tau which is equivalent to y x y f tau where x and y have a time dependence that will be defined in the experiment 7au is data given by the user we will use a value of 0 6 seconds Basically this equation introduces a delay in the x variable with respect to y with value tau To simulate this equation we will create an EcosimPro component with the equation inside The main tasks are Create new source file associated with a library a Compile the file Generate a default mathematical partition a Create an experiment experiment We can now go ahead just follow these steps At the top of EcosimPro s Main Window you will see a drop down menu on the Toolbar Schematic View is the default option when you start the application but in this example we are going to select the option Code View External connections Example of modelling and simulation Page 29 ds Schematic View E Schematic View Simulation View e We w
48. nted by a big green dot Drop the first one close to the VAC output and the other close to the resistor input like this C1 Elec1 Elec2 R1 Customize the connection points The point close to the source will be type IN input and the one close to the resistor will be type OUT output Double click them to edit Rename the first as e in and the second as e out Remember to change the Direction for e out to OUT Connect the connection points to the component ports as shown below and save it in the DEFAULT LIB library Compile the schematic again You will see that the palette now contains a symbol called my circuit and because it has not been edited it will appear with the default symbol J my circuit edit the symbol right click it and select the option Edit symbol You can redesign your component with a drawing like this Page 38 Example of modelling and simulation External connections muy circuit Close and save the design amp Start a new schematic Access the DEFAULT LIB library The symbol should be on the palette You can drag and drop it onto the canvas for example my circuit Now you can go to the ELECTRICAL library and create a new electric circuit based on this component For CN my circuit C1 a When you finish you can compile this new component and start the process of simulation again a By now you should understand the basic idea use
49. omatically compiles the EL code generated by the Schematic displaying a successful compilation message when finished amp You can go to the Code View and check that it has been added to the library files Look under the Files tab for DEFAULT LIB library my circuit el should be there Page 36 Example of modelling and simulation External connections As explained in previous section we have to create partition for the component before we can run simulation Under the tab Partitions right click my circuit and select Default Partition Type in the name of the new partition and click OK a Now it is ready for the simulation Proceed as in the previous section Go to the Simulation View Select my circuit default if the name of the partition you have created is default from the DEFAULT LIB library right click the option New experiment and type in a name default experiment text should appear in the editing window Change the TSTOP to 0 2 seconds and CINT Communications Interval to 0 001 seconds a Save experiment a Move mouse over the experiment name in Workspace area and select the option Simulate in Monitor amp The Experiments monitor comes up Add two plots one for the voltage of the capacitor and the other to plot the current in the resistor by using the intermediate port e p or e n Then click Start simulation The full simulation of the circuit is displayed Watch variables
50. on Standard Edition Simply follow these steps Put the MS Visual CD ROM in the drive bay Run setup exe from the CD Enter the CD key On some PCs Internet Explorer 4 01 will be installed This is not necessary for this software but Microsoft installs it for Visual Select the DCOM option only in some installations Select Typical Installation when prompted It is not necessary to install the MSDN software or to register as a Microsoft user If the system asks if you want to install the environment variables to access the compiler click on YES otherwise the compiler will not be accessible Reboot the system 4 2 Installing Microsoft Visual Studio 2003 Follow these steps Put the Microsoft Visual 2003 CD ROM in the drive bay Run setup exe from the CD Enter the CD key and install the compiler Reboot the system Test that it works Open a DOS window and enter the command cl MS C compiler If the Operating System displays unknown command the path is wrong If you get Microsoft it is correct and you can continue 4 3 Installing Microsoft Visual Studio 2008 Follow these steps Put the Microsoft Visual 2008CD ROM in the drive bay Run setup exe from the CD Enter the CD key and install the compiler Reboot the system Test that it works Open a DOS window and enter the command cl MS C compiler If the Operating System displays unknown command the path is wrong If you get Microsoft it is corre
51. perature inside the freezer should be maintained between 18 and 20 degrees This is modelled using a boolean variable which shows whether the freezer is on or off WHEN tr 18 THEN compressorON TRUE END WHEN WHEN tr 20 THEN compressorON FALSE END WHEN External connections More simulations in the installation Page 43 We can run experiment from 0 to 15 seconds with a communications interval of 0 1 seconds We can plot the temperature inside the freezer tr and the power consumption It is possible to see how the compressor is switched on and off ZONE Example This example aims to teach you how to use the ZONE command We will define a maximum and a minimum value for a function The component is listed below COMPONENT zoneExample DATA REAL ymax 0 8 REAL ymin 0 5 REAL tau 0 01 DECLS REAL dy REAL x REAL y CONTINUOUS dy y tau y ZONE y gt ymax AND dy gt 0 0 ZONE y ymin AND dy O0 O OTHERS dy END COMPONENT We use ZONE to make variable y constant when it is higher or lower than the limits and it will be the solution of the differential equation in another case To solve this equation the evolution of variable x must be known This will be added to the experiment list in the BOUNDS block EXPERIMENT expl ON zoneExample default DECLS INIT Dynamic variables 0 BOUNDS x sin TIME 44 More simulations the installation External
52. plex components Components can inherit behaviour from other components allowing reuse of tried and tested code from parent components An experiment defines the initial conditions and the boundary conditions of the mathematical model and the desired solutions transient or steady state Experiments can range from trivial to very complex using sequential language with for while and if statements function calls etc and some special functions for calculating steady states integration of the model etc The process of building components in EcosimPro consists of the following steps Create a library Code components ports etc Create a component in EL language graphically Compile into a library Generate a partition Create an experiment Run the simulation The first step is to create or reuse a library then to code the new component s and port type s either using the EcosimPro Language EL or the graphical interface tool The next step simulating a component involves generating an associated mathematical model or partition then creating an experiment for that partition Finally the simulation is run either in batch mode or visually in the EcosimPro Experiments Monitor The EcosimPro tool consists of the following software modules The EcosimPro Simulation Language EL for expressing both the simulation components and the experiment as text amp EcosimPro libraries of components classified by discipline G
53. t component using schematic In this section we create a basic electric circuit but this time using the schematic editor instead of EL The philosophy for creating any other kind of schematic for chemical fluid mechanical etc is the same so having learned these key concepts you can go on to prepare any other kind of simulation schematic The simulation schematic will be an electric rectifier using a resistor a capacitor a voltage generator and ground EcosimPro comes with an electric library that contains most of the basic components needed to create electric circuits The steps to follow in this simulation are amp Open the EcosimPro Main Window as in the previous section Schematic View is the default option when you start the application and this is where we are going to work in this example If another view is displayed change it by selecting Schematic View from the drop down menu on the Toolbar Since we are going to work with the ELECTRICAL libraries we need to open a Workspace that contains them The previous section explains how to do this To create a new file select File New and Schematic Note that this is different from the first step of the last section because in this case we will not create a new EL file but a graphical one You can also create it from Schematic View clicking New button from the toolbar in the name of the schematic my circuit and select from the drop down menu the librar
54. the fields of Waste Processing and Water Treatment Tests in university groups with wide experience in simulation especially in the fields of Control Process Simulation Energy Propulsion and Chemistry a Environmental Control and Life Support Systems ECLSS for the European Space Agency Project to develop a commercial library for the Energy sector with a Spanish architect engineering company External connections Overview of the program Page 19 EcosimPro version 3 3 2004 new tool for creating schematics emerges EcoDiagram This new tool replaced SmartSketch to create graphical models EcosimPro version 3 4 2005 New capabilities and improvements have been added both in EL language and graphical interface to supply the user with a more usable tool and a greater modelling quality EcosimPro version 4 0 2006 The adaptation of EcosimPro to a multiplatform environment has created the needs of making deep changes in this version EcoStudio and EcoDiagram have been integrated into a single application Also EcosimPro shows three different views Code View from where components can be created using EL language Schematic View where symbols for the components schematics can be created and Simulation View where experiments are managed and executed EcosimPro version 4 4 2007 There are new capabilities in this version libraries versioning units new functions upgrades in the monitor new calculation wizard etc
55. tions spend 8096 of the time programming and 2096 modelling dealing with a range of fields outside their own specialisation EcosimPro s main design objective is to reverse this to allow the engineer to spend 8096 of the time on physical modelling and only 20 programming EcosimPro handles internally the complexity of sorting equations optimising the numeric model and solving systems of linear and non linear equations EcosimPro has its own modelling language EL EL is intuitive for the engineer and equations are written practically the same way as in algebra It incorporates the latest advances in programming technology such as encapsulation enumeration data types multiple inheritance and multidimensional arrays to enable an engineer familiar with the language to easily reuse existing tested components to build new models EcosimPro s graphical user interface will be familiar to any user of development environments under Microsoft Windows especially Microsoft Visual It is an intuitive visual development environment in which the modeller can quickly and easily create libraries components simulation files etc EcosimPro is an open tool Unlike other simulation systems EcosimPro is not domain specific libraries have already been developed for several different domains Moreover it is easy to extend by adding libraries of custom components written in the EcosimPro modelling language is straightforward to reuse additional subro
56. ulum el version el wavefunctions whenExample el zoneExample el Lp Un p a source code is correctly written the message Compilation OK will appear in the Output window at the bottom of the screen If not an error message is displayed You can click over the error message bottom window and the cursor automatically points to the erroneous line Correct the error and compile again The following example shows an error message indicating an unclosed string the string associated with the variable must be enclosed in double quote Output messages Output Experiment Find in Files Compiling C iEcosimProV USER LIBSYDEFAULT LIB sources equation test el Error 1 code 100 in file C YEcosimProXUSER LIBSADEFAULT LIB sources equation tes REAL tau 0 6 delay time seconds E closed string ERRORS Compiling Check that the component has been added to the DEFAULT LIB library At the bottom of the Workspace select the Items tab with the library DEFAULT LIB selected and check that the component equation test is in the list Before creating an experiment for this component a partition has to be created In the bottom window of the Workspace select the tab Partitions Right click on the component name equation test and select the option Default Partition Type in a name for the partition by default it
57. ut 4 Variable layer1 tp in T 1000 External connections layer3tp out T 2000 2500 500 1000 1500 2000 TIME More simulations in the installation Value Units Category 2500 layer 336 456 C layerl 0 w layer2 996 49 layer2 19 7019 W EXPLI 0 5 m 2 DATUM Page 49 9 5 Examples the library This library contains some typical components for turbojet modelling such as compressors turbines burners etc It is very impressive if you try to simulate a complete turbojet model To do this edit the file turbojet eds This model represents a single spool turbojet engine The components are diffuser compressor two bypasses combustion chamber turbine nozzle and a component to monitor the thrust and the specific fuel consumption File Edit view Tools Window Help Og BS X 2 3 e A DIE 2 o wg 20 Q qp gt as as as Workspace DEMO ra mi c Y T p Library monitor m 8 DISCRETE LIB I ELECTRICAL i FLIGHT SIM GRAVITATIONAL fJ GRAVITATIONAL EXAMPLES HYDRAULIC fj HYDRAULIC EXAMPLES MATH PHYSIOLOGICAL PHYSIOLOGICAL EXAMPLES i a PORTS_LIB burner fuelmeter THERMAL 4 gt Symbols Schematics Partitions turbofan
58. utines in FORTRAN C or which can be called from the language EcosimPro can be used to study transient behaviour a steady state of models parametric studies amp complex experiments using FORTRAN C or C functions etc More than 50 000 man hours have been invested in the development of EcosimPro financed mainly by the company itself and by the European Space Agency ESA This version of the application has been tried and tested in different fields under the most critical and demanding conditions 1 1 1 Potential users EcosimPro can be of great help to engineers physicists chemists mathematicians biologists etc for modelling simple and complex processes As stated previously EcosimPro can be applied easily to multidisciplinary fields chemistry fluids control mechanics etc In general any problem modelled with differential algebraic equations EcosimPro 15 useful for university students to learn how to model physical problems and for writing end of course dissertations projects and theses for their doctorates There are three levels of users External connections Introduction Page 5 LEVEL 1 Users who develop libraries of components They need to have profound knowledge of the physics and mathematics of the problem to model and simulate it They need to create new components using EcosimPro s modelling language EL For example a creator of a basic ELECTRIC library with capacitors resistors
59. y with which it will be associated DEFAULT LIB amp Select the ELECTRICAL library in the Workspace As we have selected Schematic View the library symbols symbols palette will be displayed at the bottom of the Workspace If symbols have not been created for the libraries the palette will be empty The display will look like this amp Now you can start to design the circuit by dragging the components from the palette onto the canvas e First drag the components C Capacitor Resistor VAC Voltage source and Ground and drop them onto the canvas Use the layout illustrated below Page 34 Example of modelling and simulation External connections R1 a save the design click the save icon the Toolbar or click File gt Save a Continue designing the circuit Rotate R1 90 degrees to the right to align the connection points so they can connected To rotate a symbol select it and click aah a The final layout should look like this Je VAC1 Q 116 a relocate component tags hold down the SHIFT key left click the tag you wish to move and drag it to the desired position R1 VAC1 Q 116 External connections Example of modelling and simulation Page 35 connect components select the connection button the right hand toolbar Now you can connect components by first left clicking the source gate then clicking the different points through which you want th
Download Pdf Manuals
Related Search
Related Contents
282 Kb - Codem Music srl The properties of very thin silica fibers for use in precision Honeywell CT3395 User's Manual SKINNY V795 BT Hosted VoIP (Enhanced) User Manual basexx Base XX Golden Dozer BEDIENUNGSANLEITUNG FYSIC FM-800 MANUAL DE INSTRUÇÕES, MANUAL DE INSTRUÇÕES Copyright © All rights reserved.
Failed to retrieve file