First time here? Checkout the FAQ!
x
0 votes
by (220 points)
edited by
I installed opencrap by pulling the docker image.

now i want to run a different example code. but i am facing difficulty to find the OpenCARP folder directory. ANY suggestion pls?
root@baeb61b3bc34:/openCARP# ls

CHANGELOG.md  CMakeLists.txt      CONTRIBUTORS.yml  METADATA.yml  _build    contributors  external  merge_switches.py  physics       tools

CITATION.cff  CODE_OF_CONDUCT.md  GOVERNANCE.md     Makefile      appimage  docker        fem       numerics           simulator

CITATION.md   CONTRIBUTING.md     LICENSE.md        README.md     cmake     docs          make.def  param              switches.def

root@baeb61b3bc34:/openCARP# cd

root@baeb61b3bc34:~# ls

temp

root@baeb61b3bc34:~# cd temp

root@baeb61b3bc34:~/temp# ls

root@baeb61b3bc34:~/temp#

1 Answer

+1 vote
by (19.1k points)
selected by
 
Best answer

They are located in /openCARP/external/experiments/tutorials

by (220 points)
Sir i am unable to find the opencarp folder, i want to run my own program.

root@baeb61b3bc34:/openCARP# find / -type d -name "opencarp"
/usr/local/lib/opencarp
root@baeb61b3bc34:/openCARP#

/usr/local/lib/opencarp= as there is no usr folder in my local directory

root@baeb61b3bc34:/openCARP# find / -type d -name "usr"
/usr
/usr/share/gdb/auto-load/usr
root@baeb61b3bc34:/openCARP#


Basicaly i want to test my code for that i need to paste that________ .py file in opencarp folder.
but i failed to locate the opencarp
by (19.1k points)
root@de75f461341d:/openCARP# which openCARP
/usr/local/bin/openCARP

Anyway, if you want to use your own version of openCARP (as opposed to only own carputils scripts), compilation from source is recommended: https://opencarp.org/download/installation#building-from-source
by (220 points)
You will need openCARP installed.

Firstly, compile the stan programs in the directory "stanmodels" by calling `python <filename>.py`.
Then move the resulting <filename>.pkl files to the mmserp/data directory.

Then install with `python setup.py install` from the top-level folder.

Dependancies should reveal themselves when attempting to run code.



I want to run this open source code,
for that, i need to be installed opencrap and than call the stanmodels using PowerShell
My issue is, how i call these, until i paste the stanmodels in the opencrap folder.
and i am unable to find it on my local machine
by (19.1k points)
For such a complex workflow, the compilation from source might indeed be the better option.

Also be aware of the difference between folders inside containers and on your host system.
by (220 points)
its work in ubuntu(windows) not in power shell
docker run -ti -v $(pwd):/home --name opencarp-container1 docker.opencarp.org/opencarp/opencarp

Pull commands will be this
kindly update your docker running commands
bez your command not mont the directories
by (220 points)
docker run -it
 -v  C:\Users\HREHMAAN:/openCARP docker.opencarp.org/opencarp/opencarp:latest

Here C:\Users\HREHMAAN directory you want to mount with countainer
by (140 points)
Perfect, thank you! I suggest to add this information here: https://opencarp.org/download/installation#installation-of-opencarp-docker-containers
by (19.1k points)
Good to hear!
As all openCARP activities, this project welcomes contributions.

https://opencarp.org/community/contribute
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], config: ["MMLorHTML.js"], jax: ["input/TeX"], processEscapes: true } }); MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } } });
...