How to run the demo? where to learn the related stuff~

113 views
Skip to first unread message

Shipeng Liu

unread,
May 21, 2022, 11:01:54 PM5/21/22
to ProjectChrono
Hi,

I am a freshman to project chrono~ I found the demo video on Vimeo.
I want to simulate the robot's motion in Fluids with different viscosities. I guess the video uses the dem methods~ But I cannot find the specified module that guides me to do such things, if you could provide some links or tutorials to learn, it would be really helpful and I will appreciate it. 

Best,
Shipeng

Freya the Goddess

unread,
May 22, 2022, 1:24:42 AM5/22/22
to ProjectChrono
Hi Shipeng,

I am a freshman too, maybe first you need to compile Chrono with VEHICLE and FSI module,
For the simulation / GUI are you using OpenGL or Irrlicht or another renderer?

Correct Me If I am Wrong, but perhaps to create the simulation of the robots in fluids then assuming you are using Linux here are the steps:
1. You need to build Chrono
from the source dir (the one you clone from github with develop branch) type:
mkdir build && cd build
ccmake ..

Choose BUILD_DEMOS=ON
Adjust the other parameters
Learn the modules choose what you need (https://api.projectchrono.org/modules.html)

After that generate and then type:
make
or to be faster
make -j4 (if you have 4 core processor)


2. When the compilation is done cd to ../chrono/build/bin and play the demos by typing
./demo_ROBOT_Viper_Rigid (for example)

from here you can see what need to be modified

3. Modification of the source code to create the simulation you need (need experience and knowledge in C++ )
cd to ../chrono/src/demos/robot/viper and you can see by typing
ls
Bunch of .cpp files that can be edited and compiled to become binary that can be simulated for your needs.

Happy Chrono-ing


--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/156bd3b8-770b-4bfb-88bb-287e28eabcacn%40googlegroups.com.


--
С наилучшими пожеланиями, Богиня Фрейя
Atenciosamente, Freya the Goddess
Meilleurs voeuxFreya the Goddess
Liebe Grüße, Freya the Goddess
Best wishes, Freya the Goddess
よろしくお願いします、Freya the Goddess
最好的祝福,Freya the Goddess
Matakwa mema, Freya the Goddess
مع أطيب التمنيات ، فريا الإلهة

Freya the Goddess

unread,
May 22, 2022, 1:25:36 AM5/22/22
to ProjectChrono
I hope the screenshots help.
Bildschirmfoto_2022-05-22_12-22-30.png
Bildschirmfoto_2022-05-22_12-22-42.png

Shipeng Liu

unread,
May 22, 2022, 8:28:14 AM5/22/22
to Freya the Goddess, ProjectChrono
Thank you very much!Freya!

huwe...@gmail.com

unread,
May 23, 2022, 6:59:18 PM5/23/22
to ProjectChrono
Hi Shipeng,

The video you found was not simulated using DEM, but using SPH. The SPH method was implemented in Chrono as a fluid dynamics solver and has the capability to interact with rigid/flexible multibody systems (e.g. a robot). I think you can follow the steps in the previous email. But one more thing you need to confirm is: do you want to simulate the dynamics of a robot that interacts with different fluids at the same time? If not, things should be straightforward, you just need to set a viscosity and run a simulation then change the viscosity and run another one. If yes, that should be a multiphase problem which will be a little bit complicated. We have the capability to simulate a multiphase problem, but that's still under development and should be in the public repo of Chrono soon.

Thank you,
Wei

Freya the Goddess

unread,
May 24, 2022, 2:00:41 AM5/24/22
to ProjectChrono
Hi Wei and Shipeng,

I want to revise what I said, I was learning about this one yesterday, to create your own demo no need to build the whole Project Chrono again. Just build/compile Chrono once, and then at the top src directory just copy and rename the template_project, there you can edit the CMakeLists.txt and my_example.cpp. Set the environment Variable Chrono_DIR to the directory for the built ChronoConfig.cmake
In my case
Chrono_DIR=/opt/hamzstlib/Physics/chrono-7.0.3/build/cmake

Here is the link:

Thank You and have a great day

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.

Shipeng Liu

unread,
May 24, 2022, 11:48:17 AM5/24/22
to huwe...@gmail.com, ProjectChrono
Hi huwei,

your explanation is really helpful. I think for now this one is ok. And I would be exciting to see the multi phase feature in the future!

Best,
Shipeng 

--
Reply all
Reply to author
Forward
0 new messages