|
[Sponsors] |
September 7, 2009, 15:03 |
Probing function in OpenFOAM-1.6
|
#1 |
Member
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17 |
Hey, I wanted to use the probing function to plot some variables over time in OpenFOAM-1.6. I already used this function in OpenFOAM-1.5. Thus, I just copied the entries from a controlDict from 1.5 and added that to my controlDict in 1.6. My controlDict in 1.6 then looks like:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application turbFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 10; deltaT 0.0005; writeControl timeStep; writeInterval 2000; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable yes; Code:
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 ( (10 0.05 0.0) ); // Fields to be probed. runTime modifiable! fields ( U ); } fieldAverage1 { // Type of functionObject type fieldAverage; // Where to load it from (if not already in solver) functionObjectLibs ("libfieldAverage.so"); // Fields to be averaged - runTime modifiable fields ( U { mean on; prime2Mean on; base time; } p { mean on; prime2Mean on; base time; } ); } ); // ************************************************************************* // Code:
keyword outputControl is undefined in dictionary "::functions::probes1" file: ::functions::probes1 from line 53 to line 68. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 388. FOAM exiting Thanks a lot! |
|
September 7, 2009, 15:19 |
|
#2 |
Member
Ulrich Heck
Join Date: Mar 2009
Location: Krefeld, Germany
Posts: 41
Rep Power: 17 |
Hi Sven,
I used the probes in OF 1.6. An example can be found in \incompressible\pimpleFoam\t-junction\system // Write at same frequency as fields outputControl outputTime; outputInterval 1; I think there is new keyword word for the output control. Ulrich |
|
September 8, 2009, 19:26 |
|
#3 |
Member
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17 |
Thanks Ulli, this was exactly the problem. Now it works!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 09:31 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |