Why UnitSquareMesh does not work for me?
¿is there any way to use dolfin without broken by brain?
from dolfin import* = module no found
Why UnitSquareMesh does not work for me?
¿is there any way to use dolfin without broken by brain?
from dolfin import* = module no found
Hi upress! If you are a new FEniCS user, then welcome to the community! Your question was unfortunately not answered right away, but it is perhaps the way you asked this question that made it take one week before someone answered. Most people have very limited time and will only answer questions that are written according to the “How do I get my questions answered” post on the forum. If that is not clear then please consult something like this blog post it will make your future questions be answered MUCH faster
Now, to some sort of answer to your question. Since you do not write anything about how you installed FEniCS and what you did to try to make it work, then I may be missing the goal with this answer:
If you get problems with an import dolfin
statement or from dolfin import *
then your problem is not with UnitSquareMesh or anything related to the code below the import statement in your file. The problem is that python does not find FEniCS. See e.g. https://bic-berkeley.github.io/psych-214-fall-2016/sys_path.html for information about what Python does to find libraries.
To get a python3 command that can find dolfin please consult the documentation on installing FEniCS in Docker. I highly recommend using Docker since it is easier than most of the other options. Conda may also be easy if you already know conda, but the conda packages sometimes miss some functionality that is included in the Docker image
You must also run the correct python3 program. If you use Docker then you must run the python3 executable that is inside the Docker image. Consult some basic Docker documentation if the FEniCS Docker documentation is not sufficient. If you still have a problem then list exactly what you did to install FEniCS and how you start python3. Otherwise it is not possible to help you. Good luck