Problem to see output in Fenics via Docker in win 7


636
views
0
7 months ago by
Hi everyone
I am using docker on win7,  after running the code I see below message:

To view figure, visit http://127.0.0.1:8000
Press Ctrl+C to stop WebAgg server

But this link is not working. please guide me.
Community: FEniCS Project

3 Answers


4
7 months ago by
This is a message issued by matplotlib which does not know that ports on host and ports in the container are mapped but not the same. (We do not know how to make matplotlib stop showing this message yet.)

Look for message with http://127.0.0.1:<port> which was actually issued by fenicsproject script. If you didn't use the script and rather issued a docker command directly you might need to add appropriate port mapping command-line argument, see http://fenics-containers.readthedocs.io/en/latest/index.html.

You may consider using IO and do plotting by external software as suggested by other answers too.


Hi Jan. This is my first experience, I only used the instruction to run  demo_possion.py.
I can not see port.
another question. how can i use spyder to run a code after install fenics with docekr on win7
written 7 months ago by MMZ1992  
0
7 months ago by
Ovais  
To view output you must use Paraview. You can easily convert your output to .pvd format
I can not see the output in this format in my system. below is the console:

fenics@5858561ca133:~$ cd ~/demo/documented/poisson/python
fenics@5858561ca133:~/demo/documented/poisson/python$ python3 demo_poisson.py
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
--- Instant: compiling ---
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
--- Instant: compiling ---
Solving linear variational problem.
To view figure, visit http://127.0.0.1:8000
Press Ctrl+C to stop WebAgg server
written 7 months ago by MMZ1992  
This answer is incorrect.
written 7 months ago by Jan Blechta  
-2
7 months ago by
Ovais  
You must add these lines to the example code :-

# Save solution to file in VTK format
vtkfile = File('poisson/solution.pvd')
vtkfile << u

This will generate a .pvd file which you would be able to open using paraview
This answer is not correct.
written 7 months ago by Jan Blechta  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »