|
[Sponsors] |
May 19, 2014, 12:31 |
Pyrolisis models compiling
|
#1 |
New Member
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13 |
Hello All!
I have a strange problem - I was trying to introduce new pyrolysis model but could not compile the program. I wrote the code basing on a existing model but could not execute "wmake" command. Afterwards I delete everything and wanted just to compile the models which is originally supplied with OF but the command "/opt/openfoam211/src/regionModels/pyrolysisModels/wmake" returns: "...... noPyrolysis.C.text+0x4ed): undefined reference to `Foam::solidChemistryModel::New(Foam::fvMesh const&)' Make/linux64GccDPOpt/noPyrolysis.o.data.rel.ro._ZTVN4Foam12regionMode ls15pyrolysisModels11noPyrolysisE[_ZTVN4Foam12regionModels15pyrolysisModels11noPyrol ysisE]+0x80): undefined reference to `Foam::regionModels::regionModel::evolve()' Make/linux64GccDPOpt/noPyrolysis.o.data.rel.ro._ZTVN4Foam12regionMode ls15pyrolysisModels11noPyrolysisE[_ZTVN4Foam12regionModels15pyrolysisModels11noPyrol ysisE]+0x88): undefined reference to `Foam::regionModels::regionModel::info() const' collect2: error: ld returned 1 exit status make: *** [OpenFOAM.out] Error 1 " Any idea what can be reason of this? I run "wmake" command as a root. |
|
May 20, 2014, 09:58 |
|
#2 |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
[QUOTE]
.... Afterwards I delete everything... [QUOTE] You may have accidentally deleted the original implementation files. Undefined reference to `Foam::solidChemistryModel::New(Foam::fvMesh const&)` means that the compiler is unable to find the implemenation of the New selector. Try this: Code:
git checkout /opt/openfoam211/src/regionModels/pyrolysisModels wclean /opt/openfoam211/src/regionModels/pyrolysisModels wmake libso /opt/openfoam211/src/regionModels/pyrolysisModels
__________________
When asking a question, prepare a SSCCE. |
|
May 20, 2014, 10:35 |
|
#3 |
New Member
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13 |
Hello Tomislav,
Thank you for your answer. By "I deleted everything" I meant "I restored everything to and come back to the original settings, I did not remove or modify any files that were initially installed with OF. That is why I am so confused. 1. /opt/openfoam211/src/regionModels/pyrolysisModels# git checkout fatal: You are on a branch yet to be born 2./opt/openfoam211/src/regionModels/pyrolysisModels# wclean 3."wmake libso" seems to do its job, It does not give any errors, ending with "'/opt/openfoam211/platforms/linux64GccDPOpt/lib/libpyrolysisModels.so' is up to date." However command wmake still return the error. Very confusing... |
|
May 20, 2014, 10:48 |
|
#4 |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
`wmake` is used in the older versions to compile applications and `wmake libso` to compile libraries.
Since the version '2.2.1', the build system has been modified so that you can compile libraries using `wmake` without the `libso` option. You can find it in the release notes for the 2.2.1 version under Compilation. You are using the 2.1.1 version, so you must compile your libs with 'wmake libso'.
__________________
When asking a question, prepare a SSCCE. |
|
May 21, 2014, 08:33 |
|
#5 |
New Member
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13 |
Thank you Tomislav, you are right - now I can compile everything.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Eddy Viscosity Models and Reynolds Stress Models | JuPa | CFX | 1 | August 20, 2013 18:56 |
Eddy viscosity hypothesis versus Reynolds stress models | JuPa | ANSYS | 0 | August 12, 2013 06:20 |
Incompressible Turbulence models | achinta | OpenFOAM | 4 | May 27, 2010 10:35 |
Two-fluid models vs mixture models for bubbly flows | Hansong Tang | Main CFD Forum | 6 | December 8, 2009 03:21 |
Compiling turbulence models | nico765 | OpenFOAM Running, Solving & CFD | 6 | January 31, 2007 13:30 |