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

Water materials - pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2019, 15:08
Default Water materials - pressure
  #1
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
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?
oliveira1820 is offline   Reply With Quote

Old   May 21, 2019, 17:09
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
What are you trying to solve exactly? You add heat to water in an enclosed container and want to solve for pressure?
evcelica is offline   Reply With Quote

Old   May 21, 2019, 17:37
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,708
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 21, 2019, 18:10
Default
  #4
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by evcelica View Post
What are you trying to solve exactly? You add heat to water in an enclosed container and want to solve for pressure?

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)
oliveira1820 is offline   Reply With Quote

Old   May 21, 2019, 18:14
Default
  #5
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.

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
oliveira1820 is offline   Reply With Quote

Old   May 21, 2019, 18:53
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,708
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 21, 2019, 21:09
Default
  #7
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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?
The container made of niobium is cooled with a 0,5 kg/s water flow, which in turn removes the heat excess preventing it from heating too much and deforming.

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 02:55.
oliveira1820 is offline   Reply With Quote

Old   May 22, 2019, 03:49
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,708
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 22, 2019, 15:01
Default
  #9
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
But how' could I take the deflection into account, how do I activate it in the ANSYX CFX Pre?
oliveira1820 is offline   Reply With Quote

Old   May 22, 2019, 19:01
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,708
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 23, 2019, 03:24
Default
  #11
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
Just another thing that is happening on my simulation to see if you can guess the error source:

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.
oliveira1820 is offline   Reply With Quote

Old   May 23, 2019, 07:23
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,708
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 23, 2019, 12:45
Default
  #13
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
Sorry I didn't explained well. These last results are for the case where I define the density in function of temperature
oliveira1820 is offline   Reply With Quote

Old   May 23, 2019, 18:41
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,708
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 24, 2019, 02:07
Default
  #15
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,831
Rep Power: 27
Gert-Jan will become famous soon enough
Quote:
Originally Posted by oliveira1820 View Post
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)



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
Gert-Jan is offline   Reply With Quote

Old   May 24, 2019, 02:14
Default
  #16
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
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
The hand calculation is a nice idea. The problem is I don´t have any idea about a formula to do it. Can you tell me or advice me where to look?
oliveira1820 is offline   Reply With Quote

Old   May 24, 2019, 02:34
Default
  #17
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,831
Rep Power: 27
Gert-Jan will become famous soon enough
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.
Gert-Jan is offline   Reply With Quote

Old   May 24, 2019, 02:38
Default
  #18
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
I made the density in function of pressure and the solver crashes:

DENSITY = (-0.9486* Temperature/((1) [K]) + 1292 +0.05*Pressure/((100000) [Pa]))[kg m^-3]

Do you notice anything wrong?
oliveira1820 is offline   Reply With Quote

Old   May 24, 2019, 02:51
Default
  #19
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,831
Rep Power: 27
Gert-Jan will become famous soon enough
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.
Gert-Jan is offline   Reply With Quote

Old   May 24, 2019, 02:52
Default
  #20
Senior Member
 
Pedro Oliveira
Join Date: Feb 2018
Location: Portugal
Posts: 109
Rep Power: 8
oliveira1820 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
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.
FSI is out of question for now.

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.
oliveira1820 is offline   Reply With Quote

Reply


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
Getting divergence while increasing the back pressure at pressure outlet greenfields15 FLUENT 0 March 18, 2018 23:39
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
error message cuteapathy CFX 14 March 20, 2012 06:45
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 01:27.