Page History
...
- Export the Circuit Block to Modelica file. How to >>
- Make sure the Dymola tool is installed. How to >>
- Start the Dymola.
- Click File > Open > Load... and select saved Circuit.mo file from your file directory. A Circuit model is displayed in the Package Browser.
- In the Graphics tab toolbar, click to check model for syntax and semantic errors. The result panel displays whether the model is ready for simulation.
- Setup the simulation run for the model:
a. Select the Simulation tab and in its toolbar click .
b. In the Simulation Setup dialog, specify the Start time value to 0 and the Stop time value to 60 seconds (or any other reasonable amount of time; for this model, 60 seconds is enough).
c. Click OK. In the Simulation tab toolbar, click .
Info When the simulation is completed, the output is displayed in the panel at the bottom and the Circuit variables are displayed in the Variable Browser.
- To see input and output of the Circuit model, select variables in the Variable Browser as follows: Circuit > _Circuit > c, i, rc, ri, s > iThru, vDrop. The current (iThru) and voltage (vDrop) variable across each of the circuit’s 5 components are displayed on the Plot window: the capacitor (c), the inductor (i), the voltage source (v), and the resistors (rc, ri). In the example below, only iThru, vDrop of s variable are displayed.
...