CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   libfieldfunctionobj.so & chtMultiRegionFoam (https://www.cfd-online.com/Forums/openfoam-solving/98532-libfieldfunctionobj-so-chtmultiregionfoam.html)

Aurelien Thinat March 13, 2012 07:44

libfieldfunctionobj.so & chtMultiRegionFoam
 
Hi everyone,

I am used to the libfieldFunctionObjects tool in order to follow the variations of variables during the run time :
In the controlDict :
Quote:

functions
{
example
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
(...)
operation sum;
fields
(
...
);
}
}
It's working well with different solvers as simpleFoam / rhoSimpleFoam (...). But now I'm trying to use this tool with the chtMultiRegion-(Simple)-Foam and it's not working very well : I have this error message :
Quote:

--< FOAM FATAL ERROR:

request for objectRegistry region0 from objectRegistry Test-case failed
available objects of type objectRegistry are
2
(
Fluid
Solid
)
EDIT : After a look in the source code (faceSource.C), it seems it doesn't look up for the name of the domain. Does anyone have any idea how to modify the source code to make this tool available with chtMultiRegionSimpleFoam solver ?

Aurelien Thinat March 13, 2012 12:37

Ok I have found the answer. The source code is already able to deal with multi region solver. You just need to add the "region" keyword inside the controlDict.


All times are GMT -4. The time now is 12:49.