Re: [Yade-users] [Question #701880]: How to print out the resultant volume fraction and particle velocity when using and yade._utils.getDepthProfiles ?
Question #701880 on Yade changed: https://answers.launchpad.net/yade/+question/701880 evagb54 posted a new comment: Thank you so much 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 #701880]: How to print out the resultant volume fraction and particle velocity when using and yade._utils.getDepthProfiles ?
Question #701880 on Yade changed: https://answers.launchpad.net/yade/+question/701880 Jan Stránský posted a new comment: Sometimes source code is your best friend [2].. Return value are 4 lists, phiAverage, velAverageX, velAverageY, velAverageZ, "the particle velocity and solid volume fraction (porosity) depth profile along the direction specified" [1] If you feel the documentation could/should be improved, you can leave issue on gitlab or you can improve it yourself. Cheers Jan [2] https://gitlab.com/yade- dev/trunk/-/blob/master/preprocessing/dem/Shop_02.cpp#L711 -- 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 #701880]: How to print out the resultant volume fraction and particle velocity when using and yade._utils.getDepthProfiles ?
Question #701880 on Yade changed: https://answers.launchpad.net/yade/+question/701880 evagb54 posted a new comment: Thanks Jan for your answer ! I put now: print('getDepthProfiles=',getDepthProfiles(volume=5, nCell=10, dz=0.01, zRef=-0.2, activateCond=False, radiusPy=0.004, direction=1)) And I got an output : getDepthProfiles= ([8.693513817544367e-06, 2.1940225267346392e-05, 2.825857349017413e-05, 3.635165178981084e-05, 4.1985122931045726e-05, 4.518961418992926e-05, 4.963131514277351e-05, 5.440247663118511e-05, 5.442319887393414e-05, 5.581927177963576e-05], [0.13044508959775933, 0.09997764253361512, 0.09245026146554286, 0.07039874359698961, 0.07116828160852169, 0.05118961499366149, 0.04536562722714461, 0.031509588146159936, 0.020066826633167112, 0.007321402790658226], [-0.020666013240931088, -0.005857346362148931, -0.01819194972174229, -0.005868693360661069, -0.013561537105707103, -0.014861412269833035, -0.012221712252093718, -0.011679894936359807, -0.011475990114426892, -0.006203810069869299], [-0.027785384528048202, -0.006505706271563382, 0.008280857116141222, 0.003305827970338495, 0.006249365694621043, 0.007905082908616478, 0.004967694606989477, 0.0003965486529809725, -0.0022199708491838633, 0.0017532363412655907]) However, I am not sure about the meaning of this. I am supposed to have the particle velocity and solid volume fraction (porosity) depth profile along the direction specified. Thanks again. -- 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 #701880]: How to print out the resultant volume fraction and particle velocity when using and yade._utils.getDepthProfiles ?
Question #701880 on Yade changed: https://answers.launchpad.net/yade/+question/701880 Status: Answered => Solved evagb54 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 #701880]: How to print out the resultant volume fraction and particle velocity when using and yade._utils.getDepthProfiles ?
Question #701880 on Yade changed: https://answers.launchpad.net/yade/+question/701880 Status: Open => Answered Jan Stránský proposed the following answer: >> please use () (assuming there are no attributes to pass) > Boost.Python.ArgumentError: The assumption is not fulfilled, see documentation [1] for required parameters Cheers Jan [1] https://yade- dem.org/doc/yade.utils.html#yade._utils.getDepthProfiles -- 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 #701880]: How to print out the resultant volume fraction and particle velocity when using and yade._utils.getDepthProfiles ?
Question #701880 on Yade changed: https://answers.launchpad.net/yade/+question/701880 Status: Answered => Open evagb54 is still having a problem: Hey Jérôme ! Thanks for your answer ! I tried it but I have this message: print('getDepthProfiles=',getDepthProfiles()) Boost.Python.ArgumentError: Python argument types in yade._utils.getDepthProfiles() did not match C++ signature: getDepthProfiles(double volume, int nCell, double dz, double zRef, bool activateCond, double radiusPy, int direction) -- 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 #701880]: How to print out the resultant volume fraction and particle velocity when using and yade._utils.getDepthProfiles ?
Question #701880 on Yade changed: https://answers.launchpad.net/yade/+question/701880 Status: Open => Answered Jérôme Duriez proposed the following answer: For an actual execution of functions such as getDepthProfiles (or any other Python function), please use () (assuming there are no attributes to pass) print('getDepthProfiles=',getDepthProfiles()) -- 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