← Back to team overview

dolfin team mailing list archive

Re: Built-in meshes.

 

I will try, in my spare time, to study a little on grid generation techniques 
so i could improve the built-in meshes on Dolfin.   

On Tuesday 24 June 2008, Nuno David Lopes wrote:
> There goes:
> Rectangle, (copy/paste, with added parameters, of the UnitSquare case)
> Box (copy/paste, with added parameters, of the UnitCube case)
> and UnitCircle.
> (copy/paste, with added parameters and variable transformations, of the
> UnitSquare case)
> I've included a sandbox/built-in_mesh/
> for testing the Circle case.
> I will include the Cylinder and Sphere case only if you think that
> the UnitCircle is of any use, since they use the same transformations .
>
> Thanks.
>
> On Monday 23 June 2008, Nuno David Lopes wrote:
> > On Friday 20 June 2008, Anders Logg wrote:
> > > On Fri, Jun 20, 2008 at 04:08:56PM +0100, Nuno David Lopes wrote:
> > > > Probably  this isn't the right time but:
> > > > I've added the following built-in meshes
> > > > ---------------------------------------------------
> > > > UnitSphere (it builds a cylinder)
> > > > Rectangle ((a,b)x(c,d))
> > > > UnitCircle
> > > > Cuboid ((a,b)x(c,d)x(e,f)) (probably it should be renamed for block
> > > > or something, in portuguese it's a "Paralelipípedo")
> > > > ----------------------------------------------------
> > >
> > > Very nice. I've been wanting to have this for some time.
> > >
> > > Just some questions about the names:
> > >
> > > Why does the UnitSphere build a cylinder? Shouldn't it rather build a
> > > unit sphere?
> >
> > It was a mistake...It does a Sphere, but we can get a cylinder to.
> >
> > > I would suggest renaming Cuboid to Box.
> > >
> > > > And its easy to generalize  all of them, just by the adding of  some
> > > > parameters.
> > > >
> > > > All of them are simple transformations  of UnitSquare and UnitCube
> > > > (only on the vertices part), the rest is copy/paste.
> > > > Some doubts remains  about the quality of the meshes (UnitSphere and
> > > > UnitCircle)
> > > > Also  it's possible to group all the code in one or two classes
> > > > instead of  6.
> > > >
> > > > I've some pictures and usage examples in
> > > > http://ptmat.ptmat.fc.ul.pt/%7Endl/other/dolfin.dir/README.html#sec-3
> > > >0 So when you feel is the right time i could bundle it.
> > >
> > > A bundle would be nice after the release on Monday.
> >
> > After the release i'll send the Rectangle and Box.
> > I've  to think and try a litlle more in the Sphere,circle, cylinder
> > cases. The thing is that the mesh quality of those is bad.



-- 
Nuno David Lopes

e-mail:ndl@xxxxxxxxxxxxxx        (FCUL/CMAF)
           nlopes@xxxxxxxxxxxxxxx    (ISEL)
http://ptmat.ptmat.fc.ul.pt/%7Endl/ 

Tue Jun 24 11:20:00 WEST 2008


References