Skip to content

Template instanciation problem#177

Open
AppaSalif wants to merge 17 commits intoSofaDefrost:mainfrom
AppaSalif:feature/Frames2StrainCosseratMaping
Open

Template instanciation problem#177
AppaSalif wants to merge 17 commits intoSofaDefrost:mainfrom
AppaSalif:feature/Frames2StrainCosseratMaping

Conversation

@AppaSalif
Copy link
Copy Markdown

The new component Frames2StrainCosseratMapping computes the strains (Vec3, output) from the frames (Rigid3, In1) and the rigid base (Rigid3, In2).

Since this component does the exact opposite of the recent component we wrote based on Lie algebra (Strain2RigidCosseratMapping), it makes sense to write the Frames2StrainCosseratMapping class as a derived class from the base class CosseratGeometryMapping, just as it is in Strain2RigidCosseratMapping. And that's where I'm running into problems. In the base class's init function, we work very precisely with rigid frames as output because we use methods like getOrientation() or getCenter(). And so it doesn't work with our new component (Vec3 as output). I tried overriding the init() function in Frames2Strain to bypass the one in the base class, but there too I'm encountering problems with the templates.

Appa added 10 commits April 24, 2026 09:02
…e à vérifier la manière dont la force se propage le long de la tige
…ns dans le calcul du coadjoint qui N'EST PAS la transposé de l'adjoint
…ends on the inverse of the adjoint and NOT the adjoint (see Renda et al. 2018)
…n the applyJ function to match that of DiscreteCosseratMapping
…osseratMapping (S2R) + All tutorials using S2R are now available in the folder using_lie_algebra and all of them work perfectly
@AppaSalif AppaSalif changed the base branch from master to main May 5, 2026 14:28
Appa added 3 commits May 6, 2026 10:34
…a fonction membre init() pour qu'elle puisse fonctionner avec différents templates à l'aide d'une méthode virtuelle, initialization(), que je peux définir dans les classes dérivées
…factory | Correction et Validation de la fonction apply()
@AppaSalif
Copy link
Copy Markdown
Author

AppaSalif commented May 6, 2026

The template instantiation problem is now solved. I adapted the init() function of CosseratGeometryMapping so that it no longer depends on the geometry of our output.

Appa added 4 commits May 6, 2026 17:07
…2StrainCosseratMapping -- Je dois calculer la vitesse des déformations connaissant la vitesse des configs -- un peu de modelisatio s'impose
…) du composant Frames2StrainCosseratMapping
…pping + une petite amélioration du testFrames2Strain.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant