Hi Ravi,
All Chrono modules are so-called middleware. This means that we do not provide a main function, but rather you write your own and make calls to Chrono functions to model and simulate your system.
Having said that, Chrono comes with a fairly large number of demo programs. These are programs that do provide such a main function and, once built, they result in an executable which you can run. These demos constitute both a good way of learning about Chrono and its usage, as well as good starting points for your own Chrono-based projects.
If you say you were able to configure, build, and install the Chrono code, you should have all you need, including these demos. When using Visual Studio as the generator for CMake, you will get a VS solution file in the build directory. Again, if you say you built and install Chrono, you already used that sln file. Note that this VS solution has many projects, including some that have names starting with “demo_”. Set one of those as “starting project” in VS and run it from within VS. You can modify the demo source however you want, rebuild it and see the effects.
The demo you refer to in particular, is a project in that VS solution named ‘demo_FEA_basic’.
Hope that this helps,
--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/3208ae54-f2ce-4cbb-bfa4-7e81e2c056a0n%40googlegroups.com.
***********************************************************************************
==== Submodules ====
Build Google test framework
Google test code not found: update git submodules.
Building of unit tests was disabled.
==== Chrono Engine core module ====
==== Chrono Irrlicht module ====
==== Chrono Postprocess module ====
==== Chrono Vehicle module ====
==== Chrono FSI module ====
CMake Warning at src/chrono_fsi/CMakeLists.txt:26 (message):
Chrono::FSI requires CUDA, but CUDA was not found; disabling Chrono::FSI
***********************************************************************************
Yes, you need CUDA for the Chrono::FSI module.
CUDA is available from NVIDIA (https://developer.nvidia.com/cuda-zone). Of course, you must have an NVIDIA GPU, as mentioned in the Chrono::FSI installation page.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/21fcdc55-c47f-4ce5-a431-7be72e6a86f8n%40googlegroups.com.
Unknown CMake command "CUDA_ADD_EXECUTABLE".
Ravi,
Please read carefully through the instructions at https://api.projectchrono.org/tutorial_install_project.html and note that you must *add* as components to the CMake find_package command any and all Chrono modules you want to use in your project. Your CMakeLists.txt file does not request the FSI module.
Please also look at the projects in the chrono-projects repository (https://github.com/projectchrono/chrono-projects) for examples of linking to and using various Chrono modules in external projects. In particular, the example in https://github.com/projectchrono/chrono-projects/tree/develop/configuration_tests/fsi.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/e72954bb-11e0-4031-87e1-7df4caa1f3a2n%40googlegroups.com.
Ravi – I had already suggested you look in the chrono-projects repository for examples of configuring Chrono modules as external libraries for your project.
Nobody can tell where your issue is by just looking at the CMakeLists, but:
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/1d365dd7-3282-465d-9958-10998463eccfn%40googlegroups.com.