CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Using functionObjects with chtMultiRegionSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2015, 11:15
Default Using functionObjects with chtMultiRegionSimpleFoam
  #1
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 11
hcl734 is on a distinguished road
Hi,

I am trying to use the packed function object flowRate with chtMultiRegionSimpleFoam and it fails with

Code:
--> FOAM FATAL ERROR: 

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

2
(
air
porous
)


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

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::objectRegistry const& Foam::objectRegistry::lookupObject<Foam::objectRegistry>(Foam::word const&) const at ??:?
#3  Foam::OutputFilterFunctionObject<Foam::fieldValues::faceSource>::allocateFilter() at ??:?
#4  Foam::OutputFilterFunctionObject<Foam::fieldValues::faceSource>::start() at ??:?
#5  Foam::functionObjectList::read() at ??:?
#6  Foam::Time::run() const at ??:?
#7  Foam::Time::loop() at ??:?
#8  ? at ??:?
#9  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10  ? at ??:?

I followed the guidlines given in
http://cfd.direct/openfoam/user-guide/function-objects/
under 6.2.2
using heatExchanger tutorial-file
It seems that there are problems because of the multi-domain characteristics of this case.
Does anybody know a solution for this?


My testcase can be downloaded here
https://owncloud.tu-berlin.de/public...0ef4484fb590cd
hcl734 is offline   Reply With Quote

Old   December 19, 2015, 14:48
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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:
  1. Edit your local copy of the file "flowRatePatch".
  2. Change this:
    Code:
    flowRatePatch
    {
        patch <patchName>;
    
        #includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch.cfg"
    }
    To this:
    Code:
    flowRatePatch
    {
        patch <patchName>;
    
        #includeEtc "caseDicts/postProcessing/flowRate/flowRatePatch.cfg"
    
        region <regionName>;
    }
  3. Replace "<regionName>" with the region name you want.
hcl734 likes this.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
chtmultiregionsimplefoam, flow, functionobjects, rate


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
Reading in foamFiles from functionObjects Adam_Lavely OpenFOAM Post-Processing 0 July 17, 2013 14:37
Problem with functionObjects in parallel anishtain4 OpenFOAM 4 February 12, 2013 06:27
OpenFOAM v1.6 & OpenMPI & functionObjects bruce OpenFOAM Bugs 7 December 16, 2011 15:37
How can I write selective additional fields using functionObjects? fpmhadi OpenFOAM 3 July 14, 2011 18:41
OpenFOAM v1.6 & OpenMPI & functionObjects bruce OpenFOAM Running, Solving & CFD 1 August 7, 2009 14:15


All times are GMT -4. The time now is 13:44.