Mesh generation with specific mesh size
I try to generate a mesh with a specific mesh size using the new CSG features.
I followed the indication given on the doc page
but I get the following error:
TypeError: __init__() got an unexpected keyword argument 'meshsize'
Below the code to reproduce the issue
## BEGIN ###
from dolfin import *
geom=Rectangle(
mesh = Mesh(geometry, meshsize="fine")
## END ###
If I use a integer as a parameter (as one should do looking at Mesh.ccp), Mesh accepts it, but it seems to do not affect the mesh resolution. For example
mesh = Mesh(geometry, 10)
gives the same result as
mesh = Mesh(geometry, 1)
How the integer parameter is expected to control the resolution?
Is there a way to generate a unstructured mesh with given mesh size within dolfin?
I use the development version of FEniCS
P.S.: I currently use an external mesh generator, but the feature may be useful for test problems
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- corrado maurini
- Solved:
- Last query:
- Last reply: