|
[Sponsors] |
September 12, 2007, 09:53 |
Hej,
I have some problems add
|
#1 |
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 |
|
September 13, 2007, 07:10 |
Hi, Rita
In basic/ directry
|
#2 |
New Member
Masato Otsuki
Join Date: Mar 2009
Location: Tokyo, Japan
Posts: 26
Rep Power: 17 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems in personal library compilation | shrina | OpenFOAM | 3 | February 23, 2009 12:12 |
Advertising and Personal Promotion in the CFD-Wiki | Jonas Larsson | CFD-Wiki | 0 | November 20, 2005 20:20 |
Library | JB | Phoenics | 0 | June 20, 2004 16:12 |
Integration with personal code! | Deepak | FLUENT | 2 | August 12, 2002 11:53 |
personal support | Dolker | Siemens | 1 | July 30, 2001 14:18 |