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

Time derivative

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2009, 09:24
Default Time derivative
  #1
Dmitry
Guest
 
Posts: n/a
Hi. I want to calculate dp/dt (static pressure time-derivative) in my transient calculation and store it. Is it possible to access to pressure value at previous time step in UDF?
  Reply With Quote

Old   February 18, 2009, 10:27
Default Re: Time derivative
  #2
Grzegorz
Guest
 
Posts: n/a
Yes, it is possible. You can use C_P_M1(c,t) or C_P_M2(c,t) for previous and second previous time step, respectively (see User's Guide - 3.2.3 Cell Macros). You can also use memory storage C_UDMI to save current pressure field and in next time step acces to it and refill it with new values. Hope this help.
  Reply With Quote

Old   February 19, 2009, 14:48
Default Re: Time derivative
  #3
Dmitry
Guest
 
Posts: n/a
Thank you. But the problem stil remains. I use C_UDMI to save previous time step pressure: C_UDMI(c,t,0)=C_P_M1(c,t) in my UDF in DEFINE_ADJUST macros. I get error message: FLUENT received fatal signal (ACCESS_VIOLATION) after first iteration.
  Reply With Quote

Old   February 19, 2009, 14:50
Default Re: Time derivative
  #4
Grzegorz
Guest
 
Posts: n/a
Did your solution is calculated or did you start it from very begining?
  Reply With Quote

Old   February 19, 2009, 15:09
Default Re: Time derivative
  #5
Dmitry
Guest
 
Posts: n/a
Yes, my solution calculated some time steps. Firstly I did 5 time steps without using of C_P_M1, then I put it in my UDF, reinterpreted it and tried to run calculation. But I have error.
  Reply With Quote

Old   February 19, 2009, 15:17
Default Re: Time derivative
  #6
Grzegorz
Guest
 
Posts: n/a
Send me your udf - kondora@imc.pcz.czest.pl
  Reply With Quote

Old   February 20, 2009, 08:54
Default Re: Time derivative
  #7
mange
Guest
 
Posts: n/a
did you remember to allow memory access for your C_UDMI ?

/m
  Reply With Quote

Old   February 20, 2009, 10:27
Default Re: Time derivative
  #8
Dmitry
Guest
 
Posts: n/a
What does it mean /m? I use other C_UDMI(c,t,1), C_UDMI(c,t,2) and so on to store my variables and I have no problems to access them.
  Reply With Quote

Old   February 20, 2009, 10:33
Default Re: Time derivative
  #9
mange
Guest
 
Posts: n/a
I mean in the panel of user memory you have to specify how many fields you want to allocate memory for. by default it is 0.
  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
the derivative of Scalar on time ? owen FLUENT 0 March 5, 2009 05:59
Second Derivative Swarup FLUENT 0 June 7, 2008 07:21
Time derivative in transiente run Antonio Lopes CFX 2 January 12, 2008 12:03
Derivative and double-Derivative for steep functio Kali Sanjay Phoenics 1 March 27, 2006 08:51
how to obtain time derivative soubhik CFX 1 August 26, 2004 00:43


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