CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Equation of state (http://www.cfd-online.com/Forums/openfoam-solving/58560-equation-state.html)

stvtiegh June 12, 2008 09:35

Hello We want to use buoyan
 
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

dpalko June 12, 2008 10:35

Hello Stijn, If you change
 
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 June 12, 2008 10:41

one more thing, I wouldn't ch
 
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

zeliboba September 12, 2008 06:24

David, I tried to create n
 
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


All times are GMT -4. The time now is 13:42.