CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Conversion to uniform grid

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 7, 2013, 11:00
Default Conversion to uniform grid
  #1
New Member
 
Join Date: Aug 2013
Posts: 2
Rep Power: 0
Gebhard is on a distinguished road
Hi everyone,

I have 2D data (in .VTK files) in a quadtree structure. However, i need this data to be converted to a 2D uniform grid, in a way that i can e.g. specify the extent in X and Y direction and my quadtree gets resampled respectively.

Does anyone have an idea how this works with paraview?


Best,
Gebhard
Gebhard is offline   Reply With Quote

Old   August 12, 2013, 03:41
Default
  #2
New Member
 
Join Date: Aug 2013
Posts: 2
Rep Power: 0
Gebhard is on a distinguished road
I managed to find a (partial) solution to my problem.

To get my data into a uniform grid I do the following:

1) apply 2D delaunay (otherwise the resampled data will contain holes)
2) add a plane as a source with N*M sample points
3) Resample with data set (using the plane as source)

This works pretty well.

However, for writing my data to a file in the way I need them, it seems that I'll have to implement my own writer for paraview. Does anyone have some experience with that or is there a best practice how to do this?

Best,
Gebhard
Gebhard is offline   Reply With Quote

Old   August 21, 2013, 11:26
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Gebhard and welcome to the forum!

Without a small test case, I can't test this myself.
One question that comes to mind: Is the data you've got from the "quadtree structure", does it already look like a uniform mesh?

The only suggestion that comes to mind is to use the filter "Triangle Strips", which will sort the triangles from Delaunay 2D into a more efficient order of triangles.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dsmcFoam setup hherbol OpenFOAM Pre-Processing 0 July 14, 2013 17:16
OpenFOAM solution is diverging for stress analysis in two-pahse microstructure. Sargam05 OpenFOAM 16 April 30, 2013 16:18
boundary conditions for simpleFoam calculation foam_noob OpenFOAM Running, Solving & CFD 7 March 3, 2010 20:17
buoyantSimpleRadiationFoam msarkar OpenFOAM 0 February 15, 2010 06:22
pipe flow with heat transfer Fabian OpenFOAM 2 December 12, 2009 04:53


All times are GMT -4. The time now is 08:01.