Re: [Yade-users] [Question #706729]: RAM usage

2023-05-30 Thread Jérôme Duriez
Question #706729 on Yade changed:
https://answers.launchpad.net/yade/+question/706729

Jérôme Duriez proposed the following answer:
If the Python workflow is still an option for you, you naturally need to
call somewhere "ramFP()" in your script (and not only define that
function with the def .. block).

-- 
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 #706729]: RAM usage

2023-05-29 Thread Robert Caulk
Question #706729 on Yade changed:
https://answers.launchpad.net/yade/+question/706729

Status: Open => Answered

Robert Caulk proposed the following answer:
>From the terminal, use `htop`

-- 
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 #706729]: RAM usage

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

Status: Answered => Open

Carine Tanissa is still having a problem:
>From the Terminal not from python.
I tried adding the script to my python code, it did not show the RAM usage. 
This is my script:
# -*- 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, -0.000410948821957522, 

Re: [Yade-users] [Question #706729]: RAM usage

2023-05-22 Thread Jérôme Duriez
Question #706729 on Yade changed:
https://answers.launchpad.net/yade/+question/706729

Status: Needs information => Answered

Jérôme Duriez proposed the following answer:
You can find a Python function dedicated to this purpose at

https://gitlab.com/yade-
dev/trunk/-/blob/master/examples/levelSet/ramFP.py

-- 
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 #706729]: RAM usage

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

Status: Open => Needs information

Jan Stránský requested more information:
It depends on actual need and use case.
From python? from terminal? ... ?

search something like
linux process ram usage

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 #706729]: RAM usage

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

How can i check the RAM usage per simulation?

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