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

probes chtMultiRegionFoam (OF v7)

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By carl_r

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2020, 22:46
Default probes chtMultiRegionFoam (OF v7)
  #1
New Member
 
Carl Reilly
Join Date: Aug 2010
Posts: 25
Rep Power: 15
carl_r is on a distinguished road
I'm trying to get probes and residuals working in chtMultiRegionFoam but it does not seem to work. The postprocessing/probes/0 directory is not created and nor is any data.

I tried using probes with the pitzDaily tutorial and that worked fine. I also reviewed the user guide but found nothing to assist me.

So I'm assuming that there is something different required for a multi-Region case, but i can't work out what it it. I've tried placing probes file in system/*region* directories but that dose not help. I can't see anything in the log files either.

Any help would be welcomed in generating probes for multi-region cases.


In the controlDict I have
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     chtMultiRegionFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         200;

deltaT          0.01;

writeControl    adjustableRunTime;

writeInterval   1.0;

purgeWrite      0;

writeFormat     binary;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

maxCo           1.0;

maxDi           10.0;

adjustTimeStep  yes;

functions
{
    #includeFunc  probes
    #includeFunc  residuals
}


// ************************************************************************* //
In the probes file i have
Code:
\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/probes/probes.cfg"

fields (p T);
probeLocations
(
    (0.0 0.05 0.05)
    (0.095 0.05 0.05)
    (0.105 0.05 0.05)
    (0.15 0.05 0.05)
);

// ************************************************************************* //
carl_r is offline   Reply With Quote

Old   April 30, 2020, 23:21
Default
  #2
New Member
 
Carl Reilly
Join Date: Aug 2010
Posts: 25
Rep Power: 15
carl_r is on a distinguished road
I've managed to get it working with the below code. It seems that you have to define a probes function for each region and declare the locations in the controlDict rather another file.

Is there a neater way of doing this. Is there a way of using a separate file defining the coordinates?

The below is my new controlDict entry:
Code:
functions
{
    probes_cubeA
    {
       // Type of functionObject
       type probes;

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

       region cubeA_solid;

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

       // Locations to be probed. runTime modifiable!
       probeLocations
       (
       ( 0.0 0.05 0.05)
       ( 0.05 0.05 0.05)
       ( 0.1 0.05 0.05)
       ); 
    }


    probes_cubeB
    {
       // Type of functionObject
       type probes;

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

       region cubeB_solid;

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

       // Locations to be probed. runTime modifiable!
       probeLocations
       (
       ( 0.1 0.05 0.05)
       ( 0.125 0.05 0.05)
       ( 0.15 0.05 0.05)
       ); 
    }

};
saidc., Utkan and ahmetcanilhan like this.
carl_r 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
Error in thermophysical properties (chtMultiRegionFoam) mukut OpenFOAM Pre-Processing 28 November 23, 2021 06:34
Error in probes functions!!! Jingxue Wang OpenFOAM Running, Solving & CFD 9 November 25, 2017 09:21
How many probes can I have in a simulation ? guilha OpenFOAM Post-Processing 13 September 17, 2016 07:26
probes function not working in Openfoam 2.1.1 nandiganavishal OpenFOAM 7 July 26, 2012 11:06
problems with probes() function in chtMultiRegionFoam Victor OpenFOAM 0 November 25, 2009 15:08


All times are GMT -4. The time now is 06:10.