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

how to obtain time derivative

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2004, 01:15
Default how to obtain time derivative
  #1
soubhik
Guest
 
Posts: n/a
hi friends,

I am solving some transient diffusion problem where I have to define a time derivative of an additional variable (concentration) in the source time. Has anyone of u tried obtaining time derivative such as dc/dt . I have used 2 additional variables C1 and C2 which calls the values of concentration at the beginning and end of time step (junction box)

C (current timestep) - C(earlier timestep)/timestep

this doesnot work because the expression yields values of zero for each timestep. presumably it reads the same value for C1 and C2 at each timestep . please suggest me any other ways.

soubhik
  Reply With Quote

Old   August 25, 2004, 23:43
Default Re: how to obtain time derivative
  #2
Jeff
Guest
 
Posts: n/a
Try calling your junction box just at the end of the time step with the following algorithm:

Loop over all nodes: dCdt = (NewValue - C1)/dt C1 = NewValue C2 = dCdt End loop

Jeff
  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
Physical Reason for stability of Implicit Schemes? radhakrishnan Main CFD Forum 26 October 3, 2023 22:05
directMapped problem panda60 OpenFOAM Bugs 4 July 8, 2010 10:23
How obtain the average of lift over time for a transient simulation? aero ANSYS 0 November 11, 2009 02:00
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 05:55


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