Skip to content
Discussion options

You must be logged in to vote

Oh oh @YanzhouWang on 🔥 ! 👍

These types are called DataTypes in SOFA.
They are usually defined by the MechanicalObject by the Data template which corresponds to the kind of degree of freedom which is computed in the simulation (Vec3d, Vec2d, Vec1d, Rigid3d ...).

Within one same node, the kind of degree of freedom is supposed to be the same. Therefore, the template of the MechanicalObject and the associated ForceField must be the same.

Template programming of C++ allows us in SOFA to have implementations which support multiple data types. For the FanForceField, the supported templates (here only one) is given in the file : FanForceField.cpp. To get this Forcefield supporting other template…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@YanzhouWang
Comment options

Answer selected by YanzhouWang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants