[Paraview] Resampling to a uniform grid
Biddiscombe, John A.
biddisco at cscs.ch
Fri Jul 11 10:47:05 EDT 2014
I do this by using the pv-zoltan plugin mesh redistribution filter, which distributes meshes in parallel, adds ghost cells as needed and also (and importantly here) bounding box information to the extent translator (vtkBoundsExtentTranslator). Then in the pv-meshless plugin I have a resampling grid generator which takes the bounding box info and a resolution and generates grids in parallel - one for each process - using the bounds. The SPH resample filter then takes these inputs and does a resampling using an SPH kernel - this is probably more than the OP wants, but in principle it would be easy to switch out the SPH resampler and just use a standard probe filter to get a parallel resample which scales well.
Unfortunately, I'm on vacation and the code is not documented well and may not work currently as I have not been using It much recently.
JB
From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Moreland, Kenneth
Sent: 10 July 2014 18:49
To: Andy Bauer
Cc: paraview at paraview.org
Subject: Re: [Paraview] Resampling to a uniform grid
I stand corrected then.
From: Andy Bauer <andy.bauer at kitware.com<mailto:andy.bauer at kitware.com>>
Date: Thursday, July 10, 2014 10:43 AM
To: Kenneth Moreland <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
Cc: David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>, "Kares, Robert J. (LANL)" <rjk at lanl.gov<mailto:rjk at lanl.gov>>, "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] Re: [Paraview] Resampling to a uniform grid
The resample to data set filter does work in parallel but the result will only be on process 0. Each process sends its values to process 0 so this is not an algorithm that will scale well.
Regards,
Andy
On Thu, Jul 10, 2014 at 11:31 AM, Moreland, Kenneth <kmorel at sandia.gov<mailto:kmorel at sandia.gov>> wrote:
Note that this will only work when running in serial. I'm sure that in parallel this will not sample correctly. That would require communication to resolve uneven distributions in the unstructured grid. I don't think anyone has written something like that yet.
-Ken
From: David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>
Date: Thursday, July 10, 2014 7:17 AM
To: "Kares, Robert J. (LANL)" <rjk at lanl.gov<mailto:rjk at lanl.gov>>
Cc: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] Re: [Paraview] Resampling to a uniform grid
You could start with Sources->Wavelet and reposition it as needed, but I'ld use a python programmable source. Attached is a state file to demonstrate.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909<tel:518-881-4909>
On Wed, Jul 9, 2014 at 6:06 PM, Kares, Robert J <rjk at lanl.gov<mailto:rjk at lanl.gov>> wrote:
Folks,
I would like to resample a scalar field defined on an unstructured
grid in 3D onto a uniform rectangular 3D grid with specified logical and
physical dimensions.
It seems from the ParaView filters documentation that this can
somehow be done using the Resample With Dataset filter. It appears
to me that the procedure involves generating a uniform rectangular
grid in some fashion and then feeding it to the Resample With Dataset
filter along with the unstructured grid containing the scalar to be
resampled.
However, I am confused about just how to make the rectangular grid of
specified size in the first place and about how to use it with the Resample With Dataset
filter.
Could someone explain to me how to do this ?
Thanks,
--Bob
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140711/2dad4fdb/attachment-0001.html>
More information about the ParaView
mailing list