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

Time series of data at a point

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2007, 06:01
Default Hi Srinath I have read your
  #21
New Member
 
Armin Hosseinian
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 17
Rep Power: 17
armin_h is on a distinguished road
Hi Srinath

I have read your instruction of the following commands.

i would pleased to ask some question:

1. how can i create the writeProbes.H and createProbes.Hfile?
and where should be its location

2. can i copy the .h zip files which you put it in the instruction instead of making the .h files separately?

2. does your command will solve the problem in terms of the working with probe to create the graphs?

I am trying to probe the fluid flow through the pipe and the graph in all parts of the pipe is laminar , and i can not probe the u part of the pipe flow.

i am using 1.4 version.

Many Thanks in advance
Armin


Now after saving Xoodles.C,

create the file writeProbes.H with the following contents:

UProbe.write();
pProbe.write();

Now, you must create the file createProbes.H with the following contents:

Info<< "Reading probeLocations\n" << endl;

IOdictionary probeLocations
(
IOobject
(
"probeLocations",
runTime.constant(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);


Info<< "Constructing probes\n" << endl;

Probe<volvectorfield> UProbe(probeLocations, U);
Probe<volscalarfield> pProbe(probeLocations, p);


Finally, you must create the file writeNaveragingSteps.H with the following contents:

if (runTime.outputTime())
{
OFstream nAveragingStepsFile
(
runTime.path()/runTime.timeName()/"uniform"/"nAveragingSteps.raw"
);

if (nAveragingStepsFile.good())
{
nAveragingStepsFile << nAveragingSteps << endl;
}
else
{
FatalErrorIn(args.executable())
<< "Cannot open file " << nAveragingStepsFile.name()
<< abort(FatalError);
}
}
armin_h is offline   Reply With Quote

Old   November 7, 2007, 16:15
Default Sorry for the late reply. I wa
  #22
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Sorry for the late reply. I was busy at a conference and my PhD candidacy exam.

1. how can i create the writeProbes.H and createProbes.Hfile?
and where should be its location

Use any text editor? They should be located in the same directory as Xoodles.C.

2. can i copy the .h zip files which you put it in the instruction instead of making the .h files separately?

Yes, sure.

2. does your command will solve the problem in terms of the working with probe to create the graphs?

I don't understand what you are saying. Can you rephrase your question?
msrinath80 is offline   Reply With Quote

Old   April 10, 2008, 15:39
Default Hello Srinath, I have added
  #23
ali
Member
 
Ali Heidari
Join Date: Mar 2009
Location: Surrey, London, United Kingdom
Posts: 39
Rep Power: 17
ali is on a distinguished road
Hello Srinath,

I have added the parts you have mentiond to Xoodles solver, and I have compiled it without any problem, but when I run a case using this modified solver, it dosn't write out any data file (for specified points of interest), it just runs like before modifications and just write usual files in time directories! Could you please let me know if I am making a mistake or if not were I should find the output ?

many thanks in advance,
Ali
ali is offline   Reply With Quote

Old   April 10, 2008, 18:39
Default If the specified points are in
  #24
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
If the specified points are in the interior of the geometry, there should be a probes directory that gets created. Check again. Also please make sure you are running the right solver (i.e. the one you just rebuilt). Paste your log file upto a few timesteps here if you can. There will be a line that says 'Creating Probes'.
msrinath80 is offline   Reply With Quote

Old   April 11, 2008, 08:14
Default Hello Srinath, Thank you v
  #25
ali
Member
 
Ali Heidari
Join Date: Mar 2009
Location: Surrey, London, United Kingdom
Posts: 39
Rep Power: 17
ali is on a distinguished road
Hello Srinath,

Thank you very much for your guidance, I think the points that I had specified were out of domain because I was using a scale factor for the mesh. but now I have corrected it and it is working very well.

Kind regards,
Ali
ali is offline   Reply With Quote

Old   September 30, 2008, 17:09
Default Gentlemen: I have a question
  #26
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
Gentlemen:
I have a question on the probes function in OpenFoam. In the dambreak problem I would like to define a point (x,y,z) in the fluid and then follow that point over time so that I can get a displacement vs time plot. Can the probe function be used to do that? I notice however, that the probe function is included in the icoDymFoam and not interFoam, and the dambreak problems are solved using interFoam

I am using OpenFOAM 1.5. Suggestions / guidance would be appreciated.
Musa
musahossein is offline   Reply With Quote

Old   November 20, 2008, 09:42
Default Hello, is it really that diff
  #27
Member
 
Florian Ettner
Join Date: Mar 2009
Location: Munich, Germany
Posts: 41
Rep Power: 17
dohnie is on a distinguished road
Hello,
is it really that difficult getting some value over time plots from existing results? For sure you can set the probes at the beginning of your calculation, but maybe you don't know at the beginning where the interesting points will be in the end?
Any idea of a simpler solution, maybe exporting the values from paraview?
Regards,
dohnie
dohnie is offline   Reply With Quote

Old   December 17, 2008, 13:40
Default Hi Everybody I do not have cl
  #28
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
Hi Everybody
I do not have clear the use of probe function for getting time series of data at a point. I am user of 1.4.1 version.
I did as Eugene said (adding some text at the end of the controlDict file) but I had no results. I also tried as Srinath says and I could not compile.
Any idea for helping me?

PS: I used paraview 2.4.4 for exporting time series at a point but the results were wrong. I posted that some days ago

/Image{}
martinr is offline   Reply With Quote

Old   December 17, 2008, 13:41
Default /image{grafico}
  #29
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
/image{grafico}
martinr is offline   Reply With Quote

Old   December 17, 2008, 13:42
Default http://www.cfd-online.com/Open
  #30
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road

martinr is offline   Reply With Quote

Old   December 18, 2008, 08:54
Default Hi Martin, "I did as Eugene
  #31
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
Hi Martin,

"I did as Eugene said (adding some text at the end of the controlDict file) but I had no results."
What do you mean by no result ?

You can have a look in the tutorial, I don't remember which one but, there is one which explain how to use the probe utility

Cedric
cedric_duprat is offline   Reply With Quote

Old   December 18, 2008, 09:56
Default Hi Cedric, When starting a
  #32
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
Hi Cedric,

When starting a case using e.g.
icoFoam the problem is:


--> FOAM FATAL IO ERROR : ill defined primitiveEntry starting at keyword 'functions' on line 59 and ending at line 80

file: /home/vavuorin/OpenFOAM/martin-1.4.1/run/tutorials/icoFoam/cavity/system/control Dict at line 80.

From function primitiveEntry::readData(Istream& is)
in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 97.

FOAM exiting

I have looked for "probe" in both ProgrammersGuide and UserGuide and nothing was found.

Thanks for your reply.

Martín
martinr is offline   Reply With Quote

Old   December 18, 2008, 11:08
Default Hi again, can you post a c
  #33
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
Hi again,

can you post a copy of your controlDict file.
Or have a look on the oodles tutorial, there is one called pitzDaily and in system/controlDict you can have an example of probe utility.
Be sure that this one is working, try it and there will be no reason not to do it to your case.

I hope it will help you.

Cedric
cedric_duprat is offline   Reply With Quote

Old   December 18, 2008, 16:08
Default Hi Cedric I made a mistake
  #34
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
Hi Cedric

I made a mistake in my controlDict file. I copied the last part from the oodles tutorial and it ran well.
Thank you very much for your help.

Martin
martinr is offline   Reply With Quote

Old   December 22, 2008, 14:16
Default Hi Cedric, my deltaT is 0.001
  #35
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
Hi Cedric,
my deltaT is 0.001 second and the first column in probes/gamma file is not every 0.001 second:

# time (3.14 0.5 0)
0.00025 0
0.0005 0
0.00075 0
0.001 0
0.001 0
0.001 0
0.00125 0
0.0015 0
0.00175 0
0.002 0
0.002 0
0.002 0
0.00225 0
0.0025 0
0.00275 0
// //
0.0085 2.2152042e-135
0.00875 5.0483571e-134
0.009 7.4230374e-133
0.009 7.4230374e-133
0.009 7.4230374e-133
0.00925 7.9418236e-132
0.0095 6.1437403e-131
0.00975 3.8364055e-130
0.01 1.3142907e-129
0.01 1.3142907e-129
0.01 1.3142907e-129

Any clue?

Thank you in advance

Martín
martinr is offline   Reply With Quote

Old   January 9, 2009, 12:00
Default Hi Martin, I think your "d
  #36
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
Hi Martin,

I think your "deltaT" is not the time step of your run but the time you save your result.
Your time step is 0.00025. It means that you save your result every 4 iterations. (I hope you've got big hard-drive) :o)
Check on the user-guide how the controlDict file is working, here you will find the clue.

I hope it help,

Cedric
cedric_duprat is offline   Reply With Quote

Old   January 12, 2009, 08:58
Default Hi Cedric, this is my contr
  #37
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
Hi Cedric,

this is my control file:
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object controlDict;
}

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

application rasInterFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 0.01;

deltaT 0.001;

writeControl timeStep;

writeInterval 1;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep no;

maxCo 1;

maxDeltaT 1;

functions
(
probes1
{
// Type of functionObject
type probes;

// Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so");

// Locations to be probed. runTime modifiable!
probeLocations
(
(3.14 0.505 0.0)
);

// Fields to be probed. runTime modifiable!
fields
(
gamma
);
}
);

and my probe/0/gamma is:

# Time (3.14 0.505 0)
0.00025 0
0.0005 0
0.00075 0
0.001 0
0.001 0
0.001 0
0.00125 0
0.0015 0
0.00175 0
0.002 0
0.002 0
0.002 0
0.00225 0
0.0025 0
0.00275 0
0.003 0
0.003 0
0.003 0
0.00325 0
0.0035 0
0.00375 0
0.004 0
0.004 0
0.004 0
0.00425 0
0.0045 0
0.00475 0
0.005 0
0.005 0
0.005 0
0.00525 0
0.0055 0
0.00575 0
0.006 0
0.006 0
0.006 0
0.00625 1.43126e-146
0.0065 2.67687e-143
0.00675 2.30226e-140
0.007 1.12933e-137
0.007 1.12933e-137
0.007 1.12933e-137
0.00725 1.47069e-134
0.0075 1.21908e-132
0.00775 5.01872e-131
0.008 1.35218e-129
0.008 1.35218e-129
0.008 1.35218e-129
0.00825 3.01483e-128
0.0085 5.20517e-127
0.00875 7.23858e-126
0.009 8.36331e-125
0.009 8.36331e-125
0.009 8.36331e-125
0.00925 9.29989e-124
0.0095 9.01328e-123
0.00975 7.69994e-122
0.01 5.8428e-121
0.01 5.8428e-121

I have problems only with multiphase flow solvers (rasInterFoam and interFoam). Probes functions work fine with other solvers (icoFoam, oodles, turbFoam).

Thanks
Martin.
martinr is offline   Reply With Quote

Old   June 9, 2009, 02:26
Default
  #38
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17
sven is on a distinguished road
I also want to plot variables over time. I think this is the right thread for my problem. Unfortunately I neither know what oodless is, nor what probe is. Could someone explain me these in more detail, or what I exactly have to do to plot a variable over time? Thanks a lot!
sven is offline   Reply With Quote

Old   March 16, 2010, 01:17
Default
  #39
New Member
 
Alexis Espinosa
Join Date: Aug 2009
Location: Australia
Posts: 20
Rep Power: 17
alexisespinosa is on a distinguished road
The utility probeLocations can help. It just need a probesDict in system and can postprocess existing result files.
alexisespinosa is offline   Reply With Quote

Old   June 27, 2010, 16:29
Default
  #40
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
Hi
Why in my probe file, the result at each time (only one in my case), aren't aligned on one row?

Thanks
Daniele111 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
Time series input data-Possible in Ansya/ Fluent?? Rajkumar CFX 2 May 24, 2010 19:33
Getting Time Series data from saved unsteady data Atul FLUENT 4 November 26, 2008 06:12
Time Series Export ANASTASIOS GEORGOULAS FLUENT 2 September 19, 2007 11:39
time series data for pressure and velocity James Willie FLUENT 0 July 12, 2006 05:31
Time series data as input-Possible in Ansys/Fluent Rajkumar Main CFD Forum 0 April 13, 2005 12:04


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