|
[Sponsors] |
August 23, 2004, 02:15 |
how to obtain time derivative
|
#1 |
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 |
|
August 26, 2004, 00:43 |
Re: how to obtain time derivative
|
#2 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Physical Reason for stability of Implicit Schemes? | radhakrishnan | Main CFD Forum | 26 | October 3, 2023 23:05 |
directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 11:23 |
How obtain the average of lift over time for a transient simulation? | aero | ANSYS | 0 | November 11, 2009 03:00 |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |
Problems with simulating TurbFOAM | barath.ezhilan | OpenFOAM | 13 | July 16, 2009 06:55 |