Questions about the implementation of density diffusion using delta SPH

89 views
Skip to first unread message

zipen...@hotmail.com

unread,
Jan 28, 2021, 10:17:39 PM1/28/21
to pysph-users
Hi folks,

Recently, I want to employ the density diffusion term in the continuity equation. Luckily, I found that the PySPH has relevant equations implemented as follows.



However, I'm using the old version PySPH 1.04a  with Python 2.7. In order to successfully run the simulation with delta SPH, I manually installed the compyle in python and put the linalg.py in sph.wc. Nevertheless, the code cannot run successfully. Therefore, may I ask, are there any suggestions or examples that have been run successfully? If there are, would you help me? 

I have thought about using the newest version with python 3.0. However, the error still exists. The attached file is the error file using python 3.0 with PySPH 1.06a.


Message has been deleted

zipen...@hotmail.com

unread,
Jan 28, 2021, 10:25:12 PM1/28/21
to pysph-users
Here are the error information and part of my code with the implemented equation.
error.txt
Part of the code.txt

A Dinesh

unread,
Jan 30, 2021, 10:38:36 AM1/30/21
to zipen...@hotmail.com, pysph-users
Hello,

Can you tell us, what exact equation is giving you the trouble? You can check that by commenting the equations and checking which equation is leading to the error.

On 29-Jan-2021, at 8:55 AM, zipen...@hotmail.com <zipen...@hotmail.com> wrote:

Here are the error information and part of my code with the implemented equation.
--
You received this message because you are subscribed to the Google Groups "pysph-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pysph-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pysph-users/e53f7581-a205-4dd2-8401-6e6ba1643b28n%40googlegroups.com.
<error.txt>
<Part of the code.txt>

Prabhu Ramachandran

unread,
Jan 31, 2021, 6:55:59 AM1/31/21
to zipen...@hotmail.com, pysph-users
On 1/29/21 08:47, zipen...@hotmail.com wrote:
Hi folks,

Recently, I want to employ the density diffusion term in the continuity equation. Luckily, I found that the PySPH has relevant equations implemented as follows.



However, I'm using the old version PySPH 1.04a  with Python 2.7. In order to successfully run the simulation with delta SPH, I manually installed the compyle in python and put the linalg.py in sph.wc. Nevertheless, the code cannot run successfully. Therefore, may I ask, are there any suggestions or examples that have been run successfully? If there are, would you help me?

I took a quick look at your error and it seems like something is wrong in your installation.  The errors all pertain to Python 3.7 and not Python 2.7 (which by the way is no longer really supported by any other libraries).

I would suggest setting this up in a fresh conda environment.  I would also suggest using the latest version from master instead of the one on pypi.

Regards,
Prabhu

zipen...@hotmail.com

unread,
Feb 1, 2021, 8:52:48 AM2/1/21
to pysph-users
Hi Dinesh, 

It's glad to see you again. There is no error in the equation since I have checked them all. It seems like it's the problem of the version collision or the manual installation of the compyle. Just like Prabhu indicated that it may be caused by the incompatibility between versions. Anyway, I'm going to reinstall the pysph and employ the python 3.7, thanks for your help~

zipen...@hotmail.com

unread,
Feb 1, 2021, 8:58:45 AM2/1/21
to pysph-users
Dear  Prabhu,

Thank you for your professional suggestions. Yes, I also think it's the problem of the incompatibility, and I'm going to reinstall the PySPH. I usually install it using pip. However, I don't quite understand the last suggestion 'using the latest version from master instead of the one on pypi'

Since I get used to the old PySPH, the new way of installing PySPH from master is not quite clear for me, would you give me some more details on how to using the latest version from master. I think this will also help other users like me.

Regards,
Zipeng

A Dinesh

unread,
Feb 2, 2021, 3:23:56 AM2/2/21
to zipen...@hotmail.com, pysph-users
Hello Zipeng,

Do you know how to install python packages from source? If not, https://stackoverflow.com/questions/19048732/python-setup-py-develop-vs-install this might help.

There is a full section on installation in PySPH docs.

Also I have tried recording a video doing that. See this (https://www.youtube.com/watch?v=v_-rIyxnu04), let me know if this works.

Regards.

--
You received this message because you are subscribed to the Google Groups "pysph-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pysph-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages