|
[Sponsors] |
October 31, 2007, 06:01 |
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 |
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); } } |
|
November 7, 2007, 16:15 |
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 |
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? |
|
April 10, 2008, 15:39 |
Hello Srinath,
I have added
|
#23 |
Member
Ali Heidari
Join Date: Mar 2009
Location: Surrey, London, United Kingdom
Posts: 39
Rep Power: 17 |
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 |
|
April 10, 2008, 18:39 |
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 |
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'.
|
|
April 11, 2008, 08:14 |
Hello Srinath,
Thank you v
|
#25 |
Member
Ali Heidari
Join Date: Mar 2009
Location: Surrey, London, United Kingdom
Posts: 39
Rep Power: 17 |
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 |
|
September 30, 2008, 17:09 |
Gentlemen:
I have a question
|
#26 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
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 |
|
November 20, 2008, 09:42 |
Hello,
is it really that diff
|
#27 |
Member
Florian Ettner
Join Date: Mar 2009
Location: Munich, Germany
Posts: 41
Rep Power: 17 |
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 |
|
December 17, 2008, 13:40 |
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 |
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{} |
|
December 17, 2008, 13:41 |
/image{grafico}
|
#29 |
New Member
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17 |
/image{grafico}
|
|
December 17, 2008, 13:42 |
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 |
|
|
December 18, 2008, 08:54 |
Hi Martin,
"I did as Eugene
|
#31 |
Senior Member
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17 |
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 |
|
December 18, 2008, 09:56 |
Hi Cedric,
When starting a
|
#32 |
New Member
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17 |
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 |
|
December 18, 2008, 11:08 |
Hi again,
can you post a c
|
#33 |
Senior Member
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17 |
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 |
|
December 18, 2008, 16:08 |
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 |
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 |
|
December 22, 2008, 14:16 |
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 |
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 |
|
January 9, 2009, 12:00 |
Hi Martin,
I think your "d
|
#36 |
Senior Member
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17 |
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 |
|
January 12, 2009, 08:58 |
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 |
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. |
|
June 9, 2009, 02:26 |
|
#38 |
Member
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17 |
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!
|
|
March 16, 2010, 01:17 |
|
#39 |
New Member
Alexis Espinosa
Join Date: Aug 2009
Location: Australia
Posts: 20
Rep Power: 17 |
The utility probeLocations can help. It just need a probesDict in system and can postprocess existing result files.
|
|
June 27, 2010, 16:29 |
|
#40 |
Senior Member
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16 |
Hi
Why in my probe file, the result at each time (only one in my case), aren't aligned on one row? Thanks |
|
|
|
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 |