|
[Sponsors] |
June 12, 2008, 10:35 |
Hello
We want to use buoyan
|
#1 |
New Member
stijn vantieghem
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
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 |
|
June 12, 2008, 11:35 |
Hello Stijn,
If you change
|
#2 |
New Member
David Palko
Join Date: Mar 2009
Location: Stockholm
Posts: 17
Rep Power: 17 |
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 |
|
June 12, 2008, 11:41 |
one more thing,
I wouldn't ch
|
#3 |
New Member
David Palko
Join Date: Mar 2009
Location: Stockholm
Posts: 17
Rep Power: 17 |
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 |
|
September 12, 2008, 07:24 |
David,
I tried to create n
|
#4 |
Member
Maxim Loginov
Join Date: Mar 2009
Posts: 33
Rep Power: 17 |
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 |
|
|
|
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 |