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

Error in implementing probe-post processing utility

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By baran_foam
  • 2 Post By fs82
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2015, 05:41
Default Error in implementing probe-post processing utility
  #1
Member
 
baran
Join Date: Aug 2014
Posts: 45
Rep Power: 11
baran_foam is on a distinguished road
Hi,
Greeting all!!!
I want to implement "probe" to get temperature variation with change in time in chtMultiRegionFoam tutorial (multiRegionHeater) of OpenFOAM-2.4.
So as per incompressible/pisoFoam/pitzDaily/system/controlDict file i have made following changes.. in my case..
Quote:
functions
{
heater
{
type probes;
functionObjectLibs ("libsampling.so");
enabled true;
outputControl timeStep;
outputInterval 1;

fields
(
T
);
probeLocations
(

(0 0 0)

);

}
}
But some how it is showing following kind of error....

Quote:
Selecting radiationModel opaqueSolid
Selecting absorptionEmissionModel constantAbsorptionEmission
Selecting scatterModel none
Selecting sootModel none
Adding fvOptions

No finite volume options present

Region: bottomWater Courant Number mean: 0.00017208904 max: 0.00082499996
Region: topAir Courant Number mean: 0.015 max: 0.015000002
Region: heater Diffusion Number mean: 5.9582983e-08 max: 7.1134787e-08
Region: leftSolid Diffusion Number mean: 5.9429061e-08 max: 7.1134787e-08
Region: rightSolid Diffusion Number mean: 5.9429061e-08 max: 7.1134787e-08


--> FOAM FATAL ERROR:

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

5
(
rightSolid
bottomWater
heater
topAir
leftSolid
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/bg8743/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 Foam:bjectRegistry const& Foam:bjectRegistry::lookupObject<Foam:bjectReg istry>(Foam::word const&) const in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libsampling.so"
#3 Foam::OutputFilterFunctionObject<Foam:robes>::al locateFilter() in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libsampling.so"
#4 Foam::OutputFilterFunctionObject<Foam:robes>::st art() in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libsampling.so"
#5 Foam::functionObjectList::read() in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#6 Foam::functionObjectList::adjustTimeStep() in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#7 ? in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/chtMultiRegionFoam"
#8 __libc_start_main in "/lib64/libc.so.6"
#9 ? in "/home/bg8743/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/bin/chtMultiRegionFoam"
Aborted
Can you kindly specify what should I specify in this control Dict file to use this probe properly??

Thanks & regards,
baran
Kummi likes this.
baran_foam is offline   Reply With Quote

Old   June 16, 2015, 01:59
Default
  #2
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18
fs82 is on a distinguished road
This should be some mesh issue or something with your probe location. OpenFoam tells your where the problem is:

-> FOAM FATAL ERROR:

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

5
(
rightSolid
bottomWater
heater
topAir
leftSolid
)

You should check if your probe locations is within the specified region and if you have some misspellings in your dictionary.

Best regards
Fabian
fs82 is offline   Reply With Quote

Old   June 16, 2015, 04:15
Default
  #3
Member
 
baran
Join Date: Aug 2014
Posts: 45
Rep Power: 11
baran_foam is on a distinguished road
Greeting all!!!

@fabian...thanks for your reply...

I have cross checks the controlDict file...
1. There is no spelling error as per tutorial case...
2. I have taken different points from polyMesh directory to check it. But same error is coming...

Regards,
Baran
baran_foam is offline   Reply With Quote

Old   June 16, 2015, 05:24
Default
  #4
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18
fs82 is on a distinguished road
The code for your probes seems to be outdated (I use OF 2.4.x). Have a look, e.g., at multiphase/interDyMFoam/ras/sloshingTank2D/system/controlDict how probes are used.
fs82 is offline   Reply With Quote

Old   June 16, 2015, 06:39
Default
  #5
Member
 
baran
Join Date: Aug 2014
Posts: 45
Rep Power: 11
baran_foam is on a distinguished road
I am also using openFoam-2.4.
I have taken the command from
tutorial/incompressible/pisoFoam/pitzDaily/system/controlDict
It is also showing the same error... according to your suggestion

Mostly some other issue is there which I am missing...

Regards,
Baran
baran_foam is offline   Reply With Quote

Old   June 16, 2015, 07:27
Default
  #6
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18
fs82 is on a distinguished road
I checked it and I am able to reproduce your error for the multiRegionHeater tutorial case. However, I do not have a clue at the moment, it seems to be related to the mesh and the various regions. To register the probe OF tries to access region0, which is not present. I think you have to dive into the code to fix this issue.

Best regards
Fabian
fs82 is offline   Reply With Quote

Old   June 16, 2015, 10:14
Default
  #7
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18
fs82 is on a distinguished road
I found your problem. You have to add the region in your probe function, as I have done below:

Code:
    probes
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl   timeStep;
        outputInterval  1;

	region heater;

        fields
        (
            p
        );

        probeLocations
        (
            ( 0.0254 0.0253 0 )
            ( 0.0508 0.0253 0 )
            ( 0.0762 0.0253 0 )
            ( 0.1016 0.0253 0 )
            ( 0.127 0.0253 0 )
            ( 0.1524 0.0253 0 )
            ( 0.1778 0.0253 0 )
        );
Best regards
Fabian
Kummi and geralt1997 like this.
fs82 is offline   Reply With Quote

Old   June 17, 2015, 02:18
Default
  #8
Member
 
baran
Join Date: Aug 2014
Posts: 45
Rep Power: 11
baran_foam is on a distinguished road
Greeting all!!
@Fabian thanks a lot for your reply..it works in this way.....
Some observation I have seen as follows...
1. If we enter different region for probe location then it will give some garbage value....but not going to show any error...

But i have another doubt....If we want to probe in two different fields then how to do this using probe??
I am trying in this way... but it is only reading last entry region.that means for this case it only log data for topAir....
Code:
    probes 
    {    
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl   outputTime;  //timeStep;
        outputInterval  1;
    region        heater;


    probeLocations
        (

      (-0.013333333 0 -0.05)
      (-0.0066666667 0 -0.05)
      (0 0 -0.05)
      (0.0066666667 0 -0.05)
      (0.013333333 0 -0.05)
      (-0.013333333 0.008 -0.05)
      (-0.0066666667 0.008 -0.05)
      (0 0.008 -0.05)
     );

    fields
    (
    T
    );


    }

      probes
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
    enabled        true;
        outputControl   outputTime;
    outputInterval  1;

    region       topAir;
        probeLocations
        (
(-0.1 0.008 -0.05)
(-0.093333333 0.008 -0.05)
(-0.086666667 0.008 -0.05)
(-0.08 0.008 -0.05)
(-0.073333333 0.008 -0.05)
(-0.066666667 0.008 -0.05)
(-0.06 0.008 -0.05)
(-0.053333333 0.008 -0.05)
(-0.046666667 0.008 -0.05)
(-0.04 0.008 -0.05)
(-0.033333333 0.008 -0.05)
(-0.026666667 0.008 -0.05)
(-0.02 0.008 -0.05)

        );

        fields
        (
            T
        );
     }
