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

Store information from previous timestep in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2013, 17:30
Default Store information from previous timestep in CFX
  #1
New Member
 
Join Date: Jun 2013
Posts: 3
Rep Power: 13
WillisH is on a distinguished road
I am simulating a transient flow through a simple geometry of a pipe with heated and unheated lengths in CFX 13. I am trying to figure out how to take the average outlet temperature from the previous timestep and set it as the average inlet temperature of the current timestep. I have been trying to use an additional variable with the Update Loop = TRANS_LOOP modification but am getting the following error from the solver manager.

"The expression is invalid because:
PrevOutletTemp is not available for use in this term
Error processing expression: Total Temperature = PrevOutletTemp"

I have tried running iterations with the AV and the inlet condition set to numerical values prior to trying to the pass the temperature value but I get the same error. I have not been able to figure out the correct execution of this method. I want to pass the value equal to areaAve(Temperature)@outlet from the previous timestep to the current inlet temperature condition. What should I set the algebraic equation of the AV to? Do I use the AV directly in the inlet temperature condition or an expression or function? Any help, quidance, or suggestions would be appreciated.
WillisH is offline   Reply With Quote

Old   June 19, 2013, 15:21
Default
  #2
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
singer1812 is on a distinguished road
Not sure if I follow what you are doing or not. Been a while since I used this.

In the past, I think you need to run a few iterations of analysis without this setting to initialize the variable.

Then use this to intialize the run with this setting.
singer1812 is offline   Reply With Quote

Old   June 19, 2013, 18:14
Default
  #3
New Member
 
Join Date: Jun 2013
Posts: 3
Rep Power: 13
WillisH is on a distinguished road
I want to simulate a recirculating flow, The flow is pumped through heated and unheated lengths of pipe and the temperature of the fluid domain should raise through the whole period of the transient simulation. To model the recirculation of the flow I want to set the inlet temperature for each time step equal to the outlet temperature of the previous timestep.
WillisH is offline   Reply With Quote

Old   June 19, 2013, 19:50
Default
  #4
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
Just use your current outlet temperature, I believe this would be the correct way to do it, and it will not make a difference if your time steps are small enough anyways.
Doing it your way would make it time step dependent.
evcelica is offline   Reply With Quote

Old   June 20, 2013, 14:14
Default
  #5
New Member
 
Join Date: Jun 2013
Posts: 3
Rep Power: 13
WillisH is on a distinguished road
Thanks for the suggestion, That worked well!
WillisH is offline   Reply With Quote

Reply

Tags
cfx 13, transient analysis


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
accessing a variable from the previous iteration (NOT TIMESTEP) aditya.pandare Fluent UDF and Scheme Programming 3 April 1, 2013 06:32
Velocity gradient in previous timestep mateus FLUENT 1 December 13, 2012 14:07
Pros and Cons for CFX, CFdesign, COMSOL Val Main CFD Forum 3 June 10, 2011 03:20
How to access a parameter from a previous timestep Ridley CFX 5 June 15, 2010 07:56
How to store transient data with various timestep? Oliver CFX 4 December 18, 2005 20:56


All times are GMT -4. The time now is 18:02.