CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   decomposePar 4-core warning/error? (https://www.cfd-online.com/Forums/openfoam-bugs/120728-decomposepar-4-core-warning-error.html)

wyldckat April 5, 2014 18:43

Hi Emeline,

According to the output and from your description, the problem does not seem to be related to swak4Foam. It seems to me that you're using a custom solver which might be the one responsible for this problem in particular.

My guess is that if you run this command:
Code:

ldd $(which MyinterFoam)
it will give you a list of libraries it links to and among them are some of your own custom libraries, which very likely were copied from the original turbulence models. Since you're using the installation at "/opt", you can run this command to see a short list, among which are your custom libraries:
Code:

ldd $(which MyinterFoam) | grep -v "opt"
I'm guessing that you have a library named "libMyincompressibleLESModels.so", which is nearly identical to the official "libincompressibleLESModels.so", which is why you're getting the error messages you're getting!

At least, this is my guess, without more information.

Best regards,
Bruno

zarox April 7, 2014 05:43

But without some swak4foam librairies
 
Hi Bruno,

Thanks to your answer! Very interresting, now I know a new command ldd very useful to show all librairies link. But to come back to the probleme, Yes I have libMyincompressibleLESModels.so, just a change in the genEddy, if memories serve, in order to add a sponge layer at the outlet (i.e. increase viscosity). So the librairy is very similar than the original. So Your answer seems to sound good, but the strange thing is, in the controlDict file I have some librairies add libsimpleSwakFunctionObjects.so and libswakFunctionObjects.so in order to do some cutting plane and free surface evolution partial solution. That librairy did'nt work first I add your patch, know it work but a Duplicate status is given. If I don't add these librairy not error is print at the beginning of the execution relating to the duplicate process... So, It seems to me to be related to the swak4foam, but also Your explaination seems good but don't take account for the result without the swak librairy. So, I don't know, How can I remove the duplicate status, Is it a true issue?

Nice to have some exchange with you..


Greeting!


Emeline

wyldckat April 7, 2014 15:56

Hi Emeline,

If you run this command:
Code:

ldd $FOAM_USER_LIBBIN/libswakFunctionObjects.so | grep incompressibleLESModels.so
you'll see that it indicates that the library "libswakFunctionObjects.so" depends on "libincompressibleLESModels.so".

There are a few possible solutions you can use:
  1. You can edit all ".H" files in your customized turbulence libraries and renamed the entries like this one:
    Code:

    TypeName("laplace");
    to something like this:
    Code:

    TypeName("laplaceMine");
  2. Or you can have only the classes you strictly need in your own library.
  3. Or you can embed the classes you need into your solver!
Best regards,
Bruno

zarox April 8, 2014 08:57

Great!
 
Hi Bruno,

You give me the ldd command and I was not able to re-use to have more informations! What kind of poor little cdf girl, I done! I promise, I would do better next time!

Thank for solutions, I try to do the second one, but i don't find the proper way in my mind, because, the class I changed is LESModel and It's use by all LESModel, so i don't puzzle out how to extract only this class, I think I have to change all the Model LESclass like Smagorinsky and other... I should say, I am new in the openFOAM world, and particulary in the C++ world.

So I done the first way, and it's wonderful, no more duplicate status, swak4foam work well!

Thank you very must guy!

:)
See you next time on CFD-online!


All times are GMT -4. The time now is 02:43.