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

Adding pressure and temperature sources instead of energy

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2016, 05:07
Default Adding pressure and temperature sources instead of energy
  #1
rae
New Member
 
Join Date: May 2011
Posts: 21
Rep Power: 0
rae is on a distinguished road
I have an intense thermal energy source and am concerned solving the hydrodynamic equations before the energy and turbulence equations. I think it would be better to add temperature and pressure to source volume elements directly (based on state equation) and then the solver is ahead when working out the hydrodynamic equations first (and probably end up with less solver divergence issues on energy and turbulence). I have already tried iterating on p_mass after energy but ...

Is there a way to change the static pressure and temperature variables at the end of each time step, i.e. ready for the next? I know how to read the variables but can I write to them?

Thanks.
rae is offline   Reply With Quote

Old   October 23, 2016, 06:29
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
No, you cannot do this. Besides, the solver cannot converge if you go in there and change values.

CFX is a coupled solver so will get the coupling between temperature and flow better than most CFD codes. So just use it with the default solver setup and it should work fine.
ghorrocks is offline   Reply With Quote

Old   October 23, 2016, 21:05
Default
  #3
rae
New Member
 
Join Date: May 2011
Posts: 21
Rep Power: 0
rae is on a distinguished road
Thanks for the info Glenn. I suppose after the first iteration within the timestep the pressure and temperature variables are adjusted for the energy source anyway. Just a final question you might help with, when a max temperature is set with air as an ideal gas, what happens when the limit would otherwise be exceeded? Is the excess internal energy just dumped or is it translated into pressure by the state equation relationship?
rae is offline   Reply With Quote

Old   October 24, 2016, 03:31
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
I suppose after the first iteration within the timestep the pressure and temperature variables are adjusted for the energy source anyway.
That is exactly right. Note "Coupling" refers to how the pressure and momentum equations (also energy and others if relevant) are linked such that the final result satisfies both sets of equations.

If the solver hits an artificial limit on values then the solver is unlikely to converge. If the solver thinks a region of really hot gas exists you cannot stop it by defining an artificial limit. If the region of hot gas is not real then you have to find where in your simulation setup the hot gas is being created and fix that.
rae likes this.
ghorrocks is offline   Reply With Quote

Reply

Tags
rewrite standard variable, solver flow, sources


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
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 18:00
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 01:07


All times are GMT -4. The time now is 13:56.