Nassim started the topic Harmonic excitation with constantForceField (Python Controller) in the forum Using SOFA 1 year, 11 months ago
For a project, I need to create an harmonic excitation to make a cylinder jump.
For that, I have created a python controller which creates a ConstantForcefield on the cylinder in the axis +Y, and then I tried to change the value of it in an harmonic form thanks to a cos function.
I have created a loop from 0 to 90°, so that my cos…[Read more]
Thank you really much for your answer, it worked well.
My controller is now efficient.
After that, I wanted to add some parts to my jumping cylinder.
First, I have add an other cylinder which represents a body, and two others cylinders which represent the arms.
I have created one big node, called body, which contains all the different…[Read more]
The method of the mapping works well to combine the fibers and the cylinder, how ever, i have some troubles concerning the control of the fibers.
I have created a Python controller which helps me to create a constantForceField.Then I have put this controller in the Node of the fiber.
However, even if the force is created, it does…[Read more]
Thank you for your answer !
I was thinking about the collision, but is there a way to put collision only on the external part of the cylinder? Cause when I’m putting collision, it also creates collision in the cylinder and then the muscle is stuck in the cylinder and collide everytime.
For the moment no, I’m gonna search about it, but…[Read more]
Thanks for your advices ! I have write a new code, and correct the mistakes.
Here it is : https://drive.google.com/drive/folders/19NfVqqvVybeF3EtaNF4NhWqO6Klxja2F?usp=sharing
In this simulation the muscle present in the cylinder can go outside the boundaries of the cylinder, which is not realistic.. I don’t know how I can force the…[Read more]
For a Project, I have to create a hopping robot. To do that, the first step has been to create a Soft cylinder. After that, I need to incorporate in this cylinder a muscle, and it’s where the problem start.
I need to combine the mesh of the soft cylinder and the mesh of the muscle. Thanks to that, I want to combine the mechanics and…[Read more]
I have followed the steps to compile Sofa, however, i have some problems.
First, by using Cmake to Generate file, even if it’s computing well, and that i can generate the solution, i have at the end in the folder buildCMakesFiles, two files (CMakeError.log and CMakeOutput.log). By looking into theses documents, I don’t understand a…[Read more]
I’m using the binaries of SOFA v18.06 on windows, but when i’m doing some tutorials, i have some visualisation problems.
First, by doing the step by step tutorial, ( you can see it in the video on youtube at 11.12min: https://www.youtube.com/watch?time_continue=250&v=YWC9kcHhzBE), while i’m creating the torus, in the last part, with the…[Read more]
For a medical project, i need to use SOFA software.
i started to download the binarie of SOFA ( the 18.06) but i just find the runSOFA.exe and no Modeler.exe in the bin folder.
It is not included in it?
If the Modeler is not fixed yet, is it possible to only work with the runSofa.exe and by creating scene xml?
About python, do we…[Read more]