Re: [Yade-users] [Question #683706]: contact law between bodies with different materials

2020-10-27 Thread Jan Stránský
Question #683706 on Yade changed:
https://answers.launchpad.net/yade/+question/683706

Jan Stránský posted a new comment:
There are many ways, please open a new question to get reasonable answers
cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683706]: contact law between bodies with different materials

2020-10-27 Thread Jingchi Yu
Question #683706 on Yade changed:
https://answers.launchpad.net/yade/+question/683706

Jingchi Yu posted a new comment:
Hi,
Jan and Leonard,

I just see your discussion about the matchmaker, I am wondering that if
I want to make  cement-cement interaction is CohFrictPhys, sand-sand and
sand-cement are all  CohFrictPhys, whether it is ok to use the
matchmaker?

If it cannot work, how I can define the cohesive bond between the two
materials?

Thanks!

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683706]: contact law between bodies with different materials

2019-09-06 Thread Leonard
Question #683706 on Yade changed:
https://answers.launchpad.net/yade/+question/683706

Status: Open => Solved

Leonard confirmed that the question is solved:
Thanks Jan, I will look at how to use MatchMaker to achieve this.

cheers
Leonard

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683706]: contact law between bodies with different materials

2019-09-06 Thread Leonard
Question #683706 on Yade changed:
https://answers.launchpad.net/yade/+question/683706

Leonard confirmed that the question is solved:
Thanks Jan Stránský, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683706]: contact law between bodies with different materials

2019-09-06 Thread Jan Stránský
Question #683706 on Yade changed:
https://answers.launchpad.net/yade/+question/683706

Jan Stránský posted a new comment:
I don't think there is an automatic way..

maybe using just CohFrictMat/CohFrictPhys and using MatchMaker for sand-
sand contacts to behave like FrictPhys?

Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683706]: contact law between bodies with different materials

2019-09-06 Thread Jan Stránský
Question #683706 on Yade changed:
https://answers.launchpad.net/yade/+question/683706

Status: Open => Answered

Jan Stránský proposed the following answer:
Hi,

> what kind of contact law yade uses for dealing with sand-cement
interaction?

Ip2_FrictMat_FrictMat_FrictPhys
Because CohFrictMat is derived from FrictMat and if CohFrictMat-FrictMat Ip2 is 
not found, Yade tries it with base classes (FrictMat-FrictMat in this case).

You can try on a simple 3 sphere example:
###
sand = FrictMat(label='sand')
cement = CohFrictMat(label='cement')
O.materials.append(sand)
O.materials.append(cement)
O.engines=[
   ForceResetter(),
   InsertionSortCollider([Bo1_Sphere_Aabb()]),
   InteractionLoop(
  [
 Ig2_Sphere_Sphere_ScGeom(),
 Ig2_Sphere_Sphere_ScGeom6D()
  ],
  [
 Ip2_FrictMat_FrictMat_FrictPhys(),
 Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow = 
True,setCohesionOnNewContacts = True)
  ],
  [
 Law2_ScGeom_FrictPhys_CundallStrack(),
 Law2_ScGeom6D_CohFrictPhys_CohesionMoment()
  ],
   ),
   NewtonIntegrator(damping=0.4),
]
s1 = sphere((0.0,0,0),1,material=sand)
s2 = sphere((0.1,0,0),1,material=sand)
c1 = sphere((0.2,0,0),1,material=cement)
c2 = sphere((0.3,0,0),1,material=cement)
O.bodies.append((s1,s2,c1,c2))
O.step()
for intr in O.interactions:
   i1,i2 = intr.id1,intr.id2
   b1,b2 = [O.bodies[i] for i in (i1,i2)]
   m1,m2 = [b.mat.label for b in (b1,b2)]
   print(m1,m2,intr.phys)
###

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp