CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Can libraries be opened? (

McCarra November 16, 2010 15:38

Can libraries be opened?

I tried to open a library file and my computer returned an error: not able to detect character encoding. Does it mean that libraries can't be opened? I wanted to read one while trying to understand the whole code of a tutorial.

All the best

kathrin_kissling November 17, 2010 02:53


can you tell me the path of the library: Do you try to open a file with some *.so ending?
If you tell me which library you are interested, maybe I can tell you how to find it.

Best Kathrin

McCarra November 17, 2010 05:12

I'm looking for "" which is in /opt/
openfoam171/lib/linux64GccDPOpt/. Perhaps it ios a binary file and that's why I couldn't see it.

Are all ".so" files binary?

kathrin_kissling November 17, 2010 06:47


yes they are.

If you want to access the sourcecode you have to find the correspondig file in OpenFOAM-1.7.?/src

In your case you will find the corresponding source code in fvMotionSolver/fvMotionSolvers/fvMotionSolver/. There are three files which define the class.



McCarra November 17, 2010 11:37

What do you mean by the corresponding file? Is the one in src the same as the one in lib? What is the relationship between them?

Many thanks Kathrin!

kathrin_kissling November 17, 2010 11:45

The "corresponding file" is the source code from which th *.so file was build.
so is short for shared object.

You might want to check out some literature on compiling. Usually there are some chapters on it in the programming languages books.



McCarra November 17, 2010 11:59

Yes, that would be the answer. I'm trying to find an information source to better understand OpenFoam code.

Thanks for your help!

all the best

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