|
|
Windows 10 ships with a linux subsystem, which allows you to work with OpenSimRoot as if you were on a linux system.
|
|
|
|
|
|
1) Enable WSL in windows 10. You will find it in the program settings of the control panel. If not, google. You will need to reboot.
|
|
|
2) Install Ubuntu from the microsoft store. Just hit the windows key and start the microsoft store. Then search for ubuntu.
|
|
|
3) Start ubuntu. The first time it will ask you to create a login. Inside ubuntu issue the following commands (they will take a couple of minutes, depending on your internet speed). The commands install the gcc compiler and the make utilities.
|
|
|
```
|
|
|
sudo apt update
|
|
|
sudo apt install gcc g++ make
|
|
|
```
|
|
|
4) I assume you already have cloned the git repository. Just cd to it. In my case it was:
|
|
|
```
|
|
|
cd /mnt/c/Users/j.postma/git/
|
|
|
```
|
|
|
|
|
|
4) Alternatively, you will need to clone the repository. Use something like
|
|
|
```cd ~
|
|
|
mkdir osr
|
|
|
cd osr
|
|
|
git clone https://gitlab.com/rootmodels/OpenSimRoot.git
|
|
|
```
|
|
|
5) go to the static build folder (not the windows one!)
|
|
|
```
|
|
|
cd OpenSimRoot/OpenSimRoot/StaticBuild
|
|
|
```
|
|
|
|
|
|
6) Build using make (using 4 processors)
|
|
|
```
|
|
|
make all -j4
|
|
|
```
|
|
|
|
|
|
7) Test the executable using
|
|
|
```
|
|
|
./OpenSimRoot
|
|
|
```
|
|
|
|
|
|
8) Run model and create a plot. To using the plotting script you will need to install R. with
|
|
|
```
|
|
|
sudo apt install r-recommended
|
|
|
```
|
|
|
and then you can run OpenSimRoot with for example
|
|
|
```
|
|
|
./OpenSimRoot ../InputFiles/runStraightRoot.xml
|
|
|
```
|
|
|
and plot the results for, for example, root length with
|
|
|
```
|
|
|
cat tabled_output.tab | grep rootLength | ../scripts/plot
|
|
|
```
|
|
|
|
|
|
|