Mesh scale
Hi,
I have one question concerning the meshing process. Currently using escript 3.3 running on Ubuntu 10.04. Gmsh version 2.4.2
I generate a (0.1x0.1)um square using the sequence below:
width=0.1*Micro*m
depth=0.1*Micro*m
p0=Point(
p1=Point(
p2=Point(
p3=Point(
l0=Line(p0,p1)
l1=Line(p1,p2)
l2=Line(p2,p3)
l3=Line(p3,p0)
c1=CurveLoop(
rec1=PlaneSurfa
ps1=PropertySet
model=Design(
model.addItems(
model.addItems(ps1)
model.setMeshFi
domain=
Gmsh gives me only 4 vertices 8 elements:
Info : Running 'gmsh -format msh -2 -order 1 -v 3 -o domain.msh /tmp/tmpeUjjY0.geo'
Info : Meshing 1D...
Info : Meshing curve 5 (Line)
Info : Meshing curve 6 (Line)
Info : Meshing curve 7 (Line)
Info : Meshing curve 8 (Line)
Info : Mesh 1D complete (0 s)
Info : Meshing 2D...
Info : Meshing surface 10 (Plane, MeshAdapt)
Info : Mesh 2D complete (0 s)
Info : 4 vertices 8 elements
If I change the parameters to:
width=1.
depth=1.
element_size=0.1
I keep the same relation between geometry and mesh size, but this time I get 117 vertices 236 elements, which is what I would expect for this element size. It looks like that the mesh generator is not scaling down with the element_size variable. This leads me to the question: How can I scale down the mesh in the first case in order to get the same number of vertices and elements that I get in the second case?
Thank you,
Bruno.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Lutz Gross
- Solved:
- Last query:
- Last reply: