mimesis-inria / caribou

Multi-physics computation library
GNU Lesser General Public License v3.0
29 stars 17 forks source link

Generalisation of the Fenics material #118

Open Sidaty1 opened 2 years ago

Sidaty1 commented 2 years ago

For the moment, a component should be created and added to the factory for each new added FEniCS materiel, and can be used like this fenics_node.addObject('SaintVenantKirchhoff_FEniCS', template=element, young_modulus="3000", poisson_ratio="0.3") fenics_node.addObject('HyperelasticForcefieldMaterial_FEniCS', printLog=True)

We would like to create a more general Fenics material component that takes as input the FEniCS generated code path and some compiler parameters, and can be used like this fenics_node.addObject('FEniCS_material', path='../../FEniCS_code/' material="SaintVenantKirchhoff", compiler='gcc', compilerOption=" ")