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

Probe point by his ID (not his location)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2016, 07:40
Default Probe point by his ID (not his location)
  #1
Member
 
Join Date: Nov 2014
Posts: 36
Rep Power: 11
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, 08:16
Default
  #2
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
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
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
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, 10:58
Default
  #3
Member
 
Join Date: Nov 2014
Posts: 36
Rep Power: 11
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, 12:36
Default
  #4
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
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
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
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   August 6, 2018, 10:38
Default
  #5
New Member
 
Mohamad
Join Date: Apr 2017
Location: Oxford, UK
Posts: 10
Rep Power: 9
mhasif02 is on a distinguished road
Dear all,

Use " fixedLocations false; " refer post no. 4 here: probe/sample pressure on moving boundary

Regards,
Mohamad
mhasif02 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
[General] 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 17:30
[ICEM] Reply script in ICEM CFD location use location of geometry point karamski ANSYS Meshing & Geometry 2 August 13, 2014 11:08
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53


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