Hi, You need to create the type of interaction that will contain all the data for Mindlin + capillary. In the case of FrictPhys, we added the capillary data by using inheritance: class CapillaryPhys : public FrictPhys (CapillaryPhys.hpp)
OTOH, MindlinPhys also inherits from FrictPhys: class MindlinPhys: public FrictPhys (HertzMindlin.hpp) The best thing to do is to derive the new type from MindlinPhys: class MindlinCapillaryPhys: public MindlinPhys Then the functor you just created will have to instantiate this new type of interaction. Make sure that Ip2_FrictMat_FrictMat_MindlinCapillaryPhys reproduces the behaviour of Ip2_FrictMat_FrictMat_MindlinPhys for the solid part, as found in HertzMindlin.cpp (lines 40 to 96). For that matter, you will probably be inclined to duplicate the code, but we can avoid that in the end when everything else is solved. Bruno On 01/11/11 10:08, Christian Jakob wrote: > Dear Mr. Chareyre, > > Since two hours I am looking at the source code of > Ip2_FrictMat_FrictMat_CapillaryPhys and I really do not know what to > do ... > > First I created a Ip2_FrictMat_FrictMat_MindlinCapillaryPhys.hpp and a > Ip2_FrictMat_FrictMat_MindlinCapillaryPhys.cpp by simply copy and > rename the Ip2_FrictMat_FrictMat_CapillaryPhys code. Then I replaced > the cross references, so that we have a > Ip2_FrictMat_FrictMat_MindlinCapillaryPhys, that is doing the same as > Ip2_FrictMat_FrictMat_CapillaryPhys. > > I do not understand the structure of YADE. Can you give me a hint, > what there is to do in the next step? > > Christian. > -- _______________ Bruno Chareyre Associate Professor ENSE³ - Grenoble INP 11, rue des Mathématiques BP 46 38402 St Martin d'Hères, France Tél : +33 4 56 52 86 21 Fax : +33 4 76 82 70 43 ________________ _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

