Dear gmsh devs,

Suppose I want to create a skewed hexahedral geometry to be meshed using a
structured method. I want to use extrusions to create a regular cube first
and then translating the points created by the extrusion to 'skew' it.

Translating the extruded points and lines works, but the surfaces and
volumes created by extrusion seem attached to their old geometry,
generating errors.

Please see example below:

//Create 1x1x1 cube using extrusions
Point(1) = {0, 0, 0, 1};

lines[] = Extrude {1, 0, 0}{
    Point{1};
    Layers{10};
    Recombine;
};

surfaces[] = Extrude {0, 1, 0}{
    Line{lines[]};
    Layers{10};
    Recombine;
};

volumes[] = Extrude {0, 0, 1}{
    Surface{surfaces[]};
    Layers{10};
    Recombine;
};

// Distort the geometry using a translation for point on a face

Translate {1, 0, 0} {
  Point{2, 1, 4, 3};
}




Saludos/Regards,

​
--
José A. Abell M.,
​PhD


*Ingeniero Civil *Profesor Investigador
Facultad de Ingeniería y Ciencias Aplicadas
Universidad de los Andes
(+56
​
​
)
​2​
-2412
​-​
9321
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to