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

Can libraries be opened?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 16, 2010, 15:38
Default Can libraries be opened?
  #1
Member
 
Usit McCarra
Join Date: Oct 2010
Posts: 51
Blog Entries: 2
Rep Power: 6
McCarra is on a distinguished road
Hello

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
McCarra is offline   Reply With Quote

Old   November 17, 2010, 02:53
Default
  #2
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 7
kathrin_kissling is on a distinguished road
Hi,

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
kathrin_kissling is offline   Reply With Quote

Old   November 17, 2010, 05:12
Default
  #3
Member
 
Usit McCarra
Join Date: Oct 2010
Posts: 51
Blog Entries: 2
Rep Power: 6
McCarra is on a distinguished road
I'm looking for "libfvmotionsolver.so" 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?
McCarra is offline   Reply With Quote

Old   November 17, 2010, 06:47
Default
  #4
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 7
kathrin_kissling is on a distinguished road
Hi,

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.

Best

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   November 17, 2010, 11:37
Default
  #5
Member
 
Usit McCarra
Join Date: Oct 2010
Posts: 51
Blog Entries: 2
Rep Power: 6
McCarra is on a distinguished road
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!
McCarra is offline   Reply With Quote

Old   November 17, 2010, 11:45
Default
  #6
Senior Member
 
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 7
kathrin_kissling is on a distinguished road
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.


Best

Kathrin
kathrin_kissling is offline   Reply With Quote

Old   November 17, 2010, 11:59
Default
  #7
Member
 
Usit McCarra
Join Date: Oct 2010
Posts: 51
Blog Entries: 2
Rep Power: 6
McCarra is on a distinguished road
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
McCarra is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't profile shared libraries rsamuel OpenFOAM Programming & Development 1 August 3, 2009 10:58
Installation/Tutorial - libraries not found (blockMesh) bernarde OpenFOAM 3 June 19, 2009 13:36
Fortran90 (creating executable by using libraries) Ravi Main CFD Forum 0 September 27, 2004 23:34
help on POOMA/PVM etc. libraries mayank Main CFD Forum 0 November 15, 2002 00:04
More advise on libraries to solve linear system Ricardo Bonon Main CFD Forum 0 May 18, 2000 19:37


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