CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Problems with probes (https://www.cfd-online.com/Forums/openfoam-post-processing/231061-problems-probes.html)

aero_eng October 19, 2020 17:59

Problems with probes
 
Hello everyone,

I'm running a simulation in chtMultiRegionFoam, and I need to know the values of the temperature in some points, so I used the function probe in this way:
probe
{
type probes;
enabled yes;
writeControl timeStep;
writeInterval 1;

fields (T);
probeLocations
(
(-0.0408 0.03735 0.03)
(0.051 0.0897 0.03)
(0.051 -0.015 0.03)
(-0.0408 -0.06735 0.03)
(0.051 -0.1197 0.03)
);

}
but when I run the simulation OpenFoam gives me this error:

--> FOAM Warning :
From function bool Foam::functionObjectList::read()
in file db/functionObjects/functionObjectList/functionObjectList.C at line 871
Caught FatalError
--> FOAM FATAL ERROR:

request for objectRegistry region0 from objectRegistry caso_thermo failed
available objects of type objectRegistry are

2
(
fluid
solid
)


From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::objectRegistry]
in file /home/fabio/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 211.

Am I doing something wrong?

Yann October 20, 2020 04:33

Hello Fabio,

I never tried it on probes, but usually with chtMultiRegionFoam you have to specify the region in the function definition.

Try adding a "region" parameter:

Code:

    probe
    {
      type    probes;
      enabled yes;
      writeControl timeStep;
      writeInterval 1;

      region  your_region_name;

      fields (T);
      probeLocations
      (
        (-0.0408 0.03735 0.03)
        (0.051 0.0897 0.03)
        (0.051 -0.015 0.03)
        (-0.0408 -0.06735 0.03)
        (0.051 -0.1197 0.03)
      );
}


Let me know if it solves your problem!


Yann

aero_eng October 20, 2020 16:26

Thank you very much now it works!


All times are GMT -4. The time now is 02:18.