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

cacheLESRegion ERROR

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2024, 17:22
Default cacheLESRegion ERROR
  #1
gu1
Senior Member
 
Guilherme
Join Date: Apr 2017
Posts: 232
Rep Power: 10
gu1 is on a distinguished road
Hi,

I'm trying to implement the cacheLESRegion function, present in the SpallartAllmarasDES model, in my model (OpenFOAM 9).

When I test the function (below) using the Spallart model, everything goes well.

SpalartAllmarasDES.C:
Code:
template<class BasicMomentumTransportModel>
void SpalartAllmarasDES<BasicMomentumTransportModel>::cacheLESRegion
(
    const volScalarField::Internal& dTilda
) const
{
    if (this->mesh_.cacheTemporaryObject(modelName("LESRegion")))
    {
        volScalarField::Internal::New
        (
            modelName("LESRegion"),
            neg(dTilda - y_())
        );
    }
}
controlDict:
Code:
cacheTemporaryObjects
(
    SpalartAllmarasDES:LESRegion
);

functions
{
    #includeFunc writeObjects(SpalartAllmarasDES:LESRegion)
}
When I do this for my model, the following error appears:

controlDict:
Code:
cacheTemporaryObjects
(
    mySpalartAllmarasDES:LESRegion
);

functions
{
    #includeFunc writeObjects(mySpalartAllmarasDES:LESRegion)
}
Log:
Code:
--> FOAM Warning : Could not find temporary object mySpalartAllmarasDES:LESRegion in registry region0
Available temporary objects 
419
(...)
I did absolutely nothing different, so I can't understand the error.

Can someone help me?
gu1 is offline   Reply With Quote

Reply

Tags
openfoam9


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 04:21.