CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Two phase Argon

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2016, 12:25
Question Two phase Argon
  #1
New Member
 
Dario
Join Date: Jul 2016
Posts: 7
Rep Power: 9
dsantand is on a distinguished road
Dear All, I’ve a bunch of question for you.
I’m working on the creation of a model in CFX. This model, involve the use of Argon in saturation condition.
The argon, in liquid and vapor phase is confined in a cube 8x8x8 m3. This cube has an inlet and and outlet.
I know the mass flow rate and I also know the Temperate at the inlet.
The difficult and the issue is in the use of a Argon material.
In the CFX-database, I found Arl, Arv, Arlv (binary mixture). The point is: I don’t understand if they are good or not for my case.
I actually want to make my own .rgp table for saturation condition, since I know the argon is at Tsat = 87.178 K and psat = 1.0 bar.
I've found a RGP file generator with FORTRAN, but still I'm figuring out how to make it...
The table for Argon are available in NIST database, in case I should make a rgp file.

May I ask you to guide me in the best choice for the material, in the build up of the table eventually and in the understanding of the value interpolated by the solver during running?
Ping Robinson or Redlich Kwong?

I include as attached file my session file and the File Output, which always give me this error:
"Error in subroutine FNDVAR :
Error finding variable TSAT_FL2
GETVAR originally called by subroutine cal_MASS

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine GV_ERROR "


Thank you a lot,
Attached Files
File Type: docx CFX_010_out.docx (21.4 KB, 12 views)
File Type: docx Argon material liquid and vapour.docx (12.3 KB, 20 views)
dsantand is offline   Reply With Quote

Old   July 21, 2016, 12:44
Default
  #2
New Member
 
Dmytro
Join Date: Dec 2011
Location: Kharkiv, Ukraine
Posts: 8
Rep Power: 14
demm10 is on a distinguished road
As for me the best choice is to make RGP file - it would be the closest solution to the experimental one.

But be sure that you add some margin to boundary conditions in this file.
demm10 is offline   Reply With Quote

Old   July 22, 2016, 05:46
Default
  #3
New Member
 
Dario
Join Date: Jul 2016
Posts: 7
Rep Power: 9
dsantand is on a distinguished road
Thank you Demm,
as I mentioned, I've trouble in making a RGP file.
I've found a Fortran code, as attached file, but I've still not figured out how to make it work and compile a rgp table...

https://github.com/Everhusk/RGP-Gen

May you have any guide for me?

Thank you!
dsantand is offline   Reply With Quote

Old   July 26, 2016, 09:50
Default
  #4
New Member
 
Dmytro
Join Date: Dec 2011
Location: Kharkiv, Ukraine
Posts: 8
Rep Power: 14
demm10 is on a distinguished road
Quote:
Originally Posted by dsantand View Post
Thank you Demm,
as I mentioned, I've trouble in making a RGP file.
I've found a Fortran code, as attached file, but I've still not figured out how to make it work and compile a rgp table...

https://github.com/Everhusk/RGP-Gen

May you have any guide for me?

Thank you!

dsantand
,

this RGP generator works only for CO2.

Moreover, you need NIST REFPROP fluid files for it for generating RGP.
Do you have NIST? If so, I can give you modified generator which works with any fluids from NIST.

Or just give me Tmin, Tmax, Pmin, Pmax for your project and I will make RGP file for you
demm10 is offline   Reply With Quote

Old   July 26, 2016, 09:54
Default
  #5
New Member
 
Dario
Join Date: Jul 2016
Posts: 7
Rep Power: 9
dsantand is on a distinguished road
Ehy Demm,
for sure I have NIST with RefPROP. I have as well all the fluids in FLD format.

It would be great to have this generator, THANK YOU!

Last edited by dsantand; July 26, 2016 at 12:20.
dsantand is offline   Reply With Quote

Old   July 27, 2016, 11:40
Default
  #6
New Member
 
Dmytro
Join Date: Dec 2011
Location: Kharkiv, Ukraine
Posts: 8
Rep Power: 14
demm10 is on a distinguished road
Here is link for downloading:
https://www.dropbox.com/s/of2iamv2hw...rator.rar?dl=0

When you unpack it you will see such structure:
fluids - folder - put all your FLD files here
Source_Code - folder - a source code of the program (Fortran)
generator.exe - executable file - compiled program
README.txt - text file - old help file

