|
[Sponsors] |
probes function not working in Openfoam 2.1.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 27, 2012, 17:09 |
probes function not working in Openfoam 2.1.1
|
#1 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Foamers,
I had recently installed the latest version of OpenFoam 2.1.1. I was trying to compile and execute my solvers created in version 1.7.0 into the latest version. I had no issues in compiling my solvers, however I found that my probes function was not working in the new version. Below is my controldict file /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application coupleFoam_1D; startFrom startTime; startTime 0; stopAt endTime; endTime 10000; deltaT 200; writeControl adjustableRunTime; writeInterval 200; purgeWrite 0; writeFormat ascii; writePrecision 8; writeCompression uncompressed; timeFormat general; timePrecision 8; runTimeModifiable yes; adjustTimeStep yes; functions { probes { // Where to load it from functionObjectLibs ( "libsampling.so" ); type probes; // Name of the directory for probe data name probes; // Write at same frequency as fields outputControl outputTime; outputInterval 1; // Fields to be probed fields ( Phi C1 ); // Locations to be probed. runTime modifiable! probeLocations ( // x variation (0 0 0) ); } } // ************************************************** *********************** // // ************************************************** *********************** // As I had mentioned, I am able to execute the program but not able to get the probes function working. Kindly let me know what could be the reason for this. Thanks Regards Vishal |
|
July 26, 2012, 11:22 |
|
#2 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Dear Vishal,
I am trying to solve the same problem that you faced. Have you solved it? How did you get it working? Thanks a lot, Samuele |
|
July 26, 2012, 11:34 |
|
#3 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
What exactly is not working? What errormessages do you get?
|
|
July 26, 2012, 11:42 |
|
#4 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Actually,
the problem is a bit different. It works, but I am able to evaluate temperature in a single point. How could I evaluate the temperatures of all the cells on a patch? |
|
July 26, 2012, 11:46 |
|
#5 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Then you need a different type of function. Altough the patch data is stored by default every output timestep, so I am not sure if it is strictly necessary (unless you want the patch info to be written more often). You should look up the different types of functionObjects to see the possibilities during runtime.
|
|
July 26, 2012, 11:49 |
|
#6 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
I'll look for them,
thanks a lot. Where are they listed? Also, just one more question: is it possible to manipulate the variable on that patch? I mean, can I sum them, or something like it? Thanks again, Samuele |
|
July 26, 2012, 11:52 |
|
#7 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Hi Samuele,
In my case,the probes function was not working due to the new OpenFOAM version 2.1.0. I was able to fix it by changing for (runTime++; !runTime.end(); runTime++) with: while (runTime.run()) in the solver. Thanks Vishal |
|
July 26, 2012, 12:06 |
|
#8 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Thanks Visha,
actually my problem is a bit different.. Thanks again, Samuele |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
OpenFOAM Foundation Releases OpenFOAMŪ Version 2.1.1 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | May 31, 2012 10:07 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |