- Thank you received: 0
Can not run navierstokes.py example
5 years 1 week ago #2046
by noname
Can not run navierstokes.py example was created 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
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.
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.
5 years 1 week ago #2047
by schruste
Replied by schruste on topic Can not run navierstokes.py example
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
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
5 years 1 week ago - 5 years 1 week ago #2048
by noname
Replied by noname on topic Can not run navierstokes.py example
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
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.
5 years 1 week ago #2049
by matthiash
Replied by matthiash on topic Can not run navierstokes.py example
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
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
5 years 1 week ago #2050
by noname
Replied by noname on topic Can not run navierstokes.py example
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.
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