Dear all,
I am currently transitioning from FEniCS to GetFEM and planning to implement an anisotropic strain energy model inspired by the works of Holzapfel and Ogden. These types of models typically involve preferred directions associated with fiber and sheet structures in biological tissues.
A generic example of the strain energy function I aim to use can be written as:
\Psi = \Psi_{\text{iso}}(C) + \sum_{i=1}^N \Psi_{\text{aniso}}(C, \mathbf{a}_i)
where \Psi_{\text{iso}}(C) is the isotropic part depending on the right Cauchy-Green tensor C = F^T F, and \Psi_{\text{aniso}} includes the fiber contributions along preferred directions \mathbf{a}_i. These contributions often take the form:
\Psi_{\text{aniso}}(C, \mathbf{a}_i) = k_i \left( \mathbf{a}_i \cdot C \mathbf{a}_i - 1 \right)^2,
and involve terms like \mathbf{a}_i that need to be precomputed and/or interpolated on the mesh.
In my previous FEniCS workflow, I used the Laplace-Dirichlet Rule-Based (LDRB) method to compute fiber and sheet directions (see images). These directions were then saved as vector fields in VTU format (one vector per node or cell).
To avoid rewriting all the code I already developed in FEniCS, I would like to know:
Is there a way in GetFEM to read solutions stored in a VTU file and load them as vector variables or simply variables, so that they can be used later in the computation of quantities such as
\mathbf{a}_i \otimes \mathbf{a}_i or for futher calulus in GWFL?
This would greatly simplify the transition and allow me to reuse the preprocessing steps already implemented in my current pipeline.
Any guidance or example on how to read VTU files (or any alternative approach to inject external directional data into a GetFEM simulation) would be highly appreciated.
Best regards,



