CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Probe point by his ID (not his location) (https://www.cfd-online.com/Forums/openfoam-post-processing/166090-probe-point-his-id-not-his-location.html)

Tscar February 2, 2016 07:40

Probe point by his ID (not his location)
 
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)
);
}
}

Mojtaba.a February 14, 2016 08:16

Quote:

Originally Posted by Tscar (Post 583380)
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?

Tscar February 14, 2016 10:58

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.

Mojtaba.a February 14, 2016 12:36

Quote:

Originally Posted by Tscar (Post 585121)
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.

mhasif02 August 6, 2018 10:38

Dear all,

Use " fixedLocations false; " refer post no. 4 here: https://www.cfd-online.com/Forums/op...-boundary.html

Regards,
Mohamad


All times are GMT -4. The time now is 22:20.