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

Equation of state

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2008, 10:35
Default Hello We want to use buoyan
  #1
New Member
 
stijn vantieghem
Join Date: Mar 2009
Posts: 3
Rep Power: 17
stvtiegh is on a distinguished road
Hello

We want to use buoyantFoam but with a non-ideal gas. We tried to change the relationship between rho, T and p in perfectGasI.H, but compilation in 'specie' failed with the following output

/usr/lib/crt1.o: In function '_start':
(.text+0x18): undefined reference to 'main'
collect2: ld returned 1 exit status

In fact, it's not completely clear to me what to compile after changing the equation of state. Can someone give some more information about this?

Thx and regards
Stijn
stvtiegh is offline   Reply With Quote

Old   June 12, 2008, 11:35
Default Hello Stijn, If you change
  #2
New Member
 
David Palko
Join Date: Mar 2009
Location: Stockholm
Posts: 17
Rep Power: 17
dpalko is on a distinguished road
Hello Stijn,

If you change only the equation of state, recompile src/thermophysicalModels/specie directory. Maybe you will need also to recompile src/thermophysicalModels/basic directory.

Error which you get comes probably, because you run "wmake" command. Then you of course should have main function. thermophysicalModels is a library, so you should use "wmake libso" command in order to compile library.

Good luck,

David
dpalko is offline   Reply With Quote

Old   June 12, 2008, 11:41
Default one more thing, I wouldn't ch
  #3
New Member
 
David Palko
Join Date: Mar 2009
Location: Stockholm
Posts: 17
Rep Power: 17
dpalko is on a distinguished road
one more thing,
I wouldn't change the perfectGas class. Instead i would make a new class (use perferctGas as a template). Then there are some more things to do, so if you decide to go this way, let me know, i did it before so i can try to help you.
Otherwise you can of course change the function rho() in perfectGas (which is the simpiest way), but then the beauty of OOP unfortunately dissapears.

Good luck,

David
dpalko is offline   Reply With Quote

Old   September 12, 2008, 07:24
Default David, I tried to create n
  #4
Member
 
Maxim Loginov
Join Date: Mar 2009
Posts: 33
Rep Power: 17
zeliboba is on a distinguished road
David,

I tried to create new EoS from perfectGas, but it seems solver does not use new, but perfectGas. could you please take a look at my package on
http://www.cfd-online.com/OpenFOAM_D...es/1/5316.html
or maybe you can post your working case?

thanks
Maxim
zeliboba 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
Equation of state Ali FLUENT 7 February 20, 2010 09:02
gas-state-equation? abel FLUENT 0 May 6, 2006 07:08
Equation of state Edward Main CFD Forum 0 September 18, 2005 18:17
Equation of State for Water Alexey Main CFD Forum 2 July 7, 2005 04:25
the state equation lsm Main CFD Forum 1 March 4, 2005 11:05


All times are GMT -4. The time now is 03:55.