installation of Yade in Mac OS X

Asked by ozge

Hi,

I was wondering that if it is possible to install Yade into Mac OS X or not?

thanks a lot,

ozge

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Luc Scholtès
Solved:
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

There is currently no easy out of the box way to do it. Your best bet is to download a virtual desktop software (VMware, Parallels, VirtualBox etc.) and install Linux Ubuntu on it.

[1]https://answers.launchpad.net/yade/+question/642955
[2]https://answers.launchpad.net/yade/+question/225200

Revision history for this message
ozge (osgedc) said :
#2

Hi,

I've already installed Yade on my mac via parallels desktop. However, Yade is working very slow. In addition, I also recieved an error after python command such as:

apple@ubuntu:~/workspace/ANISOTROPIC/withouthole/triaxial$ python multiPlot.py
Traceback (most recent call last):
  File "multiPlot.py", line 204, in <module>
    legend(('0','2','5','10','20'),1)
  File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 3553, in legend
    ret = gca().legend(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 538, in legend
    self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
  File "/usr/lib/python2.7/dist-packages/matplotlib/legend.py", line 385, in __init__
    self._init_legend_box(handles, labels, markerfirst)
  File "/usr/lib/python2.7/dist-packages/matplotlib/legend.py", line 626, in _init_legend_box
    for orig_handle, lab in zip(handles, labels):
TypeError: zip argument #2 must support iteration

Do have any suggestion for me to make the running faster and how to solve the error given above ?
By the way, I installed Ubuntu 16.04.3.

thanks a lot.

ozge

Revision history for this message
Jan Stránský (honzik) said :
#3

Hello,

for specific problems or errors, please post the code (ideally MWE [1]) you use.

> Yade is working very slow

please be more specific here, especially "work". GUI manipulations? Too few iterations/second?. Do you have a reference that on a different machine it works faster?
How much RAM did you dedicate to it? What dos 'top' command says about memory usage?

cheers
Jan

[1] https://yade-dem.org/wiki/Howtoask

Revision history for this message
Best Luc Scholtès (luc) said :
#4

Hello Ozge,

The error you mentioned is not related to Yade install at all. It is related to a line in one of your python scripts. More specifically, it is related to python (matplotlib) and does not have anything to do with Yade since it results from this command line:

python multiPlot.py

as mentioned in the error message (most of the time, error messages are quite clear).

In that case in particular, (as mentioned in the error message), it is related to the line 204 of your script

legend(('0','2','5','10','20'),1)

The version of python that you use needs this instead:

legend(('0','2','5','10','20'),loc=1)

Regarding Yade "working slow":

How did you set up your virtual machine? Usually, when setting up the virtual machine, you specify number of cores, memory space and so on.

Luc

Revision history for this message
ozge (osgedc) said :
#5

Thank you so much for your reply. Now, the script works !

About "working slowly":
I bought a product called Parallels Desktop. It has 8GB ram and 4 vCPUs for each VM.
But, building only one package with 5000 particles using Yade takes 15 minutes ! Running a simulation on this package for 200000 iterations takes very long hours.

I keep on trying :)
ozge

Revision history for this message
ozge (osgedc) said :
#6

Thanks Luc Scholtès, that solved my question.

Revision history for this message
Robert Caulk (rcaulk) said :
#7

Hello Ozge,

>I bought a product called Parallels Desktop. It has 8GB ram and 4 vCPUs for each VM.

You can adjust these values within the software preferences (assuming your desktop has more of each to offer the software). I guess it would be helpful for you to provide your mac system specs (RAM, CPU) here.

I have a feeling your mac has 8 GB of RAM total (correct me if I am wrong). Don't forget, your mac needs RAM and CPU to run its own OS, and parallels wants RAM to run Ubuntu. It is possible parallels is creating vRAM, which would account for your slow downs.

>But, building only one package with 5000 particles using Yade takes 15 minutes !

Packing creation time depends entirely on how you are creating the packing (randomDensePack, makeCloud, etc.) and the parameters you are setting (e.g. porosity for randomDensePack). A minimal working example (MWE) would be worth its bit weight in gold here :-)

>Running a simulation on this package for 200000 iterations takes very long hours.

Depends on which simulation you are trying to run. I guess it would be helpful if you provided that information as well.

Best,

Robert