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

adding energy equation to interFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By kebsiali

Reply
 
LinkBack Thread Tools Display Modes
Old   November 26, 2015, 02:29
Default adding energy equation to interFoam
  #1
New Member
 
Elham
Join Date: Oct 2009
Posts: 25
Rep Power: 8
Elham is on a distinguished road
Hi,

I am trying to add energy equation to interFoam. So I made a new library called myincompressibleTwoPhaseMixture and a solver called interTempFoam as suggested by http://www.wolfdynamics.com/images/c...erTempFoam.pdf.
I could successfully compile the library in openFoam 2.3.0 but I cannot compile the solver. I got the following error:

/usr/bin/ld: cannot find -lmyincompressibleTwoPhaseMixture
collect2: error: ld returned 1 exit status
make: *** [/home/elham/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/interTempFoam] Error 1

I have attached my library and solver. I will be really appreciate if anyone can give me clue.
Attached Files
File Type: gz library.tar.gz (6.3 KB, 1 views)
File Type: gz interTempFoam.tar.gz (10.5 KB, 2 views)
Elham is offline   Reply With Quote

Old   November 28, 2015, 10:15
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer:
  1. The library package in "Make/files" has defined the name "libmyincompressibleTransportModels".
  2. The solver is looking for the name "libmyincompressibleTwoPhaseMixture".
  3. Can't see the difference? Try seeing it like this:
    Code:
    libmyincompressibleTransportModels
    libmyincompressibleTwoPhaseMixture
Elham likes this.
wyldckat is offline   Reply With Quote

Old   November 28, 2015, 12:23
Default
  #3
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 77
Rep Power: 6
kebsiali is on a distinguished road
variable rho in interFoam

you can check the 6th and 7th discussion in this link where i explained what to add to the make file of your solver and modified library
Elham likes this.

Last edited by kebsiali; November 28, 2015 at 13:24. Reason: adding info
kebsiali is offline   Reply With Quote

Old   December 7, 2015, 09:30
Default
  #4
Pay
New Member
 
Perry Uhlig
Join Date: Oct 2015
Location: Germany
Posts: 8
Rep Power: 2
Pay is on a distinguished road
Hello,

you can have a look at my thread. I got interTempFoam compiled using OF 2.4.0.

Unfortunately the new solver creates temperature fields that contain obvious mistakes.

Adding the Energy Equation to interFoam (OF 2.4.0)
Pay is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Energy Equation for porousSimpleFoam yesaswi92 OpenFOAM Programming & Development 4 July 29, 2015 06:04
Definition of energy equation using UDF aestas Fluent UDF and Scheme Programming 15 April 28, 2015 03:33
Source Term due to evaporation in energy transport equation styleworker OpenFOAM Programming & Development 2 September 3, 2014 21:24
Questions about the energy equation aestas Fluent UDF and Scheme Programming 5 April 6, 2014 11:28
SIMPLE and energy equation convergence Fabio Main CFD Forum 0 June 1, 2007 06:06


All times are GMT -4. The time now is 09:17.