CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   problem with includeFunc residuals (https://www.cfd-online.com/Forums/openfoam-pre-processing/220830-problem-includefunc-residuals.html)

srikarg September 24, 2019 00:41

problem with includeFunc residuals
 
Hi,

I am using openfoam v5 and i was trying put the code:

functions
{ #includeFunc residuals} in the controldict file. i get the error:

--> FOAM FATAL ERROR:
[2]
request for objectRegistry region0 from objectRegistry single_channelprocessor2 failed
available objects of type objectRegistry are

2
(
fluid
sink
)

Can anyone tell me what to do?:

simrego September 24, 2019 04:38

Hi!


I assume you are using some multi region solver like chtMultiRegionFoam.
In this case you have to define the region name for the residuals function.
(I think you have a file called residuals in your system dir. Then just add a line: "region fluid", or sink if you need that one. Maybe it is regionName, I'm not sure 100%. Hard to follow any changes/versions :D)

srikarg September 24, 2019 05:16

Could you elaborate?
 
Quote:

Originally Posted by simrego (Post 745362)
Hi!


I assume you are using some multi region solver like chtMultiRegionFoam.
In this case you have to define the region name for the residuals function.
(I think you have a file called residuals in your system dir. Then just add a line: "region fluid", or sink if you need that one. Maybe it is regionName, I'm not sure 100%. Hard to follow any changes/versions :D)

Yes. fluid and sink here are region names. Could you elaborate where to add the lines?


All times are GMT -4. The time now is 20:59.