|
[Sponsors] |
December 7, 2011, 05:18 |
|
#21 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
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 |
|
December 14, 2011, 10:35 |
|
#22 |
Member
|
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 |
|
May 15, 2012, 17:22 |
|
#23 |
Member
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 59
Rep Power: 14 |
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 |
|
May 16, 2012, 03:46 |
|
#24 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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 |
|
May 16, 2012, 05:59 |
|
#25 |
Member
|
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 |
|
May 16, 2012, 06:06 |
|
#26 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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 09:36. |
|
October 19, 2012, 17:22 |
Supercritical water properties in FLUENT
|
#27 |
Member
Abhijeet Shrawage
Join Date: Feb 2012
Posts: 31
Rep Power: 14 |
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 |
|
October 20, 2012, 00:50 |
turbulent flow
|
#28 |
New Member
diego gomez
Join Date: Oct 2012
Posts: 1
Rep Power: 0 |
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 |
|
October 22, 2012, 04:33 |
|
#29 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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 |
|
October 22, 2012, 22:28 |
|
#30 |
Member
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 15 |
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? |
|
October 23, 2012, 04:47 |
|
#31 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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 |
|
October 23, 2012, 23:29 |
|
#32 |
Member
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 15 |
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 |
|
October 24, 2012, 03:53 |
|
#33 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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. |
|
October 27, 2012, 12:40 |
|
#34 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
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 13:15. |
|
October 29, 2012, 04:06 |
|
#35 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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 |
|
October 30, 2012, 19:49 |
|
#36 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
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 Markus |
|
October 31, 2012, 04:23 |
|
#37 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
Hi,
if you have the time, I would like to get a response regarding the code (problems, suggestions, ...) Regards, Christian |
|
November 26, 2012, 18:55 |
|
#38 |
New Member
magazoni
Join Date: Jul 2012
Posts: 11
Rep Power: 14 |
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 |
|
November 27, 2012, 04:10 |
|
#39 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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 |
|
December 3, 2012, 06:49 |
|
#40 |
New Member
magazoni
Join Date: Jul 2012
Posts: 11
Rep Power: 14 |
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 Felipe Magazoni |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
water properties in supercritical region | Naveen | CFX | 2 | April 14, 2009 15:45 |
standard water properties | Thilip Kumar | CFX | 1 | September 20, 2008 11:51 |
water vapour properties | manoj korde | FLUENT | 4 | June 2, 2006 02:47 |
shallow water VS deep water | Paul | Main CFD Forum | 10 | August 30, 2004 12:56 |
properties of water ? | mp | Main CFD Forum | 0 | March 5, 2003 05:41 |