CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Conversion to uniform grid

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

Reply
 
LinkBack Thread Tools Search this Thread 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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rhoSimpleFoam error johny0688 OpenFOAM Pre-Processing 4 June 1, 2021 12:23
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
Modified pimpleFoam solver to MRFPimpleFoam solver hiuluom OpenFOAM Programming & Development 12 June 14, 2015 21:22
Boundary Conditions MtnRunBeachBum OpenFOAM Pre-Processing 1 April 30, 2015 16:33
OpenFOAM solution is diverging for stress analysis in two-pahse microstructure. Sargam05 OpenFOAM 16 April 30, 2013 16:18


All times are GMT -4. The time now is 03:19.