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

IAPWSIF97 water properties

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

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   December 7, 2011, 04:18
Default
  #21
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Braunschweig, Niedersachsen, Germany
Posts: 274
Rep Power: 8
henrik is on a distinguished road
Hi JinBao,

Christan Lucas at the TU Braunschweig has done some work on real gas thermodynamics which might find helpful. It includes implementations of aungierRedlichKwong, pengRobinson, redlichKwong, soaveRedlichKwong EOS.

Please checkout the feature/fullyIntegratedRealGasThermo branch on extend.

... and, yes, your contribution is more than welcome.

Best Regards,

Henrik
henrik is offline   Reply With Quote

Old   December 14, 2011, 09:35
Default
  #22
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 6
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
Hi Henrik, Thank you for the helpful information. Christan Lucas's approach is very interesting. I will try to apply it in my calculation. Christan Lucas provided the tutorial for CO2. I am not sure the library will work for water. I will share my experience here after I try it.

I am also trying to get a successful calculation with my own property library. Thanks again.

Regards,
__________________
Jinbiao
JinBiao is offline   Reply With Quote

Old   May 15, 2012, 16:22
Default
  #23
Member
 
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 52
Rep Power: 4
yhaomin2007 is on a distinguished road
Hi, JinBiao:

I am doing something with OpenFOAM using some real gas model.

I want to know where do you fine the "Christan Lucas provided the tutorial for CO2."

thank you
yhaomin2007 is offline   Reply With Quote

Old   May 16, 2012, 02:46
Default
  #24
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

you can find my code in the OpenFOAM extend on sourceforge. See link:

http://openfoam-extend.git.sourcefor...-ext;a=summary

Have a look at feature/fullyIntegratedRealGasThermo.

Best Regards
Christian
Chris Lucas is offline   Reply With Quote

Old   May 16, 2012, 04:59
Default
  #25
Member
 
Jinbiao Xiong
Join Date: Oct 2009
Location: China/Japan
Posts: 50
Rep Power: 6
JinBiao is on a distinguished road
Send a message via MSN to JinBiao
Hi Haomin,

I hope you have already get what you need. Because I am playing with water, I had no further experience with Lucas's library. But the structure of Lucas's implementation looks very good. Much better than I can do.

Good luck and enjoy it.

Regards,

Jinbiao
__________________
Jinbiao
JinBiao is offline   Reply With Quote

Old   May 16, 2012, 05:06
Default
  #26
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi Jinbiao,

I forgot to ask you, is your IAPWS-IF97 implementation working? Did you implement it yourself or are you using external libraries like freeSteam.

Best Regards,
Christian

Last edited by Chris Lucas; May 16, 2012 at 08:36.
Chris Lucas is offline   Reply With Quote

Old   October 19, 2012, 16:22
Default Supercritical water properties in FLUENT
  #27
Member
 
Abhijeet Shrawage
Join Date: Feb 2012
Posts: 31
Rep Power: 4
ashrawage is on a distinguished road
Hello guys..
I am working on simulations which involves water at 24MPa and temperatures ranging from 350-700 C.

Like JinBiao, I have been using IAPWS equations (RefProp) to get data sets for K Cp, Rho and Viscosity.
With these data sets, I generated a plot in excel and fitted curves to get R squared values very close to 1.
Now i have implemented these curves as piecewise polynomials in Fluent material properties. But as of now i am consistently getting divergence in temperature or pressure correction errors the moment i initiate the calculations.

Do you have any recommendations regarding this? Or can you think of any better way to model Super critical water in Fluent?

Thanks a lot...
Abhijeet J S
ashrawage is offline   Reply With Quote

Old   October 19, 2012, 23:50
Default turbulent flow
  #28
New Member
 
diego gomez
Join Date: Oct 2012
Posts: 1
Rep Power: 0
diego gomez is on a distinguished road
hello, I'm just learning openFoam. could you tell me how can I simulate a turbulent flow? I know the icoFoam solver is only for laminar flow.
Thanks a lot,
Diego
diego gomez is offline   Reply With Quote

