Yup! That’s exactly what I’m after. This relates back to an earlier post (Adding Non-Nodal Degrees of Freedom to a Problem) where I described trying to couple rigid body degrees of freedom to an elastic model. Based on your suggestion, I have been attempting this by using real function space functions (r\in R) to good success. Now I am looking to create an external operator that takes in r so that I can define how those degrees of freedom couple using non-UFL code (basically, in my eventual problem, the coupling will depend on some geometry of the rigid body components that I need to account for that cannot be expressed in UFL).
micBenn
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| MixedElement with "Real" element type; scifem | 2 | 85 | March 25, 2026 | |
| [2019.1.0] Mixed real function space? | 2 | 100 | October 10, 2024 | |
| Adding Non-Nodal Degrees of Freedom to a Problem | 2 | 63 | October 16, 2025 | |
| Mixed function space with dolfinx - how to implement an integral constraint | 11 | 1952 | September 6, 2024 | |
| Using Python functions in FEniCS variational formulation | 40 | 3091 | June 22, 2025 |