Re: [Yade-users] [Question #707367]: Adjusting the friction angle between dynamic components (spheres) and non-dynamic components (facets)

2023-07-27 Thread Jan Stránský
Question #707367 on Yade changed:
https://answers.launchpad.net/yade/+question/707367

Jan Stránský posted a new comment:
> whether I can also make a distinction in static and sliding friction?

in general (e.g. implementing it from scratch) yes.

> Is such a distinction possible with a standard material model?

I am not sure, maybe you can open a new specific question o this topic
(as this might be "deep" in the thread for people able to answer to
actually answer).

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 #707367]: Adjusting the friction angle between dynamic components (spheres) and non-dynamic components (facets)

2023-07-25 Thread Paul Schröder
Question #707367 on Yade changed:
https://answers.launchpad.net/yade/+question/707367

Status: Open => Solved

Paul Schröder 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 #707367]: Adjusting the friction angle between dynamic components (spheres) and non-dynamic components (facets)

2023-07-25 Thread Paul Schröder
Question #707367 on Yade changed:
https://answers.launchpad.net/yade/+question/707367

Status: Answered => Open

Paul Schröder is still having a problem:
Thank you for your answer Jan,
as far as I can see now, the core question is answered with it. However, I 
would still be interested in the further, whether I can also make a distinction 
in static and sliding friction? Is such a distinction possible with a standard 
material model?

If someone would like to learn from this question in the future, I summarize my 
knowledge here:
> 2) How it behaves in actual simulation
In order to examine the particle contact in the script belonging to the 
question, I have inserted the code suggested by Jan accordingly at my example 
within the function "Statemaschine()" after the definition of "Krit4":
### 
if Krit4:
intr = O.interactions[Partikelmenge0+0,Platte1groesse0+4]
tanfa = intr.phys.tangensOfFrictionAngle
print("actually assigned value:", tanfa)
###

Then I also noticed that further settings the smaller friction value of both 
contact partners is taken over. To change that, I have applied the suggested 
"MatchMaker" according to [7]. The appropriate formulation, which is 
supplemented into the definition of the engines, I adapted for it as follows. I 
have added here the friction value leading steel-steel, even if this is not 
needed in my simulation.
###

[Ip2_FrictMat_FrictMat_FrictPhys(frictAngle=MatchMaker(matches=((idVersuchsgut, 
idStempelPlatte, atan(0.75)),(idVersuchsgut, idVersuchsgut, 
.65),(idStempelPlatte, idStempelPlatte, atan(0.12)],
###

[7] https://answers.launchpad.net/yade/+question/244498

-- 
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 #707367]: Adjusting the friction angle between dynamic components (spheres) and non-dynamic components (facets)

2023-07-24 Thread Jan Stránský
Question #707367 on Yade changed:
https://answers.launchpad.net/yade/+question/707367

Status: Open => Answered

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

> frictionAngle=0.65; i.e. approx. 37.5°
> the friction coefficient μ ( approx. 0.75)

μ=0.75 means frictionAngle=atan(0.75)=36.9°
Almost the same as case 1.
So the question is if to bother with two values at all :-)

> To check this friction value I wrote the script.

There are two aspects.
1) What value is actually assign
2) How it behaves in actual simulation

Your script seems to do the option 2, where many factors may influence the 
result (e.g. dynamic behavior of the sphere).
I suggest first the method 1, i.e. take the interaction and check the actual 
value, i.e.:
###
intr = O.interactions[0,1] # for example bodies 0 and 1
tanfa = intr.phys.tangensOfFrictionAngle # [4]
###

> My main question is how to set the coefficient of friction for the
facet material to 0.75.

As you do in the script

How to apply it to different material combinations, see below.

> Have I reached this friction value requested by me and an error in
this script?

As mentioned above, the "real" simulation may influence the results.
For friction measurement, I suggest making all particles with prescribed motion 
such that forces are just measured but do not influence the particles.

> ...

In Yade design, material does not care on what bodies or shapes it is
assigned. So there is nothing like "non-dynamic material"

setContactFriction [5] is an auxiliary function to change friction angle on all 
The documentation sentence (and implementation) "The friction for non-dynamic 
bodies is not modified" is a bit misleading, it actually may or may not be 
modified, according to how the materials are shared among particles.

To use different values of certain quantity for different material
combinations, specify MatchMaker for frictAngle parameter of
Ip2_FrictMat_FrictMat_FrictPhys

Cheers
Jan

[4] 
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.FrictPhys.tangensOfFrictionAngle
[5] https://yade-dem.org/doc/yade.utils.html#yade._utils.setContactFriction
[6] 
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Ip2_FrictMat_FrictMat_FrictPhys.frictAngle

-- 
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


[Yade-users] [Question #707367]: Adjusting the friction angle between dynamic components (spheres) and non-dynamic components (facets)

2023-07-24 Thread Paul Schröder
New question #707367 on Yade:
https://answers.launchpad.net/yade/+question/707367

Hello dear YADE community,

I would like to load particles (spheres) in a simulation. These should have the 
following properties:
1. within the bulk of particles a certain friction value should be set in the 
form of an angle of repose (e.g. frictionAngle=0.65; i.e. approx. 37.5° for the 
material "Granodiorith").
2. furthermore, the friction coefficient μ ( approx. 0.75) between the particle 
material and the simulation surfaces made of facets should also be set.

I have already set the value for 1. via the "FrictMat" with "frictionAngle". 
For the 2nd value, I have made a conversion for the angle of repose according 
to [1] with the arctan and also set via the "FrictMat" with "frictionAngle". To 
check this friction value I wrote the script below. However, this shows me that 
I have not set the friction value required in 2.: μ = 0.087
In the script itself, a normal force is first applied to a particle by 
"Platte1" and "Platte2". Then "Platte3" moves towards the particle, which 
counteracts the frictional force between "Platte1", "Platte2" and the particle. 
The friction force is measured by the force reached by "plate3". The mean value 
of 10 of these frictional forces in relation to the normal force is then used 
to determine the friction value.

My main question is how to set the coefficient of friction for the facet 
material to 0.75. By just trying it out myself, I also come up with the 
following questions:
Have I reached this friction value requested by me and an error in this script?
Are there any other ways to set friction properties for the materials, or what 
does the command "setContactFriction" do if it does not affect the non-dynamic 
materials? This parameter was also mentioned in a similar question [2] in this 
context.
Does the type of calculation algorithm [3] have something to do with the fact 
that I get a different result? What must be done so that I still achieve the 
required setting?
How can I set a friction value to non-dynamic bodies like in 2.

With kind regards, Paul 


[1] It is an external link which says: μ = tan(frictionAngle), if necessary 
just ask for link.
[2] https://answers.launchpad.net/yade/+question/700843
[3] https://yade-dem.org/doc/formulation.html?highlight=frictphys 




# YADE-Version: 2022.01a

## Importieren zusaetzlicher Module
from yade import geom, pack, plot, qt
from math import pi, atan
from statistics import mean


## Definieren der verwendeten Parameter
dP = 10e-3   # Partikeldurchmesser

DIM = 2* dP
dPlt = 0.01*dP
Ueberlappung = 5e-2*dP   # realisiert Anpresskraft
Platte3vel = 5e-3# wirkt Reibkraft entgegen
Platte1vel = 5e-3
Platte2vel = -Platte1vel
Versuchszahl = 10
Normalkraft = 50

# Definieren der Materialparameter
EingabegroesseReibungStahl = 0.75
print("angestrebter Reibwert:", EingabegroesseReibungStahl)

idVersuchsgut = O.materials.append(FrictMat(young=70e9,poisson=.25, 
density=2700, frictionAngle=.65, label='Versuchsgut'))
idStempelPlatte = O.materials.append(FrictMat(young=.25e9,poisson=.28, 
density=7850, frictionAngle=atan(EingabegroesseReibungStahl), label='Platte'))

## Generieren der Simulationskomponenten
Simulationskoerper = 0

PartikelIDs = O.bodies.append(utils.sphere((0,0,0),radius=dP/2, 
material='Versuchsgut'))
Partikelmenge0 = Simulationskoerper
Partikelmenge1 = len(O.bodies)
Partikelmenge = len(O.bodies)-Simulationskoerper
Simulationskoerper += Partikelmenge

Platte1IDs = O.bodies.append(geom.facetBox((0,dP/2+dPlt+1e-2*dP,0), (DIM, dPlt, 
DIM), color=(0, 1, 0), wire=False, material='Platte'))
Platte1groesse0 = Simulationskoerper
Platte1groesse1 = len(O.bodies)
Platte1groesse = len(O.bodies)-Simulationskoerper
Simulationskoerper += Platte1groesse

Platte2IDs = O.bodies.append(geom.facetBox((0,-dP/2-dPlt-1e-2*dP,0), (DIM, 
dPlt, DIM), color=(0, 1, 0), wire=False, material='Platte'))
Platte2groesse0 = Simulationskoerper
Platte2groesse1 = len(O.bodies)
Platte2groesse = len(O.bodies)-Simulationskoerper
Simulationskoerper += Platte2groesse

Platte3IDs = O.bodies.append(geom.facetBox((-dP/2-dPlt-5e-3*dP,0,0), (dPlt, dP, 
DIM), color=(0, 1, 0), wire=False, material='Platte'))
Platte3groesse0 = Simulationskoerper
Platte3groesse1 = len(O.bodies)
Platte3groesse = len(O.bodies)-Simulationskoerper
Simulationskoerper += Platte3groesse


## Definieren des Ausgangszustandes von Laufvariablen
Platte1kraft = 0
Platte2kraft = 0
Platte3kraft = 0
Partikelkraft = 0
maxPartikelvel = 0
Haftreibwert = []
Bewegung = False
Iteration = False

Phase0 = "Anfang"
Phase01 = "Normalkraft"
Phase1 = "Annaeherung"
Phase2 = "Entfernung"
Phase3 = "Ende"
Iterationsphase = Phase0


## Definieren der Engines
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(), Bo1_Facet_Aabb(),]),