Learn and use chrono

180 views
Skip to first unread message

Aman Chauhan

unread,
Sep 28, 2024, 12:14:11 AM9/28/24
to ProjectChrono
Hello everyone I hope everyone is doing fine. I have a very basic question. I have successfully downloaded chrono and build it's files. Chrono is installed successfully.

Now my question is that how can I use chrono to make some simulation and vehicle physics. Currently it has all the demo files which are working but I want to make something my own.

Please if anyone can provide a detailed guide on how to start learning chrono, how to use it's classes and functions etc that would be appreciated

Radu Serban

unread,
Sep 28, 2024, 4:19:15 AM9/28/24
to ProjectChrono

Aman,

 

If you are interested using Chrono, you could start with the set of tutorial exercises in the associated repository chrono-tutorial. Clone that repository and configure it (with CMake) to point to the build of Chrono you already have. That repository contains a set of exercises that you can complete step by step.  For multibody dynamics for example, you start with the code in slider_crank_0 (which is a fully functional Chrono demo) and modify it as requested in comments in its source. That should take you to slider_crank_1 which asks you to make further changes.  There are similar tutorial exercises for FEA, Chrono::Multicore, Chrono::Vehicle, and Chrono::Sensor.  All quite basic, but they will get you started.

 

Of course, you can do similar things yourself, starting from the simpler Chrono demos and modifying them step by step to add components, functionality, etc.

 

If you want to understand how the code works and the steps it goes through to simulate a particular demo, the best thing is to run the demos through a debugger and step through the code and through the various Chrono functions.

 

--Radu

--
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/cccd7651-b298-4308-b35a-e047ef4022d1n%40googlegroups.com.

Aman Chauhan

unread,
Sep 30, 2024, 2:57:18 AM9/30/24
to ProjectChrono
Thanks for replying and giving some information about learning. I cloned the tutorial repository but unable to configure the project.

Screenshot 2024-09-30 122645.png

Can you please tell what should be the source directory and build directory. Currently I am passing tutorial directory as source directory and made new directory for build directory but it's not working. Also, do I need to paste the tutorial directory in chrono directory ? Currently  it's outside.

Please tell if you can help.

Radu Serban

unread,
Oct 16, 2024, 4:20:38 AM10/16/24
to ProjectChrono

Aman, sorry, this fell through the cracks.

 

What do you mean by “it’s not working”?

 

No, you do not need to move the tutorial directory anywhere. This chrono-tutorial is set up as an “external” project that can link to an existing build or installation of Chrono. See https://api.projectchrono.org/tutorial_install_project.html.

 

Assuming “C:/Users/SAM/Documents/Chrono 8/chrono_tutorial” is where you cloned the chrono-tutorial repository (are you sure it’s chrono_tutorial and not chrono-tutorial?) the source and build directories are fine.  Once you hit ‘Configure’, you will be asked to set Chrono_DIR (which should point to a directory that contains a build or install of Chrono). If you have successfully built Chrono, you can pass there the path to the cmake/ directory in the Chrono build tree, probably something like “C:/Users/SAM/Documents/Chrono 8/chrono_build/cmake”.

 

--Radu

 

From: projec...@googlegroups.com <projec...@googlegroups.com> On Behalf Of Aman Chauhan
Sent: Monday, September 30, 2024 8:57 AM
To: ProjectChrono <projec...@googlegroups.com>
Subject: Re: [chrono] Learn and use chrono

 

Thanks for replying and giving some information about learning. I cloned the tutorial repository but unable to configure the project.

 

Reply all
Reply to author
Forward
0 new messages