Re: [Yade-users] [Question #406814]: kinetic energy in Yade
Question #406814 on Yade changed: https://answers.launchpad.net/yade/+question/406814 Status: Answered => Solved jiaying confirmed that the question is solved: Thank you, Jan. Sorry to reply so late. Your answers inspired me, and I will try to check the source code. In my simulations, I use more than 2 particles. Jiaying -- 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 #407563]: yadedaily installation does not contain ymport module
Question #407563 on Yade changed: https://answers.launchpad.net/yade/+question/407563 Michael Victor posted a new comment: Hi Jan, when you perform dir(yade) do you have the ymport module? I have tried both the apt-get install yade and the yadedaily install but neither have the ymport module. -- 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 #406774]: Translation engine can not work
Question #406774 on Yade changed: https://answers.launchpad.net/yade/+question/406774 Status: Answered => Solved Tina Asia 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 #404553]: isovaleurs with paraview
Question #404553 on Yade changed: https://answers.launchpad.net/yade/+question/404553 Yor1 posted a new comment: Hello Jan, Thank you for the answer. In fact i try to do a script python with which i output the figure with iso-lines of cracks number in a part of the medium. To output i have to introduce the coordinates of cracks and the number of cracks per part of medium. I have the coordinates of the cracks position. The problem is how can i obtain the cracks number per a part of medium. This is a short script with which we can have the isolines with python import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt matplotlib.rcParams['xtick.direction'] = 'out' matplotlib.rcParams['ytick.direction'] = 'out' delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) # difference of Gaussians Z = 10.0 * (Z2 - Z1) Best regards -- 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 #404553]: isovaleurs with paraview
Question #404553 on Yade changed: https://answers.launchpad.net/yade/+question/404553 Yor1 posted a new comment: import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt matplotlib.rcParams['xtick.direction'] = 'out' matplotlib.rcParams['ytick.direction'] = 'out' delta = 0.025 x = np.arange(-3.0, 3.0, delta) y = np.arange(-2.0, 2.0, delta) X, Y = np.meshgrid(x, y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0) Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1) # difference of Gaussians Z = 10.0 * (Z2 - Z1) # Create a simple contour plot with labels using default colors. The # inline argument to clabel will control whether the labels are draw # over the line segments of the contour, removing the lines beneath # the label plt.figure() CS = plt.contour(X, Y, Z) plt.clabel(CS, inline=1, fontsize=10) plt.title('Simplest default with labels') -- 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 #407624]: about the PyRunner
Question #407624 on Yade changed: https://answers.launchpad.net/yade/+question/407624 Status: Open => Answered Jan Stránský proposed the following answer: As you would type the commands into the console, you can write them to a python script (a text file with .py extension). Then you do in terminal the following commands. Have a look at [1] in case Linux is also new to you. cd path/to/the/script yade scriptName.py "path/to/the/script" is a directory where it is saved "yade" might be "yade-trunk", "yadedaily" or different according to your yade instalation "scriptName.py" is the actual name of the script (of course may have different name) Can it be affect the result? Evidently it affects the results very much :-) The script also reduces the need of globals() ans locals() calls.. cheers Jan [1] https://yade-dem.org/doc/tutorial-hands-on.html -- 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 #407624]: about the PyRunner
Question #407624 on Yade changed: https://answers.launchpad.net/yade/+question/407624 Status: Answered => Solved xjin 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 #407652]: negative or positive prescription of forceN
Question #407652 on Yade changed: https://answers.launchpad.net/yade/+question/407652 Status: Open => Answered Jan Stránský proposed the following answer: Hi Liu, see the source code of VTKReorder [1] and CpmPhys [2], the implementation differs by the sign. In Cpm, positive force is tension, so in Paraview output, positive force is compression (you can do a simple 2 particles test where you know the result in advance). You can use Paraview Calculator filter to swap the behavior. Cheers Jan [1] https://github.com/yade/trunk/blob/master/pkg/dem/VTKRecorder.cpp#L470 [2] https://github.com/yade/trunk/blob/master/pkg/dem/ConcretePM.cpp#L431 -- 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 #404553]: isovaleurs with paraview
Question #404553 on Yade changed: https://answers.launchpad.net/yade/+question/404553 Jan Stránský posted a new comment: Hi Jabrane, "part of medium" is the critical point here. I think the most straightforward approach is to map the values to a unstructured grid (where you can easily control what part of medium actually is). Paraview then easily plot contours on such unstructured grid. All in all, it is more paraview / data postprocessing in general question than yade question.. 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 #407555]: read Parameters from external file (non batch mode)
Question #407555 on Yade changed: https://answers.launchpad.net/yade/+question/407555 Status: Answered => Solved Fränz Sadler confirmed that the question is solved: Thank you very much Klaus, this solved my question. and you guessed right, I dont want to perform the simulations in batch mode (yet). Thanks again for the quick and detailed answer! Greetings, Fränz -- 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