Re: [Yade-dev] Contact between two different materials

2011-03-01 Thread Bruno Chareyre
Tried to inherit WireMat from FrictMat and using Ip2_FrictMat_FrictMat_FrictPhys() Law2_ScGeom_FrictPhys_CundallStrack() but got this: terminate called after throwing an instance of 'std::runtime_error' what(): Undefined or ambiguous IPhys dispatch for types FrictMat and WireMat.

Re: [Yade-dev] Contact between two different materials

2011-03-01 Thread Klaus Thoeni
Indeed, my fault. I forgot to change some of the ElastMat to FrictMat in the declaration. Strange that there was no error during compiling. It's working fine now. Thanks a lot Klaus On Tue, 1 Mar 2011 11:55:49 pm Bruno Chareyre wrote: Tried to inherit WireMat from FrictMat and using

Re: [Yade-dev] Contact between two different materials

2011-02-28 Thread Chiara Modenese
I saw that Chiara posted a similar questions last year but I couldn't find any implementation for that. So did anyone already implement something similar? Eh no in the end I did not need to do that so you will be the first. Good luck with that! Chiara Thanks Klaus

Re: [Yade-dev] Contact between two different materials

2011-02-28 Thread Klaus Thoeni
Hi! Tried to inherit WireMat from FrictMat and using Ip2_FrictMat_FrictMat_FrictPhys() Law2_ScGeom_FrictPhys_CundallStrack() but got this: terminate called after throwing an instance of 'std::runtime_error' what(): Undefined or ambiguous IPhys dispatch for types FrictMat and WireMat.

[Yade-dev] Contact between two different materials

2011-02-27 Thread Klaus Thoeni
Hi Guys! I try to implement an interaction between two different materials, e.g. between FrictMat and my WireMat. My first guess would be to implement (in WirePM.cpp): 1. Ip2_WireMat_FrictMat_FrictPhys 2. Law2_ScGeam_FrictPhys_WirePM Any comments or suggestions? I saw that Chiara posted a

Re: [Yade-dev] Contact between two different materials

2011-02-27 Thread Bruno Chareyre
Hi Klaus, It sounds correct. I think you are the first to do that. I don't know if it will apply in your case, but note that it is possible to make different materials interact without a Ip2_M1_M2_Phys functor, as long as M2 inherits from M1 (or vice-versa). See for instance: