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

running pynite without scipy #107

Closed
psychomiller opened this issue Dec 6, 2021 · 7 comments
Closed

running pynite without scipy #107

psychomiller opened this issue Dec 6, 2021 · 7 comments

Comments

@psychomiller
Copy link

Dear Craig and hello everyone,

as described in FEModel3D, scipy is used to make pynite work faster with a huge amount of nodes.
It would be great, if there is a possibility to use pynite without scipy also.
Pynite allows to pass sparse=False as argument to the function analyze in FEModel3D:

truss.analyze(check_statics=False, sparse=False)

Anyway: Scipy is still imported in FEModel3D.py
Furthermore coo_matrix and lil_matrix is is called in the code afterwards.
Would it be possible to make conditionals in order to avoid to load and to use scipy?
(I would like to make a simple add-on for pynite in blender 3D. When running blender 3D on linux, it is possible to use pip in order to install additional modules to blender python. When switching to other operating systems, this would be a limitation. But maybe someone has also another idea how to make this work.)

Thanks for your answers in advance!

Greetings,
Chris

@bewegende-Architektur
Copy link

bewegende-Architektur commented Dec 22, 2021

Hey there,

there is already a first version of Phänotyp, an Add-On for Blender3D, that is making FEA available in blender and more: https://github.com/bewegende-Architektur/Phaenotyp There are some tutorials on youtube. You can find the link in the repository.

Sorry for coming back to this topic, but is there a simple possibility to avoid scipy to be used by pynite? This would be great in order to avoid the installation progress via pip on users computers.

Greetings,
Chris

PS: By the way: Please tell me, if pynite is quoted in the proper way and if this is fine for you :) Any feedback is also welcome.

@JWock82
Copy link
Owner

JWock82 commented Dec 24, 2021

I’ve got a solution working that doesn’t use scipy for dense solutions. I’m going to test it a little more and then push it out.

The way you’ve quoted PyNite is fine.

@bewegende-Architektur
Copy link

Awesome! Thank you very much for your time! Hope you have great holidays 😃

Greetings,
Chris

@JWock82
Copy link
Owner

JWock82 commented Dec 24, 2021

This issue has been addressed in version 0.0.53. You'll need to set sparse=False when you use the analyze method, or the analyze_PDelta method. Let me know if you notice any issues with it. All unit tests for the code passed so I don't believe there are any.

@JWock82 JWock82 closed this as completed Dec 24, 2021
@JWock82
Copy link
Owner

JWock82 commented Dec 24, 2021

Do you mind if I list Phänotyp on PyNite's wiki as an example project?

@psychomiller
Copy link
Author

psychomiller commented Dec 24, 2021 via email

@bewegende-Architektur
Copy link

Dear Craig,

Amazing! Thank you very much for your time. I will make an update.

Of course! Feel free to but it in on the Wiki :)

Greetings,
Chris

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

3 participants