|
[Sponsors] |
January 5, 2016, 05:43 |
|
#21 | |
New Member
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12 |
First and foremost, I have pushed some changes to the repository lately. The most important one is that I no longer use the built-in method to evaluate the temperature T from enthalpy h. Instead, I do a reverse interpolation of the enthalpy table to obtain the correct temperature. This fixes the problem of non-converging temperature, which can occur at near-critical conditions because of the sharp temperature gradients. However, the resulting thermophysical library no longer contains the standard thermos.
Quote:
Yes, I tested it with this solver and later modified the solver for my own use. |
||
January 7, 2016, 06:16 |
|
#22 |
Senior Member
Join Date: Oct 2013
Posts: 397
Rep Power: 19 |
We also need to keep in mind that some solvers might not be developed to support a pressure dependence of the fluid properties. So in general it is necessary to look into the algorithm of a solver to see if all terms are considered and if the properties are updated when the pressure changes. It's possible that some solvers don't update their properties by calling thermo.correct() in the pressure corrector loop or elsewhere. If pressure dependent properties are accessed in this case they will be from a previous iteration or time step and this might lead to numerical errors.
|
|
December 15, 2020, 08:04 |
|
#23 |
New Member
Cuber Jeo
Join Date: Nov 2020
Posts: 5
Rep Power: 6 |
Hi Luka,
I want to know what version of Ubantu and OpenFOAM you used? I can't run the "smartGenerator.py“ and "thermoClass.py" in Ubantu 20.04 wih OpenFOAMv2006 and OpenFOAM8. I will appreciate if you can help me! |
|
December 15, 2020, 14:34 |
|
#24 |
New Member
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12 |
I'm not sure, it is a long time ago. Probably OpenFOAM 3 and Ubuntu 14.4.
|
|
December 21, 2020, 09:42 |
|
#25 |
New Member
Cuber Jeo
Join Date: Nov 2020
Posts: 5
Rep Power: 6 |
Thank you very much for you reply! I’ll try it!
|
|
December 25, 2020, 04:38 |
|
#26 | |
New Member
Cuber Jeo
Join Date: Nov 2020
Posts: 5
Rep Power: 6 |
Quote:
You have ever said a python script can generate a table structure if we have an input csv file like this: 0 x1 x2 ... y1 z11 z21 ... y2 z21 z22 ... ... The table structure goes like this: ( (x1 (y11 z11)(y12 z12)...) (x2 (y21 z21)(y22 z22)...) ... ) Could you provide a python script example to me? I have a problem to generate the files myself. I'll appreciate if you can help me! |
||
December 25, 2020, 05:11 |
|
#27 | |
New Member
Cuber Jeo
Join Date: Nov 2020
Posts: 5
Rep Power: 6 |
Quote:
I have problems to generated the table structure files by using your Python script "thermoClass.py" and "smartGenerator.py". When I input "python thermoClass.py", the error information is as follow: Traceback (most recent call last): File "thermoClass.py", line 10, in <module> from scipy.interpolate import interp1d ImportError: No module named scipy.interpolate Besides, I input "python smartGenerator.py", the error information is: Traceback (most recent call last): File "smartGenerator.py", line 16, in <module> from thermoClass import thermo File "/home/jeo-1/OpenFOAM/tabulatedProperties-master/tableGenerator/thermoClass.py", line 10, in <module> from scipy.interpolate import interp1d ImportError: No module named scipy.interpolate The system is Ubuntu 14.04 and the python is "Python 2.7.6 (default, Nov 13 2018, 12:45:42) [GCC 4.8.4] on linux2". I don't know how to deal with these problems. Please let me know if you know where I'm wrong! Thanks |
||
August 3, 2021, 07:27 |
|
#28 | |
New Member
Joao Coelho
Join Date: Jun 2021
Posts: 23
Rep Power: 5 |
Quote:
I am having some troubles installing this in general. Anyone has some kind of simple instructions to do after downloading the code from Denis git-repo? |
||
Tags |
equation of state, supercritical, tabulated, thermo |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to incorporate the temperature of fluid in pressure based cavitation model | arindamsantra7 | Main CFD Forum | 0 | September 23, 2014 11:46 |
Overflow Error in Multiphase Modelling with Two Continuous Fluids | ashtonJ | CFX | 6 | August 11, 2014 15:32 |
Modeling interface of fluid and porous, not with default setting | ftab | CFX | 27 | May 20, 2014 07:58 |
Question about CFX transitional fluid model | Anna Tian | CFX | 1 | January 28, 2013 21:14 |
How to apply negtive pressure to outlet | bioman66 | CFX | 5 | June 3, 2006 02:40 |