Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when try to run example elliptical drag #399

Open
attaponaerospace opened this issue Jul 17, 2024 · 0 comments
Open

Error when try to run example elliptical drag #399

attaponaerospace opened this issue Jul 17, 2024 · 0 comments

Comments

@attaponaerospace
Copy link

I run via anaconda3 as pysph run elliptical_drop and got this error

Running example pysph.examples.elliptical_drop.

Information for example: pysph.examples.elliptical_drop
Evolution of a circular patch of incompressible fluid. (60 seconds)

See J. J. Monaghan "Simulating Free Surface Flows with SPH", JCP, 1994, 100, pp
399 - 406

An initially circular patch of fluid is subjected to a velocity profile that
causes it to deform into an ellipse. Incompressibility causes the initially
circular patch to deform into an ellipse such that the area is conserved. An
analytical solution for the locus of the patch is available (exact_solution)

This is a standard test for the formulations for the incompressible SPH
equations.
Traceback (most recent call last):
File "/home/bull/anaconda3/envs/pysph/bin/pysph", line 8, in
sys.exit(main())
^^^^^^
File "/home/bull/anaconda3/envs/pysph/lib/python3.11/site-packages/pysph/tools/cli.py", line 124, in main
args.func(extra)
File "/home/bull/anaconda3/envs/pysph/lib/python3.11/site-packages/pysph/tools/cli.py", line 18, in run_examples
main(args)
File "/home/bull/anaconda3/envs/pysph/lib/python3.11/site-packages/pysph/examples/run.py", line 190, in main
run_command(module, argv[1:])
File "/home/bull/anaconda3/envs/pysph/lib/python3.11/site-packages/pysph/examples/run.py", line 150, in run_command
_exec_file(filename)
File "/home/bull/anaconda3/envs/pysph/lib/python3.11/site-packages/pysph/examples/run.py", line 21, in _exec_file
exec(co, ns)
File "/home/bull/anaconda3/envs/pysph/lib/python3.11/site-packages/pysph/examples/elliptical_drop.py", line 22, in
from pysph.base.utils import get_particle_array
File "/home/bull/anaconda3/envs/pysph/lib/python3.11/site-packages/pysph/base/utils.py", line 7, in
from .particle_array import ParticleArray,
File "pysph/base/particle_array.pyx", line 1, in init pysph.base.particle_array
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant