I’m using HookeForceField from the Flexible plugin. Here is the minimal code of my python scene :
# rootNode/MecaNode/behavior/E E.createObject('MechanicalObject', template='E331') E.createObject('GreenStrainMapping', template='F331,E331') E.createObject('HookeForceField', template='E331')
(MecaNode contains the dofs and shape functions, behavior contains the integration parameters. They are all linked by mappings)
If I understood correctly, at each time step, the mechanical visitor browse all force fields of the scene, and in my case, calls the ForceField::addForce method, which calls the BaseMaterialForceFieldT::addForce.
My problem is that I don’t want to call the latter BaseMaterialForceFieldT::addForce. I would like to call the one defined in the component, for example HookeForceField::addForce in my scene.
I believe it is possible given the comment line 78 but I don’t know how to tell the visitor to continue and call the child addForce method instead of the BaseMaterialForceField one.
My final purpose is to implement another material law and I need to override this method. Any help would be appreciated.
Moreover, I get the warning
RTTI symbol not found for class
which I found is qt specific but I’m not sure to understand this error.
You must be logged in to reply to this topic.
Get involved in this forum: