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

how to extract the velocity at given location after simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2017, 20:03
Default how to extract the velocity at given location after simulation
  #1
Member
 
Yage
Join Date: May 2014
Posts: 60
Rep Power: 11
Yage is on a distinguished road
Hello,

I would like to extract the flow velocity at a given location after the simulation.

Is there any way to achieve that instead of re-running the simulation with probes function in controldict?

Regards,
Yage
Yage is offline   Reply With Quote

Old   March 1, 2017, 00:18
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
- run writeCellCentres for the folder of your result (you may choose write CellCentres -latestTime)
- "glue" the ccx, ccy, ccz and U files with paste: paste -d ' ' ccx ccy ccz U > myresult
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   March 1, 2017, 06:49
Default
  #3
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 11
kera is on a distinguished road
Quote:
Originally Posted by Yage View Post
Hello,

I would like to extract the flow velocity at a given location after the simulation.

Is there any way to achieve that instead of re-running the simulation with probes function in controldict?

Regards,
Yage
If you need to extract field information at a particular/defined location then you can use
the command:
Code:
probeLocations
for which you need to define probesDict in your "case/system" folder, see the sample below:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version         2.0;
    format          ascii;
    class           dictionary;
    location        system;
    object          probesDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


// Fields to be probed. runTime modifiable!
fields
(
    U T 
);

// Locations to be probed. runTime modifiable!
probeLocations
(

    (x1 y1 z1) // locaiton 1 
    (x2 y2 z2) // locaiton 2


);

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
hope this helps!

Regards,
Ricky
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   April 4, 2017, 09:36
Default
  #4
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 9
Joshua14 is on a distinguished road
Another way you can do this is by utilizing slices in Paraview. You can do a crinkle slice in the x, y, and z direction. This will give a single cell from your domain. With that you can save data or collect what ever data you have from your saved time steps without rerunning the simulation for that specific cell.

Joshua
Joshua14 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
How to plot a velocity in DEM Simulation jhlee9622 STAR-CCM+ 1 October 24, 2018 10:07
Simulation Pausing Durning Velocity Profile Update CaptainCombo ANSYS 1 September 4, 2015 10:55
VELOCITY vs VELOCITY IN STN FRAME vs RELATIVE VELOCITY everest20 FLUENT 1 July 13, 2015 08:35
[swak4Foam] groovyBC, coupling inlet with velocity at specific point location olivierG OpenFOAM Community Contributions 6 June 23, 2012 08:44
Angular velocity in wind turbine simulation vanni Main CFD Forum 1 May 18, 2009 11:03


All times are GMT -4. The time now is 11:12.