projectchrono / chrono

High-performance C++ library for multiphysics and multibody dynamics simulations
http://projectchrono.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 469 forks source link

Unable to visualize demo_FEA_contacts.py in pychrono (black screen only with pychrono logo) #275

Open h-pervez opened 4 years ago

h-pervez commented 4 years ago

Hello, when trying to run the aforementioned demo, I just see a black screen with the Pychrono logo, could anybody please help? Thanks in advance!

Benatti1991 commented 4 years ago

Hi, sounds odd, it works fine for me. It might be a data path error. Make sure you are launching it in its own directory. Like

cd C:\Users\your_name\Anaconda3\envs\some_env\Lib\site-packages\pychrono\demos\fea
python demo_FEA_contacts.py

Simone

h-pervez commented 4 years ago

Thanks I rechecked the path but nevertheless still see this: Most other demos in teh same folder, for e.g. cables or load_dynamic seem to be working fine.

runfile('C:/Users/pervez/Anaconda3/Lib/site-packages/pychrono/demos/fea/demo_FEA_contacts.py', wdir='C:/Users/pervez/Anaconda3/Lib/site-packages/pychrono/demos/fea') Copyright (c) 2017 projectchrono.org

Capture