Creating a DOLFIN Mesh from VTK Structured Points Dataset

Asked by Pietro Maximoff

Hello

I have geometry that's stored in a VTK Structured Points Dataset. I'd like to create an FEM mesh using this geometry.

Is it possible to create a mesh in the DOLFIN format from it?

If it is, how would I go about doing this?

If it isn't, is there a 'roundabout' way I could do this?

Thanks

Pietro

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Pietro Maximoff
Solved:
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

On Wed, May 12, 2010 at 05:20:55PM -0000, Pietro Maximoff wrote:
> New question #110754 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/110754
>
> Hello
>
> I have geometry that's stored in a VTK Structured Points Dataset. I'd like to create an FEM mesh using this geometry.
>
> Is it possible to create a mesh in the DOLFIN format from it?
>
> If it is, how would I go about doing this?
>
> If it isn't, is there a 'roundabout' way I could do this?
>
> Thanks
>
> Pietro

I'm not familiar with that format. Is it a mesh? Doesn't sound like a
mesh format to me.

You need to generate a mesh using some mesh generator, then convert it
to DOLFIN XML using the dolfin-convert script.

--
Anders

Revision history for this message
Johan Hake (johan-hake) said :
#2

On Wednesday May 12 2010 10:20:55 Pietro Maximoff wrote:
> New question #110754 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/110754
>
> Hello
>
> I have geometry that's stored in a VTK Structured Points Dataset. I'd like
> to create an FEM mesh using this geometry.

It looks to me that a Structured Points Dataset is astructure used for images
and like. The disctances between points are fixed, right?

If this is correct I wonder if your Points is in a regular shape, like a
square, rectangle, cube or box? If so you might be able to use some of the
built in Meshes for these shapes.

Johan

> Is it possible to create a mesh in the DOLFIN format from it?
>
> If it is, how would I go about doing this?
>
> If it isn't, is there a 'roundabout' way I could do this?
>
> Thanks
>
> Pietro

Revision history for this message
Pietro Maximoff (segment-x) said :
#3

Yes, it's for images and not a mesh. Apparently, Gmsh may be able to read VTK Unstructued Points and generate a mesh from it. So, I'll write a quick program to convert it to Unstructured Pointsand see what Gmsh comes up with.

Can I convert a Gmsh format to DOLFIN XML using the dolfin-convert script?

Pietro

Revision history for this message
Garth Wells (garth-wells) said :
#4

On 12/05/10 19:44, Pietro Maximoff wrote:
> Question #110754 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/110754
>
> Status: Answered => Open
>
> Pietro Maximoff is still having a problem:
> Yes, it's for images and not a mesh. Apparently, Gmsh may be able to
> read VTK Unstructued Points and generate a mesh from it. So, I'll write
> a quick program to convert it to Unstructured Pointsand see what Gmsh
> comes up with.
>
> Can I convert a Gmsh format to DOLFIN XML using the dolfin-convert
> script?
>

Yes.

Garth

> Pietro
>

Revision history for this message
Pietro Maximoff (segment-x) said :
#5

Thanks