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

Pyrolisis models compiling

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tomislav_maric

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2014, 12:31
Default Pyrolisis models compiling
  #1
New Member
 
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13
yaqb is on a distinguished road
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.
yaqb is offline   Reply With Quote

Old   May 20, 2014, 09:58
Default
  #2
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21
tomislav_maric is on a distinguished road
[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
What happened?
__________________
When asking a question, prepare a SSCCE.
tomislav_maric is offline   Reply With Quote

Old   May 20, 2014, 10:35
Default
  #3
New Member
 
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13
yaqb is on a distinguished road
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...
yaqb is offline   Reply With Quote

Old   May 20, 2014, 10:48
Default
  #4
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21
tomislav_maric is on a distinguished road
`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'.
yaqb likes this.
__________________
When asking a question, prepare a SSCCE.
tomislav_maric is offline   Reply With Quote

Old   May 21, 2014, 08:33
Default
  #5
New Member
 
Jacopo
Join Date: Mar 2013
Location: Italy
Posts: 18
Rep Power: 13
yaqb is on a distinguished road
Thank you Tomislav, you are right - now I can compile everything.
yaqb 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
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


All times are GMT -4. The time now is 10:22.