Simulation Development Platform for the Dynamic Simulation Environment (DSE) Core Platform.
L- .devcontainer Devcontainer used by Codespaces.
L- Dockerfile Dockerfile used by Codespaces.
L- dsl DSL parser (usingChevrotain).
L- lsp VS Code Language Server.
L- licenses Third Party Licenses.
Start a Codespace, then type the following commands in the terminal window.
# Setup the examples (will download ModelC examples),
$ make examples
$ ls out/examples/modelc/
benchmark/ binary/ extended/ gateway/ gdb/ minimal/ ncodec/ runtime/ simer/ transform/
# Run a simulation using Simer.
$ dse-simer out/examples/minimal
Hint: Find more information about the Simer command options here.
Note: Dev Containers is not supported by VS Codium (workarounds may still exist).
-
Install the Dev Containers extension (Ctrl-Shift-X, then search "Dev Containers").
-
Install the WSL extension (Ctrl-Shift-X, then search "WSL").
-
From the Remote Explorer, select a WSL Target and then click
Connect in New Window
. A new VS Code editor will open. -
Press
F1
to bring up the Command Palette and typeDev Containers reopen
. You may be prompted to install docker into WSL. Even if already installed, proceed to install Docker again (in your WSL)
WSL indicator shows in the bottom left corner of the VS Code window. The Remote Explorer, added by the WSL extension, will show available WSL Targets.
Using WSL Bash Terminal:
# Open a new VS Code editor connected to this repo.
cd ~/git/workspace/dse.sdp
code.
# In VS Code, press `F1` and type `Dev Containers reopen`.
# Open a bash terminal to access the DevContainer (i.e. local Codespace).
codespace ➜ /workspaces/dse.sdp (main) $ which task
/usr/local/bin/task
codespace ➜ /workspaces/dse.sdp (main) $
Using VS Code:
-
Click (bottom left)
Open a Remote Window
, then commandConnect to WSL
. -
From the Remote Explorer, select a WSL Target and then click
Connect in Current Window
.
A new VS Code editor will open. -
Select
Open Folder
and naviage to your dse.sdp repo. Previouly opened repos will be listed in the Remote Explorer.
After that, the container will build ... and eventually you will have the Codespace avaiable in your Terminal Window.
- Chevrotain Parser
- Dev Containers for VS Code
- Simer (and source code)
Please refer to the CONTRIBUTING.md file.
Dynamic Simulation Environment FMI Library is open-sourced under the Apache-2.0 license. See the LICENSE and NOTICE files for details.