Code:
    probes 
    {    
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl   outputTime;  //timeStep;
        outputInterval  1;
    region        heater;

    probeLocations
        (

      (-0.013333333 0 -0.05)
      (-0.0066666667 0 -0.05)
      (0 0 -0.05)
      (0.0066666667 0 -0.05)
      (0.013333333 0 -0.05)
      (-0.013333333 0.008 -0.05)
      (-0.0066666667 0.008 -0.05)
      (0 0.008 -0.05)
   &nbsp;);

    region       topAir;
      probeLocations
        (
(-0.1 0.008 -0.05)
(-0.093333333 0.008 -0.05)
(-0.086666667 0.008 -0.05)
(-0.08 0.008 -0.05)
(-0.073333333 0.008 -0.05)
(-0.066666667 0.008 -0.05)
(-0.06 0.008 -0.05)
(-0.053333333 0.008 -0.05)
(-0.046666667 0.008 -0.05)
(-0.04 0.008 -0.05)
(-0.033333333 0.008 -0.05)
(-0.026666667 0.008 -0.05)
(-0.02 0.008 -0.05)

        );

        fields
        (
            T
        );
     }
Can anyone have any idea for this...??

Regards,
Baran

Last edited by wyldckat; June 17, 2015 at 15:27. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE]
baran_foam is offline   Reply With Quote

Old   June 17, 2015, 15:29
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You are using the same name for each named block:
Code:
probes 
{
...
}

probes 
{
...
}
When you should use different names, for example:
Code:
heaterProbes
{
...
}

topAirProbes 
{
...
}
nimasam likes this.
wyldckat is offline   Reply With Quote

Old   June 18, 2015, 05:30
Default
  #10
Member
 
baran
Join Date: Aug 2014
Posts: 45
Rep Power: 11
baran_foam is on a distinguished road
Greeting All!!!
@bruno...thanks a lot for your reply.....

Yea I have done some mistakes here....right now it is working properly...

Regards,
Baran
baran_foam 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
post processing for CEL expressions Niru CFX 0 May 10, 2013 13:13
Calculation of R using post processing utility choudhury OpenFOAM 3 March 24, 2013 11:59
Automated post processing using CFD Post shreyasr ANSYS 0 January 28, 2013 06:21
CFD post processing techniques & streamlining klk Main CFD Forum 0 October 19, 2010 07:37
post processing in CFD MANISH BHARGAVA Main CFD Forum 0 October 17, 1998 20:51


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