Ken and Richardson CFD;

Mapping data from a 3-D mesh to a 2-D surface that transects the 3-D mesh is very much of interest to me, particularly, with respect to STL 2-D surface definitions in 3-space.
(My concern is with unstructured mesh simulations of solid objects.)

For what it is worth, here is my experience using the Richardson CFD *.stl and *.vtk test files.

Using ParaView (4.3.1):

CASE [1].

(1) Load 'scalars.vtk' with all cell & point datum sets

(2) Load 'sphere.stl'

(3) Select 'scalars.vtk' and add the PV filter Resample With Dataset,

(3.i) On the Change Input Dialog pop-up window, scalars.vtk is preselected as the input ("This property specifies the dataset from which to obtain probe values. The data attributes come from this dataset.")

(3.ii) I then change the radio button to Source, and select sphere.stl as source ("This property supplies the dataset whose geometry will be used in determining positions to probe. The mesh comes from this dataset.")

(4) Select the Resample With Dataset filters green Apply button, Everything appears to function properly. The outcome is the sphere.STL now has all on the point data from scalars.vtk to select for display, but on the sphere's surface points all the values are zero.

CASE [2]: Substitute scalars.vtk with Clean to Grid filter output. Same results as Case [1]

CASE [3]: Substitute sphere.stl with Delaunay 3D filter output. Same result as Case [1]

CASE [4]: Case [2] and Case [3] combined. Same result as Case [1].

Clearly I am in over my head regarding how to move a datum set from one mesh to another in ParaView. Maybe it can't be done? Has someone else been able to do this?

Samuel W Key
FMA Development, LLC
1005 39th Ave NE
Great Falls, Montana 59404



On 2/5/2016 12:52 PM, Moreland, Kenneth wrote:
(Responding back to the group.)

Well, that's strange. That should work.

I notice that you originally said your scalars are in a structured grid, but the top of your data file says it is an unstructured grid. An unstructured grid can represent anything, so is there a possibility it does not represent the solid geometry you think it does? If you put a slice plane through it, does the slice and the fields on the slice look correct? Does it help if you run the "Clean to Grid" filter on the scalars?

I'm really just guessing at potential problems here. It would help if you could send some example data that exemplifies the problem.

-Ken


From: Richardson CFD <gar...@gmail.com>
Date: Friday, February 5, 2016 at 11:29 AM
To: Kenneth Moreland <kmo...@sandia.gov>
Subject: Re: [EXTERNAL] [Paraview] mapping scalars onto surface geometry


Thanks - yes the data-sets definitely overlap.  The STL surface (blue) is well within the scalar flow field (red).  The scalars (in the flow field) are just imported as a vtk file:
ASCII
DATASET UNSTRUCTURED_GRID

Inline image 1

On Fri, Feb 5, 2016 at 5:48 PM, Moreland, Kenneth <kmo...@sandia.gov> wrote:
That should work. Is it possible that the physical space of the two geometries do not overlap? Go to the information panel and look at the Bounds for the scalar field and the surface geometry. The bounds should overlap. If they do not, then you can use the Transform filter to move/scale one or both so that they are arranged in the same space.

-Ken


From: ParaView <paraview-boun...@paraview.org> on behalf of Richardson CFD <gar...@gmail.com>
Date: Friday, February 5, 2016 at 10:41 AM
To: "paraview@paraview.org" <paraview@paraview.org>
Subject: [EXTERNAL] [Paraview] mapping scalars onto surface geometry

How do you map a scalar field onto a surface geometry (STL file) please?

I have a structured 3d array of values such as velocity, density, temperature etc...
and I want to map that onto a surface geometry, such as a motorbike for example.

I have tried the "Resample with Dataset" method,  (input=scalar field,  source=surface geometry) but I'm just getting a null field (zeros) for whichever scalar I then select to display on the surface.

Thanks UFO-CFD
This email has been sent from a virus-free computer protected by Avast.
www.avast.com



_______________________________________________
Powered by 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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

_______________________________________________
Powered by 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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to