Re: [Yade-users] [Question #706758]: Force between wall and particle

2023-06-09 Thread Launchpad Janitor
Question #706758 on Yade changed:
https://answers.launchpad.net/yade/+question/706758

Status: Needs information => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
state without activity for the last 15 days.

-- 
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 #706758]: Force between wall and particle

2023-05-25 Thread Jan Stránský
Question #706758 on Yade changed:
https://answers.launchpad.net/yade/+question/706758

Status: Open => Needs information

Jan Stránský requested more information:
> i want to check

it depends on what, how, ... it should do..
print?
save?
check = compare to some expected value?
...?

> at iter= 50

it depends on what, how, ... it should do..
inside finish() function?
as a separate PyRunner?
O.run(500,wait=True)?
... ?

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 #706758]: Force between wall and particle

2023-05-24 Thread Carine Tanissa
Question #706758 on Yade changed:
https://answers.launchpad.net/yade/+question/706758

Status: Needs information => Open

Carine Tanissa gave more information on the question:
If i want to check the force between all the particles at the end of the
simulation (at iter= 50) with the wall.

-- 
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 #706758]: Force between wall and particle

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

Status: Open => Needs information

Jan Stránský requested more information:
> How would i incorporate it into this code

it depends on what, when, how, ... it should do..

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 #706758]: Force between wall and particle

2023-05-24 Thread Carine Tanissa
Question #706758 on Yade changed:
https://answers.launchpad.net/yade/+question/706758

Status: Answered => Open

Carine Tanissa is still having a problem:
How would i incorporate it into this code to get the interaction between the 
bottom of the box "bottom" and the randomly generated polyhedra:
# -*- coding: utf-8 -*-
"""
Created on Thu May 18 15:08:40 2023

@author: Carine
"""

from __future__ import print_function
from yade import plot, polyhedra_utils, qt
import numpy as np
wire = False


##
# Need to define polyhedral material for 
Ip2_PolyhedraMat_PolyhedraMat_PolyhedraPhys() to work


m = PolyhedraMat() #defines polyhedral properties
m.density = 2600 #kg/m^3 
m.Ks = 130E3
m.Kn = 160E3 #N/m
m.frictionAngle = 0.54 #tan(31)=0.6, so 31 is 0.54 rad and the input is in rad 
O.materials.append(m) #adds material to yade

##
# Defining polyhedra shapes in terms of their vertices so technically defining 
vertices, dimaters are 1 mm

t1_coords = (
(0.00033091155911506355, -0.0003242136881048748, -0.00033985697995026614),
(0.00033091155911506355, 0.00038088860029783984, -0.00033985697995026614),
(-0.0003662726180924643, -0.0003242136881048748, -0.00033985697995026614),
(-0.8498849969921465, -0.0003242136881048748, 0.0003440300800075135),
(0.00033091155911506355, 0.95674950813, 0.0003055457315613278),
(0.00033091155911506355, 0.00038088860029783984, 0.00025920106521738856),
(-0.0003662726180924643, 0.00038088860029783984, 0.00020493952283110147),
(-0.0003662726180924643, -0.0003242136881048748, 0.00032033663438746235)
)


t2_coords = (
(-0.00014309681589806823, -0.0002272260744496193, 0.00038401015387691325),
(0.000358010967088001, -0.0002272260744496193, 0.00038401015387691325),
(0.0006643612513710932, -0.0002272260744496193, -0.00011312310165154156),
(0.9399535164170355, -0.0002272260744496193, -0.0004453308199780648),
(0.00028983044257111084, 0.6624457321674196, -0.0002657890485909965),
(-0.0003263752923764808, 0.9806342306798776, -0.00021177708099387714),
(-0.00014309681589806823, 0.0005961347452425924, 0.5063802822300939),
(-0.00027303541351821494, 0.0002667732486219123, 0.00018065628098092602),
(0.00037721690590733186, -0.964985942102914, 0.0003057083518969001),
(-0.00047649283929694435, -0.0002272260744496193, -0.00011312310165154156)
)


t3_coords = (
(0.0002600238357760947, 0.0002851848128988758, -0.00024701557197894438),
(0.00016012830358156934, 0.0003484895606572876, -0.00018513953373961826),
(-0.00016008801057746095, 0.0003484895606572876, -0.00018513953373961826),
(-0.00026000224348968266, 0.0002851848128988758, -0.00024701557197894438),
(-0.00038471948905778405, 0.0002025288577517229, -0.915820081211398),
(-0.00038471948905778405, -0.00020256899286437123, -0.915820081211398),
(-0.00023030565260400093, -0.00040365230950484085, 0.0002613542406089658),
(-0.00016008801057746095, -0.000500774842940389, 0.00018311089846328836),
(0.00016012830358156934, -0.000500774842940389, 0.00018311089846328836),
(0.00023034594560810932, -0.00040365230950484085, 0.0002613542406089658),
(0.00038475978206189245, -0.00020256899286437123, -0.915820081211398),
(0.00038475978206189245, 0.0002025288577517229, -0.915820081211398),
(0.00023034594560810932, 0.00040361217439219253, 0.0002613542406089658),
(0.00016012830358156934, 0.000500734707827741, 0.00018311089846328836),
(-0.00016008801057746095, 0.000500734707827741, 0.00018311089846328836),
(-0.00023030565260400093, 0.00040361217439219253, 0.0002613542406089658),
(-0.00016008801057746095, 0.0002025288577517229, 0.0004286664300572351),
(-0.00016008801057746095, -0.00020256899286437123, 0.0004286664300572351),
(0.00016012830358156934, -0.00020256899286437123, 0.0004286664300572351),
(0.00016012830358156934, 0.0002025288577517229, 0.0004286664300572351),
(0.00016012830358156934, 0.0002025288577517229, -0.0004030812475869826),
(-0.00016008801057746095, 0.0002025288577517229, -0.0004030812475869826),
(-0.00016008801057746095, -0.00020256899286437123, -0.0004030812475869826),
(0.00016012830358156934, -0.00020256899286437123, -0.0004030812475869826),
(0.0002600238357760947, -0.0002852249480115241, -0.00024701557197894438),
(0.00016012830358156934, -0.000348529695769936, -0.00018513953373961826),
(-0.00016008801057746095, -0.000348529695769936, -0.00018513953373961826),
(-0.00026000224348968266, -0.0002852249480115241, -0.00024701557197894438)
)



t4_coords = (
(0.000425451497911189, 0.000410663686410634, 0.000414950888597802),
(0.000568476283629213, 0.000328088287631944, 0.00033237549181911),
(0.000568476283629213, -0.00032837342517883, 0.00033237549181911),
(0.000425451497911189, 

Re: [Yade-users] [Question #706758]: Force between wall and particle

2023-05-22 Thread Jan Stránský
Question #706758 on Yade changed:
https://answers.launchpad.net/yade/+question/706758

Status: Open => Answered

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

interaction = O.interactions[wallID, polyhedronID]
phys = interaction.phys
force = phys.normalForce + phys.shearForce

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


[Yade-users] [Question #706758]: Force between wall and particle

2023-05-22 Thread Carine Tanissa
New question #706758 on Yade:
https://answers.launchpad.net/yade/+question/706758

How can i obtain the force between the wall and a polyhedral particle

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