CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to interpolate a volVectorField onto a point cloud from inside a solver

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2016, 10:22
Default How to interpolate a volVectorField onto a point cloud from inside a solver
New Member
Carlos Baptista
Join Date: Feb 2016
Location: Rotterdam, The Netherlands
Posts: 14
Rep Power: 10
cfbaptista is on a distinguished road
Probes and sampleDicts can be used to interpolate volVectorFields onto a cloud of points. I am, however, interested how I can perform such an interpolation from inside a solver? More specifically:

Starting from a C array (or C++ vector) containing the coordinates

[x1, y1, z1, x2, y2, z2, ..., xn, yn, zn]
how can I interpolate a volVectorfield (e.g. U) onto the coordinates specified by the C array (or C++ vector)?

ps: I do not require to write the interpolated field to disk, I only need it in RAM
cfbaptista is offline   Reply With Quote


interpolation, probes, sampling, volvectorfield

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
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
CFX Post: Problems with moving point cloud for changing time steps spatialtime CFX 0 December 7, 2009 05:56
Random point inside the mesh filipe OpenFOAM Programming & Development 0 October 16, 2009 12:24
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 03:27
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32

All times are GMT -4. The time now is 02:53.