Several issues using SofaCaribou on sofav21.12 and v21.06 #94
Replies: 3 comments 5 replies
-
Thanks a lot @rgao15 for noticing us. @Sidaty1 @fredroy @guparan @jnbrunet have you already experienced this? it makes me think that we should clarify the status of the Caribou plugin on GitHub : under a Mimesis account or the SOFA one. |
Beta Was this translation helpful? Give feedback.
-
Hey @rgao15 Concerning your second issue, could you try adding some boundary condition? I suspect the system isn't converging. Something like this should suffice: <BoxROI name="base_roi" box="9.95 9.95 -0.95 25.05 25.05 0.05"/>
<FixedConstraint indices="@base_roi.indices" /> You could also try to start from a working scene, such as those in the scenes folder, and build your way up to the desired scene. Maybe this one? |
Beta Was this translation helpful? Give feedback.
-
Hi @jnbrunet! Thanks for the suggestions. I also played with the "backward_euler.py" you mentioned, I converted it XML and it converges now, i can see the hex bar is deformed a bit under gravity. It seems i need to use backend="Eigen" for LLTSolver and add this pattern_analysis_strategy="ALWAYS" to the BackwardEulerODESolver to make it work? However i still can not use the mouse to grab the model, it crahes with the same output: |
Beta Was this translation helpful? Give feedback.
-
Hi @jnbrunet ,
I want to use Caribou to play with a few Hexahedral experienments but came with a few issues along the way.
I'm on caribou master branch, using the SOFA_EXETERNAL_ DIRECTORIES in-tree compilation (as we have disscussed this earlier in another thread), cmake 3.20 and win10. And i have tested this both on sofa v21.12 and v21.06.
if i keep all the default options in cmake (BUILD_TESTS and BENCHMARKS are ON), without building SofaPython3. I got the following cmake config error for Caribou(even after i manually set eigen3_dir):
Could not find a package configuration file provided by "Eigen3" with any
of the following names: Eigen3Config.cmake...
If i set BUILD_TESTS to OFF (since the above error happens at sofa_plugins/caribou/unittest/SofaCaribou/CMakeLists.txt:19 (find_package))
if on sofa v21.12, there are no errors in the cmake step but compilation has quite a few errors related to BENCHMARKS. I simply unchecked the BENCHMARKS in cmake and the compilation is fine.
switches to sofa v21.06, There are no errors in the cmake step and compilation is fine even with BENCHMARKS set to ON.
3.Then i tested it with both v21.12 and v21.06 and got the same issue here:
with the attached scn file, there are no errors upon loading the XML and the hex geometry model loads well. But the hex model can not move when started simulation. And it crashes when i want to use mouse to grab it. I tested replacing the integrator, solver and mass element by the Caribou ones, still no luck.
caribou-test.txt
Please let me know how i can correct the xml or if there is anything missing in my compilation steps. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions