Hi, my advice would be to go for the current Netgen which comes with NGSolve. My guess from you output is that your version is from before the introduction of the python interface.
Christophers code is a python script rather than a geo file.
Put the above code into a my_script.py file, and add a last line Draw(geo). By running a terminal in the location where you saved the script, you can run this with the gui by calling netgen my_script.py, and then continue in the gui.
Hi,
it appears that there is some mix-up between the occ wrapper code and the i-tutorial code, which use the netgen.csg Shpere object. Could you please post you example file?
You need to remove the line ‘from netgen.csg import *’. Both the netgen occ and csg submodules have a Sphere object, so the occ one you want is overwritten by the csg one when you do the second import.
I take it you are now using a jupyter-notebook? Otherwise you also need to remove the line ‘from ngsolve.webgui import Draw’ to visualise in the old netgen gui.
actually I am not using Jupiter-notebook. I am using python (py-charm). I downloaded only the following software to run the Netgen. Am I wrong?
Install Python 3.7 if you do not already have it. Make sure to download one of the “x86-64” installers, and select the option “Add Python 3.7 to PATH” during the installation. Direct link to the installer
Install the Microsoft Visual Studio 2017 Redistributables.
Download the Netgen/NGSolve msi - installer of the latest release
Reboot your system after the installation and proceed to Getting started with Netgen/NGSolve
Do I need to install Jupiter-notebook? Can you please tell me what should I install? I am so sorry to bother you sir. I know this question might be the basic question, but I would really appreciate it, if you can give me the guideline. Thanks a million sir
A millions of thank you for you. I finally got the geometry that I want based on your suggestions.
Thank you so much for your kind help. I pray everything in your life went ease and smooth.
Thank you so much sir.