CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Personal library compilation (http://www.cfd-online.com/Forums/openfoam-solving/59450-personal-library-compilation.html)

mss September 12, 2007 08:53

Hej, I have some problems add
 
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

otsuki September 13, 2007 06:10

Hi, Rita In basic/ directry
 
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


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