|
[Sponsors] |
May 21, 2019, 16:08 |
Water materials - pressure
|
#1 |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
I´m having several difficulties with the pressure calculation inside my domain filled with water.
I tried to use constant properties water and the pressure remained constant. I tried to use water defined by the IAWPS database and the pressure reaches the maximum value of my table (200 bar) really fast, which doesn´t correspond to the real-based behaviour. I tried to define liquid water with the correspondent NASA polymonials and the software solver crashes with the following message: Error in subroutine CALVAR_PROP : Error calculating Thermal Expansivity GETVAR originally called by subroutine CAL_GVar Can anybody help me with the material definition of water in order to get the true specific heat and density variation with temperature which will result in the true pressure? |
|
May 21, 2019, 18:09 |
|
#2 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
What are you trying to solve exactly? You add heat to water in an enclosed container and want to solve for pressure?
|
|
May 21, 2019, 18:37 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
Your problem is probably not in the material properties, but in the way you set the simulation up or the numerical stability it has.
For your setup, you need to think very carefully about what the flow is doing and the boundary conditions. For instance a change in temperature will lead to ta change in density, and that means fluid will enter or leave the domain. Have you got a suitable boundary to handle this flowing material? For numerical stability, you need to check the normal things: smaller time step, double precision numerics, better initial condition, mesh quality, mesh quality and mesh quality. Mesh quality is so important it is worth repeating - everything becomes easier when you improve mesh quality.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 21, 2019, 19:10 |
|
#4 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
Yes, I have energy sources that go from 10 to 1000W and I want to see the relation between the energy deposited and the pressure.( It should be exponential) |
||
May 21, 2019, 19:14 |
|
#5 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
I'm already working with double Precision and tried to improve the mesh which proved to not influence the results. My initial conditions are 20 degrees Celsius and atmospheric pressure. The container is closed with walls with no slip condition as boundary conditions, there is no fluid entering or going out |
||
May 21, 2019, 19:53 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
If you are modelling a sealed cavity with liquid water then as you heat it you will get a very rapid rise in pressure, this is the expected physics. In real life the container is going to deform and the volume is going to fractionally increase, but this is enough to relieve a large amount of the pressure.
So there will be a big difference in pressure between a perfectly rigid container and a realistic container which deforms a tiny amount from the large pressure inside it. Have you taken this into account?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 21, 2019, 22:09 |
|
#7 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
The problem is that if I use IAWPS (very accurate supposedely), the pressure goes to 200 bar ( it doesn´t go further cause my max on table is 200) and in reality it should be 10-30 bars, for the energy I´m using and my system. Should I account for the dofrmation of the material? And how could I do it Last edited by oliveira1820; May 22, 2019 at 03:55. |
||
May 22, 2019, 04:49 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
So the thermal situation is not simple - it has some undefined heat input and a coolant water system, so the temperature will be a function of all that.
And yes you should work out how much the thing deflects at the pressures you expect, as that is highly likely be a big cause of the error.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 22, 2019, 16:01 |
|
#9 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
|
||
May 22, 2019, 20:01 |
|
#10 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
That depends on your system, how it is reinforced, how it operates and so on.
But assuming it is pretty much just a sealed chamber - then model the chamber in FEA with the pressures you expect. You can get the deformations from this. Then see if the extra volume it gives you is enough to account for the variation you are seeing. If the volume change is important then you need to think of a way of incorporating it into your model. A one-way FSI model would do this easily I would think. If the volume change is not important then something else is happening. Then you have to figure out what it is and whether it is real or not.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 23, 2019, 04:24 |
|
#11 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
When I use the NASA polymonials to define liquid water, the specific heat and denisty vary normally, but the pressure basically satays constant (1 atm). For the same amount of heat, when I use IAWPS to define water, the density and specific heat vary also normally, but the pressure reaches tens of bar and keeps increasing at 100 seconds of simulation. |
||
May 23, 2019, 08:23 |
|
#12 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
That one is obvious - surely you know what is happening there.
It appears your NASA polynomials fluid is constant density. So in a sealed chamber the pressure will never change. The IAWPS fluid have variable density, so the heating leads to a pressure change.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 23, 2019, 13:45 |
|
#13 |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Sorry I didn't explained well. These last results are for the case where I define the density in function of temperature
|
|
May 23, 2019, 19:41 |
|
#14 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
Be careful here - if your fluid has density a function of temperature but not of pressure it will not behave as you expect. You should make the density a function of pressure as well.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 24, 2019, 03:07 |
|
#15 | |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Quote:
my 50 cents: I think you should take a step back and try to answer: What question are you trying to answer with your CFD calculation? If you are trying to calculate the pressure then either calculate it by hand (exponential) or take everything into account, including the FSI, like Glenn suggested. Using all the simplifications and not using FSI, your answer will not be more accurate than your hand calculation. So why all the effort? Alternatively, rephrase your question, and simplify the physics by ignore density-pressure coupling. Something like: - Do you want to know the local temperature and locate hot spots: use CFD with density-temperature coupling - Do you want to investigate how long it take to heat up: use CFD with density-temperature coupling - Do you want to investigate the flow due to buoyancy and determine local HTC: use CFD with density-temperature coupling Regards, Gert-Jan |
||
May 24, 2019, 03:14 |
|
#16 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
|
||
May 24, 2019, 03:34 |
|
#17 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
I don't have it. I copied the term exponential from your query, thinking that you would have it.
Thinking it over, in a closed rigid compartment, density should not vary at all, else then the bousinesq approach. So direct density-temperature coupling won't work as well. You should take density as a constant. You can still calculate the temperature using CFD with constant density. Take the volume average T and using an expansivity relation, determine the pressure. You need forced convection for this. So you need a mixer that helps in the heat transfer. If you don't have a mixer, than you need free convection. Then you can include the bousinesq approach. But this is only valid over a small range of temperatures. Could be sufficient. Then again: take the volume average T and using an expansivity relation, determine the pressure. Everything else requires density-temperature coupling with FSI. |
|
May 24, 2019, 03:38 |
|
#18 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
DENSITY = (-0.9486* Temperature/((1) [K]) + 1292 +0.05*Pressure/((100000) [Pa]))[kg m^-3] Do you notice anything wrong? |
||
May 24, 2019, 03:51 |
|
#19 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
You didn't read my post. I wrote:
"in a closed rigid compartment, density should not vary at all." You can only use the bousinesq approach to include free convection if this is relevant. |
|
May 24, 2019, 03:52 |
|
#20 | |
Senior Member
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8 |
Quote:
The pressure is exponential because, the chamber is cooled by water, and it raises with the energy I put in there, but at one certain value, the heat generated is higher that the heat removing capacity and the pressure raises exponentially. Do you know a formula for calculating the pressure, with the density/temperature/thermal expansivity/heat flux removed/ that I can use (or just one of this variables)? The purpose of the simulation is to see the temperature raising and distribution and the pressure exponentially raise with energy input(that is due to the heat remove feature), if you can think of another way to demosntrate this it will work also. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting divergence while increasing the back pressure at pressure outlet | greenfields15 | FLUENT | 0 | March 19, 2018 00:39 |
Periodic flow using Cyclic - comparison with Fluent | nusivares | OpenFOAM Running, Solving & CFD | 30 | December 12, 2017 06:35 |
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions | Vishnu_bharathi | CFX | 12 | November 21, 2017 07:56 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |