|
[Sponsors] |
April 30, 2020, 22:46 |
probes chtMultiRegionFoam (OF v7)
|
#1 |
New Member
Carl Reilly
Join Date: Aug 2010
Posts: 25
Rep Power: 15 |
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 } // ************************************************************************* // 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) ); // ************************************************************************* // |
|
April 30, 2020, 23:21 |
|
#2 |
New Member
Carl Reilly
Join Date: Aug 2010
Posts: 25
Rep Power: 15 |
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) ); } }; |
|
|
|
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 |