Skip to content

Error when try to run example elliptical drag #399

@attaponaerospace

Description

@attaponaerospace

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions