Export stress contour of interaction between polyhedra and spheres

Asked by Mehrad

Hi
My problem is that i'm a basic user of YADE and i need to know how can export stress contour of interaction between polyhedra and spheres
Actually, What is the exact script for exporting stress and collision of interaction between spheres??

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
William Chevremont (william.chevremont) said :
#1

Hi,
Very recently, I introduce PDFEngine, that seems to make what you want, but I tested it only for Sphere-Sphere interaction (maybe need extra development to handle polyhedra-sphere interaction). It give you global stress repartition, distance between objects and relative velocity.

To use it, you just have to add

PDFEngine(filename="PDF.txt", virtPeriod=.1)

to your engines. It'll write "PDF.txt" with column like normalStress_xx(theta, phi). You can change angle discretization (see options [1])

Be sure to update yade before using it (committed only 3 days ago)

[1] https://yade-dem.org/doc/yade.wrapper.html?highlight=pdfengine#yade.wrapper.PDFEngine

Revision history for this message
Mehrad (hossein.pianist) said :
#2

Thank you so much dear William :)

your advices helped me a lot but, is it possible for you to send me your full script about this problem that you exported stress contour about Sphere-Sphere interaction which you mentioned above .

Revision history for this message
William Chevremont (william.chevremont) said :
#3

Hi,

Full script is useless because of very specific stuff done inside, this will confuse more than explain.

The only modification to be done is in the O.engines part. My looks like:

engines = [ForceResetter(),
    InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1.5, label="aabb")],verletDist=-0.1,allowBiggerThanPeriod=False),
    InteractionLoop(
        [Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.5,label="Ig2")],
        [Ip2_FrictMat_FrictMat_LubricationPhys(eta=m_viscosity,eps=m_epsilon)],
        [Law2_ScGeom_ImplicitLubricationPhys(activateNormalLubrication=True,
                                                                activateTangencialLubrication=True,
                                                                activateTwistLubrication=True,
                                                                activateRollLubrication=True,
                                                                debug=True,
                                                                resolution = 3,
                                                                theta = 1,
                                                                SolutionTol = 1.e-8,
                                                                MaxIter = 50)]
    ),
    NewtonIntegrator(damping=0.),
    GlobalStiffnessTimeStepper(active=1,timeStepUpdateInterval=100,timestepSafetyCoefficient=0.8, defaultDt=1e-6,label="TimeStepper",viscEl=False),
    PDFEngine(filename="PDF.txt", virtPeriod=.1)
    ];

The output file (PDF.txt) is then post-proceeded with MatLab in order to plot the stress tensor component magnitude as a function of the position (theta, phi).

Can you help with this problem?

Provide an answer of your own, or ask Mehrad for more information if necessary.

To post a message you must log in.