CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Measurement at an arbitrary point in the domain on the fly

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2013, 09:15
Default Measurement at an arbitrary point in the domain on the fly
  #1
Senior Member
 
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 13
HakikiCanakkaleli is on a distinguished road
Hi

== 1 ==

Is there any member function of a class that we can extract, say, velocity magnitudes at an arbitrary point in the computational domain?

For example at the coordinate ( 1.52 2.80 3.95 ), the function will interpolate the velocity magnitude from the neighbouring cells, so that we can use this value inside a modified solver on the fly.

== 2 ==

Probes seem do not work for this particular case whilst they extract information from the nearest cell centre.

== 3 ==

This would give a clue http://openfoamwiki.net/index.php/In..._%28by_cell%29; yet, I ponder whether I can use it for this case - and how?

== 4 ==

I have found some other forum pages which consider the similar topic in a slightly different context, e.g. http://www.cfd-online.com/Forums/ope...ocity-fly.html, http://www.cfd-online.com/Forums/ope...ary-point.html , http://www.cfd-online.com/Forums/ope...n-runtime.html. Therefore, I somehow couldn't adapt the given answers to my case.

I appreciate any help.

Many thanks in advance.
HakikiCanakkaleli is offline   Reply With Quote

Old   October 17, 2013, 12:06
Default
  #2
Senior Member
 
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 13
HakikiCanakkaleli is on a distinguished road
== 1 ==
The solution seems to be now:

Code:
#include "interpolationCellPoint.H"
//...
const vector arbitrary_point  ( 1.52 2.80 3.95 );
interpolationCellPoint<vector> velocity_at_arbitrary_point(U);
velocity_at_arbitrary_point.interpolate(arbitrary_point, cellI);
== 2 ==
Doxygen states:
Code:
interpolate (const vector &position, const label cellI, const label faceI=-1) const
So, I guess we can store a list of celll; then, no need to scan the domain at each time step.

== 3 ==
More info, and thanks to Bruno, I assume:
http://openfoamwiki.net/index.php/In..._%28by_cell%29
HakikiCanakkaleli is offline   Reply With Quote

Reply


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
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Torque Calculation at Arbitrary Point Mojtaba Main CFD Forum 0 February 14, 2009 00:58
Calculation torque on arbitrary point Mojtaba Main CFD Forum 0 February 9, 2009 00:08
point for sub domain sxf CFX 4 January 10, 2003 19:16
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 15:35.