Can not run navierstokes.py example

More
5 years 1 week ago #2046 by noname
Hello,

I have python, python3 and netgen installed on my ubuntu system. Under the "wetting the apetite" section of the tutorials I have downloaded the python code for Navier STokes equations navierstokes.py. But when I run it either with python, python3 or netgen, I get the error says

File "<string>", line 28, in <module>
NameError: name 'dx' is not defined



Same happens with the easiest poisson.py code, I can not run it either because of the same error. Do i need to install something else/new?

Thanks in advance.
More
5 years 1 week ago #2047 by schruste
Hi Mr./Mrs. noname,

Are you using an older version of Netgen/NGSolve? The dx symbol is only introduced around June/July 2019. If you use one of the recent stable versions it should however be available. Simply check for an update.

Best,
Christoph
More
5 years 1 week ago - 5 years 1 week ago #2048 by noname
Thanks Christoph... I did an update and restarted my system. Now I get

netgen: error while loading shared libraries: libTKBRep.so.11: cannot open shared object file: No such file or directory

Error. Do you have any prior experience with this?Simply doing sudo ldconfig does not solve my problem
I did ldconfig -p | grep libTKBRep and it seems it is not installed in my system
Last edit: 5 years 1 week ago by noname.
More
5 years 1 week ago #2049 by matthiash
Hello,

The Ubuntu-NGSolve package depends on liboce-ocaf-dev, which provides libTKBRep.so.11. Check if this package is installed on your system.

Best,
Matthias
More
5 years 1 week ago #2050 by noname
Hi,

I have seen other users had similar experience in this link
ngsolve.org/forum/ngspy-forum/195-upgrad...-ngsolve-not-working

Following the solution steps explained there solved my issue.

Thanks again.
Time to create page: 0.116 seconds