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

Canopy model implemented but Warning: ZN4Foam14incompressible8RASModel11printCoeffsEv

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By be_inspired

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2013, 10:42
Exclamation Canopy model implemented but Warning: ZN4Foam14incompressible8RASModel11printCoeffsEv
  #1
Senior Member
 
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 155
Rep Power: 17
be_inspired is on a distinguished road
Hi all,

I have just implemented a generic canopy model over OF2.1.1 based on kEpsilon turbulence model ( 4 parameters controls the type of canopy model) based on the work of Mochida and others. The solver simpleFoam has been also modified to take into account the modification over U equation.

Until now the solver runs correctly and the results looks fine when comparing with the benchmarking of Mochida. It can runs on serial or parallel but when I run "blockMesh" or "reconstructPar" or whatever utility different to the solver I always receive the following warning:

--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1175
dlopen error : /home/mmontero/OpenFOAM/mmontero-2.1.1/platforms/linux64Gcc45DPOpt/lib/libmyIncompressibleRASModel.so: undefined symbol: _ZN4Foam14incompressible8RASModel11printCoeffsEv
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 96
could not load "libmyIncompressibleRASModel.so"

I think that the problem is located and it is because there are 4 new parameters and 2 new volScalarFields (canopyDensity and canopyLeaf) but RASModel.C/H does not recognize them.

.H
Code:
            const volScalarField canopyDensity_;
            const volScalarField canopyLeaf_;
.C
Code:
    canopyDensity_
    (
        IOobject
        (
            "canopyDensity",
            runTime_.timeName(),
            mesh_,
            IOobject::READ_IF_PRESENT,
            IOobject::AUTO_WRITE
        ),
        mesh_
    ),

    canopyLeaf_
    (
        IOobject
        (
            "canopyLeaf",
            runTime_.timeName(),
            mesh_,
            IOobject::READ_IF_PRESENT,
            IOobject::AUTO_WRITE
        ),
        mesh_
      )
I hope someone could help me to clean this warning. The solver and the new turbulent model runs, converges and the results looks valid but...

Thank you very much
Marcelino

Last edited by be_inspired; May 23, 2013 at 12:06. Reason: Include more data
be_inspired is offline   Reply With Quote

Old   May 23, 2013, 11:49
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 23
Lieven will become famous soon enough
Hi Marcelino,

Do you load the library in the controlDict-file of the case?

Cheers,

L
Lieven is offline   Reply With Quote

Old   May 23, 2013, 11:58
Default
  #3
Senior Member
 
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 155
Rep Power: 17
be_inspired is on a distinguished road
Yes, it is included.
The point is that the new turbulent model and the new solver are working correctly. I have compared the results with experimental data and looks "valid" ( it is quite difficult to know how is the density leaf of pines).
The warning only happens when using reconstructPart, paraFoam, blockMesh.... but no error or warning when performing the simulation.

I have looked for the same error in the forum and there is an old post about it but it seems that never was solved.
miladrakhsha likes this.
be_inspired 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
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 11:20
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Add icoLagrangianFoam to FoamX dyxu OpenFOAM Running, Solving & CFD 10 June 11, 2008 10:53


All times are GMT -4. The time now is 23:10.