Old   October 22, 2012, 03:33
Default
  #29
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

for all who are interested in IAPWS Water properties in OpenFOAM, I included
IAPWS water properties in the openFOAM 1.6.ext version. I use freeSteam to calculate the properties.

http://openfoam-extend.git.sourceforge.net/git/gitweb.cgi?p=openfoam-extend/OpenFOAM-1.6-ext;a=summary

see branch: feature/fullyIntegratedRealGasThermo

Kind Regards,
Christian

Chris Lucas is offline   Reply With Quote

Old   October 22, 2012, 21:28
Default
  #30
Member
 
Adam
Join Date: Jun 2011
Posts: 30
Rep Power: 5
Smed is on a distinguished road
Christian,

Would you mind explaining how to download and install your IAPWS implementation? Can it also be used in version 2.1.1 or only in 1.6?
Smed is offline   Reply With Quote

Old   October 23, 2012, 03:47
Default
  #31
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

the code is developed for OpenFOAM 1.6-ext (extend), so I am not sure if the code works in OpenFOAM 2.1.

The code is provided as a git branch, download OpenFOAM 1.6-ext
(see http://www.extend-project.de/). Change branch and connect your new branch to branch feature/fullyIntegratedRealGasThermo of the external repository (if needed, google for checkout of remote branch)

You can find the main source file in “src/thermophsicalModels/externalMedia”. You need to compile the code yourself (wmake libso), the code is not includes in the Allwmake file in src/thermophsicalModels/

Have a look at the tutorial ReadME file. The tutorial can be found at tutorials/compressible/rhoPisoFoam/ras/IAPWS97_Pipe. The file should explain what you need to do (mainly install freeSteam and provide the dynamic library to openFOAM)

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   October 23, 2012, 22:29
Default
  #32
Member
 
Adam
Join Date: Jun 2011
Posts: 30
Rep Power: 5
Smed is on a distinguished road
Christian,

I am not very familiar with git, so I would appreciate your help. I have downloaded OpenFOAM-1.6 ext using
Code:
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/openfoam-extend

If I look for “src/thermophsicalModels/externalMedia” at this point,
the externalMedia directory doesn't seem to exist. I'm guessing this is because I need to do something with the branches. I have tried
Code:
git checkout -b origin/feature/realGasThermo
But after executing this command, I still don't see an externalMedia directory. Can you please explain what I need to do next? Thanks.
Smed is offline   Reply With Quote

Old   October 24, 2012, 02:53
Default
  #33
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

try

git checkout -b feature/fullyIntegratetedRealGasThermo origin/feature/fullyIntegradetedRealGasThermo

maybe you need to use
git pull
afterwards

Regards,
Christian

Last edited by Chris Lucas; October 29, 2012 at 04:08.
Chris Lucas is offline   Reply With Quote

Old   October 27, 2012, 11:40
Default
  #34
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 171
Rep Power: 7
markusrehm is on a distinguished road
Hi Chris,

can you please explain step by step how to get the branch?

Is the right one

feature/fullyIntegradetedRealGasThermo

or

origin/feature/fullyIntegradetedRealGasThermo?

I got the following messages:

>git checkout -b feature/fullyIntegradetedRealGasThermo origin/feature/fullyIntegradetedRealGasThermo

fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/feature/fullyIntegradetedRealGasThermo' which can not be resolved as commit?


>git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.origin/feature/realGasThermo.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:
[branch "origin/feature/realGasThermo"]
remote = <nickname>
merge = <remote-ref>

[remote "<nickname>"]
url = <url>
fetch = <refspec>

See git-config(1) for details.


Thanks a lot. Markus

Last edited by markusrehm; October 27, 2012 at 12:15.
markusrehm is online now   Reply With Quote

Old   October 29, 2012, 04:06
Default
  #35
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

Follow this explanation (this is what I did)

http://gugod.org/2008/12/git-checkout-remote-branch/

Have a look at

http://openfoam-extend.git.sourceforge.net/git/gitweb.cgi?p=openfoam-extend/OpenFOAM-1.6-ext;a=summary

you can find the name of the branch, the changes in the branch ... there. The name is:


feature/fullyIntegratedRealGasThermo

Kind Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   October 30, 2012, 19:49
Default
  #36
Senior Member
 
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 171
Rep Power: 7
markusrehm is on a distinguished road
Hi Chris,

you are right. So that is what I did (again):

Code:
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM-1.6-ext
cd OpenFOAM-1.6-ext
git checkout -b feature/fullyIntegratedRealGasThermo origin/feature/fullyIntegratedRealGasThermo
Ok thanks for your patience.

Markus
markusrehm is online now   Reply With Quote

Old   October 31, 2012, 04:23
Default
  #37
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

if you have the time, I would like to get a response regarding the code (problems, suggestions, ...)

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   November 26, 2012, 17:55
Default
  #38
New Member
 
magazoni
Join Date: Jul 2012
Posts: 11
Rep Power: 4
magazoni is on a distinguished road
Hi everyone,

I'm trying to install freesteam and I had some problems with it. Does anybody have a tutorial in how to install the freesteam package?

Chris Lucas,
Is it possible to simulate superheated steam and supercooled steam using your code?

Best regards,
Felipe Magazoni
magazoni is offline   Reply With Quote

Old   November 27, 2012, 03:10
Default
  #39
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 197
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

have a look at the freesteam page, you can find the limits, in which the code works, there. The code works with superheated and subcooled steam.

Have you looked at the README file in the tutorial case I provided for freesteam (in OpenFOAM/tutorials/compressible/rhoPisoFOAM/RAS/IAPWS97_pipe)?

Have you installed all the required components for freesteam as stated in the README file in freesteam?

Could you post the error?

Kind Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   December 3, 2012, 05:49
Default
  #40
New Member
 
magazoni
Join Date: Jul 2012
Posts: 11
Rep Power: 4
magazoni is on a distinguished road
Hi Chris Lucas, thanks for help me.

Now, the freesteam package is correctly installed, but I installed it in the folder '/opt/freesteam'. The libfreesteam.so is not in a folder where OpenFOAM finds ($WM_PROJECT_DIR/lib/linux64GccDPOpt). Must I install the freesteam package in another folder?

After I tried to compile the IAPWS package and there are some errors,

Code:
cluster@node0:~/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/externalMedia/IAPWS_Waterproperties$ wmake libso
/home/cluster/OpenFOAM/OpenFOAM-1.6-ext/wmake/MakefileOptions:37: /home/cluster/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc46/general: No such file or directory
make: *** No rule to make target `/home/cluster/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc46/general'.  Stop.
/home/cluster/OpenFOAM/OpenFOAM-1.6-ext/wmake/MakefileFiles:39: /home/cluster/OpenFOAM/OpenFOAM-1.6-ext/wmake/rules/linux64Gcc46/general: No such file or directory
/home/cluster/OpenFOAM/OpenFOAM-1.6-ext/wmake/MakefileFiles:40: linux64Gcc46DPOpt/options: No such file or directory
make: *** No rule to make target `linux64Gcc46DPOpt/options'.  Stop.
wmake error: file 'Make/linux64Gcc46DPOpt/objectFiles' could not be created
Best regards,
Felipe Magazoni
magazoni 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
water properties in supercritical region Naveen CFX 2 April 14, 2009 14:45
standard water properties Thilip Kumar CFX 1 September 20, 2008 10:51
water vapour properties manoj korde FLUENT 4 June 2, 2006 01:47
shallow water VS deep water Paul Main CFD Forum 10 August 30, 2004 11:56
properties of water ? mp Main CFD Forum 0 March 5, 2003 04:41


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