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

Initialization Additional Variables for time integration

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2014, 03:44
Default Time integration
  #21
HLo
New Member
 
HLo
Join Date: Dec 2013
Location: Germany
Posts: 26
Rep Power: 12
HLo is on a distinguished road
Hello Atze,
I did some experiments as well, comparison of integration with: A) an additional variable and B) with a fortran function in both transient and steady state runs. The fortran routine implements trapezoidal rule and takes account of timestep length.

transient, constant and varying timestep lenghts:
both solutions do their work but with "slightly" different results
A) the very first integrated value of a quantity q is calculated as: q0 + q*dt1 (q0 is initial value dt1 is 1st timestep length)
B) the fortran implemetation uses trapezoidal rule so gives 1/2*(q+q0)*dt1
-this main deviation is kept the entire simulation if one doesn't supply a "dummy" initial value q0
-minor deviations appear but these may be explained this way:
fortran gives 1 output value for 1 input quantity, whereas the AV solution uses a volume integral or mean value over a output quantity with spatial and/or numerical "noise" inside

steady state:
-the deviations found in transient are the same
-the result gives a reasonable integration value, if physical timesteps are chosen
- On automatic timesteps a "false timestep" is used, but there is no way to access it from fortran, so I expect the compensated (see conclusion) AV solution to be of advantage, not beeing sure how the intgrated value has to be interpreted, when no "real" time value is given

conclusion:
If one consideres to post process the integrated quantity in CFX-Post an AV ist needed anyway, one might prefer the AV solution, with an initial value which is minus one half of the expected quantity times 1st timestep: -0.5*q*dt1.
Unfortunately the initial value cannot be expressions, so a value has to be calculated in advance.
Both solutions give good results in transient runs, steady state runs need further investigations and considerations how the results have to be interpreted
HLo is offline   Reply With Quote

Reply

Tags
loop, time integral, wall condesation model


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
ADDITIONAL VARIABLES LIMITERS N.P CFX 5 December 1, 2011 07:47
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
additional variables' effect ariel CFX 9 April 2, 2008 00:41
user SUBROUTINE for additional variables Tuks CFX 0 November 8, 2005 02:09
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 05:24.