Need help with diffusion #5582
-
|
Hello, I am a beginner with Sofa and I am trying to model diffusion in the headspace of a glass of solution. I attempted to base my model on the raptor example, but it doesn’t seem to work. Could you please help me? I have attached my code below for reference. Thank you very much for your assistance. Best regards, Caroline L'erreur obtenue est : |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
Hi @CaroPeltier Indeed the diffusion scenes are quite special in their construction. You should therefore update : |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I’ve added the tag "mechanics" to my air object, but I’m still getting the same error message. To try and fix the issue, I also attempted to move my mechanical object to the root.node, instead of placing it inside a child node (as done in the Raptor example). However, in that case, the translation doesn’t seem to work properly, so I gave up on that approach. Thank you very much for your help! Caroline |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Hello !
I wasn't able to launch your simulation given that I don't have the meshes. But looking at your error message, I took a look at the source code and I think that I understand the problem. The component is looking above him for a MechanicalObject with a tag that is equal to your mechaTag. So to fix this you should add
tag="mechanics".And also I saw an unusual placement of the Animation loop. I would suggest to put it right after the required plugin components, and before any component that is simulation related.