|
[Sponsors] |
how to extract the velocity at given location after simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 28, 2017, 20:03 |
how to extract the velocity at given location after simulation
|
#1 |
Member
Yage
Join Date: May 2014
Posts: 60
Rep Power: 11 |
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 |
|
March 1, 2017, 00:18 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
- 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) |
|
March 1, 2017, 06:49 |
|
#3 | |
Member
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 11 |
Quote:
the command: Code:
probeLocations 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 ); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Regards, Ricky
__________________
If it is easy, then something is fishy! |
||
April 4, 2017, 09:36 |
|
#4 |
Member
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 9 |
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 |
|
|
|
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 |