Sfoglia il codice sorgente

bentley's comments

Claudio Gomes 5 anni fa
parent
commit
d1b998a67a

+ 17 - 1
README.md

@@ -8,7 +8,7 @@ This repository contains the materials that are used in the Co-simulation tutori
 
 1. Using docker's console, navigate to the root of this repository.
 
-1. Build the docker image: `docker build -t jupyter .` This will download all dependencies you need to run the examples.
+1. Build the docker image: `docker build -t jupyter .` This will download all dependencies you need to run the examples. You might need root access.
 
 1. Note the host's ip address by running: `docker-machine ip`. Let us denote it by `MACHINE_IP`
 
@@ -31,3 +31,19 @@ This repository contains the materials that are used in the Co-simulation tutori
 1. `docker stop jupyterrun`
 
 1.  `docker rm jupyterrun`
+
+# Exporting the VM
+
+If you want to preserve the virtual machine that is used to run the materials in this repository (for example, you may want to later load it from a USB stick), follow these instructions:
+
+1. Build the docker image as in the instructions above.
+1. Export the VM: `docker save jupyter | gzip > jupyter.tar.gz`
+1. Save the `jupyter.tar.gz` wherever you want.
+
+# Loading the VM
+
+The VM exported with the above instructions can be loaded as follows:
+
+1. Locate the `jupyter.tar.gz` file.
+1. Load the VM: `docker load < jupyter.tar.gz`
+

BIN
slides/tutorial.pptx


BIN
theory/tutorial.pdf


File diff suppressed because it is too large
+ 26 - 13
tutorial/1-CruiseController/.ipynb_checkpoints/CruiseController-checkpoint.ipynb


File diff suppressed because it is too large
+ 26 - 13
tutorial/1-CruiseController/CruiseController.ipynb


File diff suppressed because it is too large
+ 16 - 3
tutorial/2-MassSpringDamper/.ipynb_checkpoints/MassSpringDamper-checkpoint.ipynb


File diff suppressed because it is too large
+ 16 - 3
tutorial/2-MassSpringDamper/MassSpringDamper.ipynb


File diff suppressed because it is too large
+ 206 - 194
tutorial/3-ConstructingFMUs/.ipynb_checkpoints/ConstructingFMUs-checkpoint.ipynb


File diff suppressed because it is too large
+ 206 - 194
tutorial/3-ConstructingFMUs/ConstructingFMUs.ipynb


File diff suppressed because it is too large
+ 31215 - 0
tutorial/4-RunningCosimulations/.ipynb_checkpoints/RunningCosimulations-checkpoint.ipynb


+ 1 - 0
tutorial/4-RunningCosimulations/RunningCosimulations.ipynb

@@ -30946,6 +30946,7 @@
     "    This class implements the gauss-seidel co-simulation algorithm.\n",
     "    \"\"\"\n",
     "    def run_cosim_step(self, time, scenario: CosimScenario):\n",
+    "        \n",
     "        '''\n",
     "        Useful reference:\n",
     "        - scenario.fmus: contains the list of fmus in the co-simulation scenario, \n",