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

PREVIOUS_2_TIME Macro giving error while interpret.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2019, 10:08
Default PREVIOUS_2_TIME Macro giving error while interpret.
  #1
Senior Member
 
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13
nvarma is on a distinguished road
the UDF manual doesn't say any limitations on this macro other than to include the unsteady.h header which I have. PREVIOUS_TIME also seem to work. However, PREVIOUS_2_TIME doesn't seem to work and gives the following error:

"label "dt_factor" not found "

Note that my udf does not have anything called dt_factor. Also the udf works as soon as I comment out the "t2=PREVIOUS_2_TIME;" line.

thanks for any help or guesses.
nvarma is offline   Reply With Quote

Old   September 27, 2019, 00:46
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
#include "udf.h"
#include "unsteady.h"

real time2;
DEFINE_ON_DEMAND(name_any)
{
time2=PREVIOUS_2_TIME;
}
is compiled with no errors

best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
error, fluent, udf


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
UDF giving warning, although used stdio.h header file jeevankumarb Fluent UDF and Scheme Programming 7 December 31, 2019 10:06
fvOptions npatricia OpenFOAM 6 May 23, 2018 06:21
timestep extraction for macro manuc Tecplot 0 August 10, 2016 13:20
Macro problem cfddummy Siemens 1 April 9, 2007 13:37


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