- This topic has 1 reply, 1 voice, and was last updated 4 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › [SOLVED] Mass below a multimap
Tagged: 64_bits, Linux_ubuntu, SOFA_other
I have a scene in which I have two sets of independent dofs (x
and d
) and one set of mapped dofs (p). The mapping is a multimap with the following expresion: p = Bx + d
I also have a projective constraint on d
.
I have tested all of my components and everything seems to be working fine, but when I simulate a basic triangular mesh under gravity with a UniformMass on p
the triangular mesh gets a strange aspect after a few steps:
I am using a CG solver. If I understand correctly how this works, the gravity force is mapped as a normal force, but what happens with the mass matrix during the solver? Is a UniformMatrix supported under a mapping?
I can provide more details if needed
Thanks
I have compiled in debug mode to check what is happening and I confirm that masses are mapped through the mapping, at least when using a matrix-free solver like CG
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.