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

Personal library compilation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2007, 08:53
Default Hej, I have some problems add
  #1
mss
Guest
 
Posts: n/a
Hej,
I have some problems add my own library, during compilation the code produced a lot of errors. I think I'm missing something with files/options but, unfortunately, I could not find where the error .
I have copied the standard openFoam library to my path :
OpenFOAM/alex-1.4/src/thermophysicalModels/basic/basicThermo

then I made some changes in Make/files:

-------------------------------------------------
basicThermo = basicThermo

$(basicThermo)/basicThermo.C
$(basicThermo)/newBasicThermo.C
$(basicThermo)/basicThermos.C

LIB = $(FOAM_USER_LIBBIN)/libbasicThermophysicalModelsTIG
----------------------------------------------------------

after that some changes in Make/options:
------------------------------------------------------------
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(FOAM_USER_LIBBIN)/thermophysicalModels/specie/lnInclude

LIB_LIBS = \
-lfiniteVolume

---------------------------------------------------------------

I have removed the linux64Gcc4DPOpt, files with *.dep

I used this command to compile the library: wmake libso

But unfortunately, during the compilation, the code produced a lot of errors like:

basicThermo/basicThermo.C:90: error: 'mixedEnthalpyFvPatchScalarField'
cannot appear in a constant-expression
basicThermo/basicThermo.C:90: error: no matching function for call to
'refCast(Foam::fvPatchField<double>&)'

Do you have any hints where I might done something wrong?


Thank you in advance.
Rita
  Reply With Quote

Old   September 13, 2007, 06:10
Default Hi, Rita In basic/ directry
  #2
New Member
 
Masato Otsuki
Join Date: Mar 2009
Location: Tokyo, Japan
Posts: 26
Rep Power: 17
otsuki is on a distinguished road
Hi, Rita

In basic/ directry,
basicThermo/basicThermo.C refferes
derivedFvPatchFields/mixedEnthalpyFvPatchScalarField.H.
You can confirm the dependency by investigating
basicThermo/basicThermo.dep after "wmake libso"
in basic/ directry.

The easiest way is to copy whole basic/ directry
to your user space.

Masato
otsuki 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
Problems in personal library compilation shrina OpenFOAM 3 February 23, 2009 11:12
Advertising and Personal Promotion in the CFD-Wiki Jonas Larsson CFD-Wiki 0 November 20, 2005 19:20
Library JB Phoenics 0 June 20, 2004 15:12
Integration with personal code! Deepak FLUENT 2 August 12, 2002 10:53
personal support Dolker Siemens 1 July 30, 2001 13:18


All times are GMT -4. The time now is 03:53.