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

How to get gata of previous time step

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2012, 23:18
Exclamation How to get gata of previous time step
  #1
New Member
 
Johnny
Join Date: Aug 2012
Posts: 3
Rep Power: 13
Johnyi is on a distinguished road
Hi,
I am trying to define a source to a cell zone. The source is a function of temperature of the previous time step. I wrote the UDF as follows:

include "udf.h"
DEFINE_SOURCE(heat_source,c,t,dS,eqn)
{
real x[ND_ND];
real source;
real tem1;
tem1=C_T_M1(c,t);
source=tem1/1000;
dS[eqn]=0.0;
return source;
}


I was able to interpreted or complied the UDF and loaded it and defined to the cell zone. however, when trying to run Fluent, It gave the information:
FLUENT received fatal signal (ACCESS_VIOLATION)

Can anybody help me to solve this problem?

Regards
Johnyi is offline   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
Reading forces from previous time step within solver SD@TUB OpenFOAM Programming & Development 5 April 24, 2023 11:51
Time step size and max iterations per time step pUl| FLUENT 33 October 23, 2020 22:50
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 04:13
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


All times are GMT -4. The time now is 19:47.