|
[Sponsors] |
August 7, 2013, 12:00 |
Conversion to uniform grid
|
#1 |
New Member
Join Date: Aug 2013
Posts: 2
Rep Power: 0 |
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 |
|
August 12, 2013, 04:41 |
|
#2 |
New Member
Join Date: Aug 2013
Posts: 2
Rep Power: 0 |
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 |
|
August 21, 2013, 12:26 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
rhoSimpleFoam error | johny0688 | OpenFOAM Pre-Processing | 4 | June 1, 2021 13:23 |
CFD by anderson, chp 10.... supersonic flow over flat plate | varunjain89 | Main CFD Forum | 18 | May 11, 2018 08:31 |
Modified pimpleFoam solver to MRFPimpleFoam solver | hiuluom | OpenFOAM Programming & Development | 12 | June 14, 2015 22:22 |
Boundary Conditions | MtnRunBeachBum | OpenFOAM Pre-Processing | 1 | April 30, 2015 17:33 |
OpenFOAM solution is diverging for stress analysis in two-pahse microstructure. | Sargam05 | OpenFOAM | 16 | April 30, 2013 17:18 |