Can I use Capillary and Lubrication Laws at the same time?

Asked by Wang Yu

Hello,

I want to use both Lubrication law and Capillary law in my simulation.

Do I just have to add [Law2_ScGeom_CapillaryPhys_Capillarity(capillaryPressure = 10), Law2_ScGeom_ImplicitLubricationPhys()] to the engine? Does this work in code?

Thanks,
Yu

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Hi,

Assuming your code snippet [Law2_ScGeom_CapillaryPhys_Capillarity(capillaryPressure = 10), Law2_ScGeom_ImplicitLubricationPhys()] refers to the last part of InteractionLoop(..) in O.engines in your script, I would recall that Law2_ScGeom_CapillaryPhys_Capillarity(), in spite of its misleading name, is not a LawFunctor but a GlobalEngine that has to be on its own in O.engines (between InteractionLoop and NewtonIntegrator typically)

See example e.g. at https://gitlab.com/yade-dev/trunk/-/blob/master/examples/capillaryLaplaceYoung/capillaryBridge.py

(Sorry for not answering about a possible combination with Law2_ScGeom_ImplicitLubricationPhys, I can just recall Law2_ScGeom_CapillaryPhys_Capillarity requires interaction physics of CapillaryPhys or MindlinCapillaryPhys types)

Revision history for this message
Wang Yu (wangyu93) said :
#2

Hello Jérôme,
Thanks a lot for your answer, it helped me a lot as I haven't really used Law2_ScGeom_CapillaryPhys_Capillarity().

From what I understand now, Law2_ScGeom_ImplicitLubricationPhys() is a lawFunctor, so can it not be used with another Law (eg Law2_ScGeom6D_CohFrictPhys_CohesionMoment())?

Actually I want to not only involve Lubrication and Capillarity in the model, but also include rolling resistance in the model, which does not exist in the Law2_ScGeom_ImplicitLubricationPhys(). Can someone help me how to achieve this?

Best regards
Yu

Revision history for this message
Jérôme Duriez (jduriez) said :
#4

Generally speaking, there is no limitation against having several Law2 (real Law2 functors) in InteractionLoop, see https://yade-dem.org/doc/user.html#law2-functor-s

Whether it actually is necessary / will exactly work like you want it on your combination of bodies shape and interaction physics may possible require a bit of thinking.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.