CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Probe point by his ID (not his location)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 2, 2016, 08:40
Default Probe point by his ID (not his location)
  #1
New Member
 
Join Date: Nov 2014
Posts: 18
Rep Power: 4
Tscar is on a distinguished road
Hi,

I need to set up probe in dynamic mesh case and I want it to follow one (moving) point.
Elegant way to do this might be to set the probe to point ID. Is that even possible? And if so, how can I set it up?

Or, more precisely, what changes should I make in following code?

functions
{
probes
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );

type probes;

// Name of the directory for probe data
name stagnationPointPressure;

// Write at same frequency as fields
outputControl timeStep;
outputInterval 1;

// Fields to be probed
fields
(
p
);

probeLocations
(
(0 0 0)
);
}
}
Tscar is offline   Reply With Quote

Old   February 14, 2016, 09:16
Default
  #2
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Zanjan, Iran
Posts: 287
Rep Power: 8
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by Tscar View Post
Hi,

I need to set up probe in dynamic mesh case and I want it to follow one (moving) point.
Elegant way to do this might be to set the probe to point ID. Is that even possible? And if so, how can I set it up?

Or, more precisely, what changes should I make in following code?

functions
{
probes
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );

type probes;

// Name of the directory for probe data
name stagnationPointPressure;

// Write at same frequency as fields
outputControl timeStep;
outputInterval 1;

// Fields to be probed
fields
(
p
);

probeLocations
(
(0 0 0)
);
}
}
Same question here.
Any luck?
__________________
Learn OpenFOAM in Persian for free, And ask your questions here.
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   February 14, 2016, 11:58
Default
  #3
New Member
 
Join Date: Nov 2014
Posts: 18
Rep Power: 4
Tscar is on a distinguished road
Unfortunately no.
But at least now we are two.

If you find an answer to this, please post it here. I will do the same.
Tscar is offline   Reply With Quote

Old   February 14, 2016, 13:36
Default
  #4
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Zanjan, Iran
Posts: 287
Rep Power: 8
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by Tscar View Post
Unfortunately no.
But at least now we are two.

If you find an answer to this, please post it here. I will do the same.
Well actually I found a dirty solution.
I guess you are using 6DOF solver, cause this is the case when the motion is undefined. I use the information displayed in the log file of the solver while running the case. In the log file you have something like this:
Quote:
6-DoF rigid body motion
Centre of rotation: (0 0.191623 0)
Centre of mass: (0 0.191623 0)
Orientation: (1 0 0 0 1 0 0 0 1)
Linear velocity: (0 -0.00340604 0)
Angular velocity: (0 0 0)
I extract values of Centre of mass by this simple gnuplot code:

Quote:
set title "Position Diagram"
set ylabel 'y(m)'
set xlabel 't(s)'
plot "< cat log | grep 'Centre of mass:' | cut -d' ' -f9" title 'center' with lines
pause 1
reread
That did what I wanted.
Hope it helps you.
__________________
Learn OpenFOAM in Persian for free, And ask your questions here.
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Probe location in a script Mc Fly ParaView 1 September 15, 2015 02:11
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30
[ICEM] Reply script in ICEM CFD location use location of geometry point karamski ANSYS Meshing & Geometry 2 August 13, 2014 11:08
2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
determining displacement for added points CFDnewbie147 OpenFOAM Native Meshers: snappyHexMesh and Others 1 October 22, 2013 09:53


All times are GMT -4. The time now is 08:17.