Help with plotting - just getting started

3 months ago by

I am just getting started with Fenics and am having trouble viewing any plot results from the demo files. I am using version 2017.2.0 (stable version) with Docker Toolbox on Windows 10, and Python 2.7.

Running the poisson demo file I get the message to view the figure at Accessing this page from my browser on the host says the page is unreachable. Digging around I found a thread suggesting to use the -p switch when initiating the session so that the port is forwarded from the container to the host, but that does not seem to work.

I am starting my fenics session as follows:
docker run -ti -v /c/Users/Ssamouhos/fenics:/home/fenics/shared -p

Am I doing something wring here? Does anyone have any advice on how to view figures generated from the demos? Is there anyway to do this without using a browser? Any help would be appreciated - it's been a frustrating few hours trying to figure this out.



Community: FEniCS Project
Sub question here as well. I rolled back to 2016.2.0 version of FEnics to try and match the version mentioned in the tutorial, and NOW, I don't get a plot OR instruction to access a web page.
written 3 months ago by stephen  
The plotting in FEniCS is very limited. Often the developers (myself included) recommend outputting your results to file and visualising in paraview or visit.
written 3 months ago by Nate  
Thanks so much for the quick reply. So is the basic FEniCS workflow to run the PDE solver, generate an output file, and view that file in another program? What about viewing meshes prior to analysis or animating plots of dynamic fields when materials are in motion? Are visit and paraview also used for this? My goal was to use FEniCS for modelling magnetic interactions between a rotor and stator as the rotor operates. Seems like there are a lot of steps involved to process with FEniCS and visualize the results. I appreciate any advice you might have for working with FEniCS and visualizing analysis results Thanks!
written 3 months ago by stephen  
You can achieve your intended goal using FEniCS. Try few demos (such as heat equation or may be hyperelastic cube) and you'll be able to understand the usage.
Exporting your solution to .pvd or .h5 or .xdmf is not cumbersome. Infact paraview offers many post processing features which may prove to be helpful to you.
This will help you further. (See slide 14 for code snippet on exporting syntax)
written 3 months ago by Ovais  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »