CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Two phase Argon (https://www.cfd-online.com/Forums/cfx/174969-two-phase-argon.html)

dsantand July 21, 2016 11:25

Two phase Argon
 
2 Attachment(s)
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,

demm10 July 21, 2016 11:44

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.

dsantand July 22, 2016 04:46

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!

demm10 July 26, 2016 08:50

Quote:

Originally Posted by dsantand (Post 610849)
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 ;)

dsantand July 26, 2016 08:54

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!

demm10 July 27, 2016 10:40

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 ;)

dsantand July 27, 2016 11:15

Thank you a lot!

Dario

dsantand July 27, 2016 11:53

Error problem
 
1 Attachment(s)
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

demm10 July 28, 2016 11:02

Sorry, but I cannot see any error here. The bottom image is not the part of OUT file with error.

dsantand July 28, 2016 11:16

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. |
+--------------------------------------------------------------------+

demm10 August 1, 2016 11:24

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.

dsantand August 1, 2016 11:25

Thank you!

LUO DAN October 24, 2018 03:00

Quote:

Originally Posted by demm10 (Post 611625)
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!


All times are GMT -4. The time now is 11:06.