CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   ProbeLocations (http://www.cfd-online.com/Forums/openfoam-solving/60456-probelocations.html)

r2d2 October 19, 2005 08:32

Hi, I am trying to run a sli
 
Hi,
I am trying to run a slightly modified version of oodles (added some equations) in parallel and I want to be able to monitor the values of some variables that I am solving for at certain locations in the grid. I see that I have to define a probeLocation file, to start with, besides adding in the createProbes.H the corresponding variables. I guess that at every timestep they values are written in some directory (called "probes"?). Now, I have a couple of questions:
1: probeLocations should consist of (x,y,z) coordinates in my domain or what? i.e something like:

FoamFile
{
version 2.0;
format ascii;

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

class dictionary;
object probeLocations;
}

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

probeLocations
(
(-4.2426406871192857 -4.2426406871192857 0.00001)
(4.2426406871192857 -4.2426406871192857 0.00001)
(4.2426406871192857 4.2426406871192857 0.00001)
(-4.2426406871192857 4.2426406871192857 0.00001)
);


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

2: I don't seem to be able to create the probes (sub)directory except by hand a nothing gets written into it. Is there a switch in some dictionary that tells Foam to write at the probes?

I need this to check on something strange that happens in the course of the run (at least for my interests) and I would like to have instantaneous values at some points to compare.

Please help and thanks in advance,
Radu

mattijs October 20, 2005 04:52

1. looks good. Compare to the
 
1. looks good. Compare to the oodles tutorial case.

2. does oodles dump correctly?

r2d2 October 20, 2005 06:57

1. I thought so. 2. No, oodle
 
1. I thought so.
2. No, oodles, to start with, (or my oodles in Foam1.2) does not have anything in probeLocations file and no probes directory either. channelOodles has, but it does not write anything into it at runtime. I did a short run to test it, as in my controlDict reads:

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

application channelOodles;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 10;

deltaT 0.2;

writeControl timeStep;

writeInterval 10;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

...One more thing: I checked channelOodles in the serial version ( meaning one processor) and it worked allright, as in it did print the values of U and p at the location indicated. BTW, I am using LAM.
Cheers,
Radu


All times are GMT -4. The time now is 20:12.