Unable to visualize anything, PyQt5 issue?
As outlined in yesterday's SO question (below) I've successfully installed and I can run examples in Python 3.6 with anaconda installation. But View()
fails for lack of a "suitable UI toolkit".
Until I can sort that out (it's relayed to Mayavi alone and not specifically to SfePy) can someone point me to "where the answers are"? After I solve for something, there must be something like a dictionary where I can find arrays of velocities or temperatures that I can at least plot myself.
I usually do home-grown numerical analysis, I've never used a full-blown package before so I can't find my way around such a fancy environment easily. Thanks!
https://stackoverflow.com/questions/55948236/pyqt5-fails-as-suitable-ui-tool...
Hi David,
On 5/3/19 1:42 AM, david.mikolas@gmail.com wrote:
As outlined in yesterday's SO question (below) I've successfully installed and I can run examples in Python 3.6 with anaconda installation. But
View()
fails for lack of a "suitable UI toolkit".
It looks like a Mayavi issue as you write below, but let us know if you find a solution. Thanks!
Until I can sort that out (it's relayed to Mayavi alone and not specifically to SfePy) can someone point me to "where the answers are"? After I solve for something, there must be something like a dictionary where I can find arrays of velocities or temperatures that I can at least plot myself.
Yes the results (of the current time step) are accessible - you are using the imperative API (= creating the problem components directly, and not through a problem description file), right? If that is the case, check the examples with "interactive" in their names - for instance in [1] the results are in the "state" variable, you may want to use state.get_parts() to get a dict with various solution components (variables).
r.
[1] http://sfepy.org/doc-devel/examples/linear_elasticity/linear_elastic_interac...
I usually do home-grown numerical analysis, I've never used a full-blown package before so I can't find my way around such a fancy environment easily. Thanks!
https://stackoverflow.com/questions/55948236/pyqt5-fails-as-suitable-ui-tool...
Thank you Robert,
Yes that's what I'm doing, and that's exactly what I needed to know thank you, and oh, meshes! That's why a good viewer is important ;-)
In several comments below the answer (https://stackoverflow.com/a/55963646/3904031) to my question I outline what seems to be a working Mayavi solution though there are still warnings. I'll follow-up on that with a new Stack Overflow question. https://i.stack.imgur.com/TRddq.png
For learning I think the API method is better for me, I'll then try the problem description file method once I feel I understand better what's going on.
So I think I'm okay for now. I really appreciate your speedy reply!
David
On 5/3/19 11:28 AM, david.mikolas@gmail.com wrote:
Thank you Robert,
Yes that's what I'm doing, and that's exactly what I needed to know thank you, and oh, meshes! That's why a good viewer is important ;-)
OK, you may want to have a look at other viewers such as Paraview or Visit...
In several comments below the answer (https://stackoverflow.com/a/55963646/3904031) to my question I outline what seems to be a working Mayavi solution though there are still warnings. I'll follow-up on that with a new Stack Overflow question. https://i.stack.imgur.com/TRddq.png
For learning I think the API method is better for me, I'll then try the problem description file method once I feel I understand better what's going on.
So I think I'm okay for now. I really appreciate your speedy reply!
Hth! r.
David
SfePy mailing list -- sfepy@python.org To unsubscribe send an email to sfepy-leave@python.org https://mail.python.org/mailman3/lists/sfepy.python.org/
@Robert et al.
I can make several things happen now, run scripts, see output, but I am not sure where the Problem instance is or the state variables. From the command line:
python -i Navier_Stokes_2d.py
leaves no Problem instance, but there's a user_block.vtk file creaed. Then if I find a copy of postproc.py and put it in the same folder and run
python -i postproc.py user_block.vtk -b
I can see the output for what looks like a lid-driven cavity problem, but in the python namespace there's still nothing to grab on to and look at.
I wish there were some lower-level documentation for people who know enough to be dangerous but who are not already heavy users of Python. I can't find any presentations or videos or PyCon talks about how easy it is to use SfePy. Nothing!
So I'd planned on submitting a proposal for a local Pycon presentation this fall. It seems there's nothing basic or introductory anywhere in the www, am I wrong?
Thanks!
okay making progress understanding simple.py now. If there's "some lower-level documentation for people who know enough to be dangerous" that's great. If not, I'll get there eventually.
Hi David,
with simple.py, the results are stored in output files to be post-processed elsewhere (e.g. with mayavi). But you can do some post-processing also during the computation by using the post_process_hook function, see [1] and other examples. For full control, writing a proper script such as the "interactive" examples is needed (simple.py just builds a Problem instance for you...).
Otherwise, there is no "dangerous zone" documentation, so try checking the examples and do not hesitate to ask more.
r.
[1] http://sfepy.org/doc-devel/examples/diffusion/poisson_neumann.html
On 5/4/19 3:54 PM, david.mikolas@gmail.com wrote:
okay making progress understanding simple.py now. If there's "some lower-level documentation for people who know enough to be dangerous" that's great. If not, I'll get there eventually.
participants (2)
-
david.mikolas@gmail.com
-
Robert Cimrman