Put all your FLD files to "fluids" folder and simply start "generator.exe". It is simple console application where you should specify your fluid and the boundary conditions for it.

If have questions, please ask
demm10 is offline   Reply With Quote

Old   July 27, 2016, 12:15
Default
  #7
New Member
 
Dario
Join Date: Jul 2016
Posts: 7
Rep Power: 9
dsantand is on a distinguished road
Thank you a lot!

Dario
dsantand is offline   Reply With Quote

Old   July 27, 2016, 12:53
Default Error problem
  #8
New Member
 
Dario
Join Date: Jul 2016
Posts: 7
Rep Power: 9
dsantand is on a distinguished road
Hey Demm,
once again, I've problem in the reading the file.
Here is a snapshot of my current simulation
1. LEFT screen is the CFX model during determining the material, called as in the rgp file generated by me argon.fl. I've chosen LIQUID as thermodynamic state
2. Right TOP is the RGP file argonDario.rgp with the fluid name argon.fl
3. Right BOTTOM is the ERROR given by CFX-solver.

I would appreciate a lot your help!

Thank you

Dario
Attached Images
File Type: jpg Capture for CFD.jpg (101.1 KB, 44 views)
dsantand is offline   Reply With Quote

Old   July 28, 2016, 12:02
Default
  #9
New Member
 
Dmytro
Join Date: Dec 2011
Location: Kharkiv, Ukraine
Posts: 8
Rep Power: 14
demm10 is on a distinguished road
Sorry, but I cannot see any error here. The bottom image is not the part of OUT file with error.
demm10 is offline   Reply With Quote

Old   July 28, 2016, 12:16
Default
  #10
New Member
 
Dario
Join Date: Jul 2016
Posts: 7
Rep Power: 9
dsantand is on a distinguished road
ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Could not open TASCflow RGP file. |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Encountered problem reading the RGP file header. |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine SU_PROPS_RGP |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| An error has occurred in cfx5solve: |
| |
| The ANSYS CFX partitioner exited with return code 1. |
+--------------------------------------------------------------------+
dsantand is offline   Reply With Quote

Old   August 1, 2016, 12:24
Default
  #11
New Member
 
Dmytro
Join Date: Dec 2011
Location: Kharkiv, Ukraine
Posts: 8
Rep Power: 14
demm10 is on a distinguished road
The most common error with RGP file is that CFX just didn't see it.
Are you sure that your RGP file (on the computer where you simulate) is in the directory you specified in Pre?

Usually I put this file in the default directory: C:\Program Files\ANSYS Inc\v160\CFX\etc\materials-extra\realgas

!! But in any case, be sure that RGP file is on the computer where you simulate and can be found by the link specified in Pre.
demm10 is offline   Reply With Quote

Old   August 1, 2016, 12:25
Default
  #12
New Member
 
Dario
Join Date: Jul 2016
Posts: 7
Rep Power: 9
dsantand is on a distinguished road
Thank you!
dsantand is offline   Reply With Quote

Old   October 24, 2018, 04:00
Default
  #13
New Member
 
luo dan
Join Date: Sep 2018
Posts: 27
Rep Power: 7
LUO DAN is on a distinguished road
Quote:
Originally Posted by demm10 View Post
Here is link for downloading:
https://www.dropbox.com/s/of2iamv2hw...rator.rar?dl=0

When you unpack it you will see such structure:
fluids - folder - put all your FLD files here
Source_Code - folder - a source code of the program (Fortran)
generator.exe - executable file - compiled program
README.txt - text file - old help file

Put all your FLD files to "fluids" folder and simply start "generator.exe". It is simple console application where you should specify your fluid and the boundary conditions for it.

If have questions, please ask
Thank you for your link!But the RGP I made by the generator only contains superheated state and saturated line. The generator cannot make liquid-state RGP for co2. I need your help!

Last edited by LUO DAN; October 24, 2018 at 08:57.
LUO DAN is offline   Reply With Quote

Reply

Tags
cfx, rgp file, two phase evaporation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 15 May 1, 2016 17:12
[swak4Foam] mass conservation of solid phase violated when using groovyBC with twoPhaseEulerFoam xpqiu OpenFOAM Community Contributions 8 June 17, 2015 03:08
iteration questions in discrete phase iknowjesus FLUENT 4 March 13, 2015 07:07
Three Phase flow into a reservoir... akjha Main CFD Forum 0 December 15, 2014 08:01
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32


All times are GMT -4. The time now is 17:00.