NS L-shape mesh missing

Asked by Achim Schroll

Hej,
when running the NS demo demo_navier-stokes.py I get the error:
File "lshape.xml.gz" does not exist or is not a regular file.

Apparently my installation is not complete or where else can I get the mesh from?

vh, Achim

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Ring
Solved:
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

How did you install DOLFIN? If you are on Ubuntu and installed it from the packaging system, the lshape.xml.gz mesh can be found in several locations:

  /usr/share/dolfin/data/meshes/lshape.xml.gz
  /usr/share/dolfin/demo/pde/navier-stokes/cpp/lshape.xml.gz
  /usr/share/dolfin/demo/pde/navier-stokes/python/lshape.xml.gz

When installing DOLFIN from source, you should find lshape.xml.gz in these locations:

  <prefix>/share/dolfin/data/meshes/lshape.xml.gz
  <prefix>/share/dolfin/demo/pde/navier-stokes/cpp/lshape.xml.gz
  <prefix>/share/dolfin/demo/pde/navier-stokes/python/lshape.xml.gz

Revision history for this message
Achim Schroll (achim-simula-deactivatedaccount) said :
#2

the file is in all three locations /usr/share/dolfin/etc
I have read but no write access.
can that be the reason?
the file needs to be unzipped, I guess?

Revision history for this message
Best Johannes Ring (johannr) said :
#3

No, they don't need to be unzipped, but the demo_navier-stokes.py script assumes that the lshape.xml.gz mesh is located in the same folder as the script itself. You can just make a copy from one of the files in /usr/share/dolfin.

If you want to run the demos in /usr/share/dolfin, copy the entire folder to a location where you have write access, like for instance your home folder:

  cp -r /usr/share/dolfin $HOME/dolfin-doc

You can then run the demos from there. This is needed because /usr/share/dolfin is write protected for normal users.

Revision history for this message
Achim Schroll (achim-simula-deactivatedaccount) said :
#4

Thanks Johannes Ring, that solved my question.