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

Postprocess utility : I am lost

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2018, 04:41
Default Postprocess utility : I am lost
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
I am trying to use the postProcess utility to get data at probe locations.

Here is my probe function file located in the system of my case. The sensors file contains a huge list of probes locations

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:      www.OpenFOAM.org
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out values of fields from cells nearest to specified locations.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/probes/probes.cfg"

fields (p U alpha);

probeLocations
(
#include "sensors"
);
Now, executing

Code:
Postprocess -func probes
Does not work as intended. I get data in postProcessing/probes for only the two first time steps (the 0 and 0.10001) and the second timestep does not even contain all required fields (only the p file)

Now, if I execute

Code:
postProcess -func probes -latestTime
It works perfectly and I get the desired data.

So how can I get the same data but for all time steps present in my case folder ?
Gearb0x is offline   Reply With Quote

Old   February 28, 2018, 06:15
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
I dont know why

Code:
Postprocess -func probes
doesn't work. But until you found that out you may use

Code:
Postprocess -func probes -time <numberOfTheTimeFolder>
for every time you need it.
__________________
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   February 28, 2018, 07:42
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Indeed this is a workaround.
Amazing thing is that

Code:
Postprocess -func probes -time 0.2999
works but

Code:
Postprocess -func probes -time 0:1
will not produce anything (except again for the first two time directories)
Gearb0x is offline   Reply With Quote

Old   February 28, 2018, 08:07
Default
  #4
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
I feel this is somehow related to the following warning message

Code:
--> FOAM Warning :
    From function void Foam::Time::setControls()
    in file db/Time/Time.C at line 214
    Increasing the timePrecision from 6 to 18 to support the formatting of the current time directory 29.2000222392333768
#####

EDIT

Another thing I don't get is that I have two identical data lines for each time step i.e. in postProcessing/probes/timeXX I have :

Code:
#time probe1 probe2 ... probeN
XX      A         B         ... C
XX      A         B         ... C
Am i not supposed to only get one line per time directory ?

Last edited by Gearb0x; March 1, 2018 at 01:30.
Gearb0x is offline   Reply With Quote

Old   July 7, 2019, 14:27
Default
  #5
Member
 
Eren
Join Date: Aug 2018
Posts: 86
Rep Power: 8
ErenC is on a distinguished road
Quote:
Originally Posted by Gearb0x View Post
Indeed this is a workaround.
Amazing thing is that

Code:
Postprocess -func probes -time 0.2999
works but

Code:
Postprocess -func probes -time 0:1
will not produce anything (except again for the first two time directories)
I know this is a old post but I wanted to share that:
Code:
Postprocess -func probes -time '1, 2, 3, 4, 5'

will gave data from 1, 2, 3, 4 , 5th sec or iterations(depending on transient or st-st) data. If anyone knows how to set interval like "1:5" (matlab habits doesnt work, sadly) I'll also be happy.
ErenC 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
postProcess Utility: icoFoam -noFunctionObjects Why?How? TeresaT OpenFOAM Post-Processing 8 July 26, 2023 02:41
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
postProcess functionality in openFOAM 4 bullmut OpenFOAM Post-Processing 23 July 21, 2017 09:11
wallHeatFlux Calculation wrt utility version ahmet OpenFOAM Post-Processing 1 December 18, 2016 19:45
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! zfaraday OpenFOAM Post-Processing 0 February 5, 2015 16:47


All times are GMT -4. The time now is 23:07.