CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

udf - iteration number within one time step?!

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2008, 06:17
Default udf - iteration number within one time step?!
Posts: n/a
Hi you all, I have a question about this statement:

int current_iter = (nres==0)?(0) : ((int) cont2[nres-1]];

I read this several times here in this forum. In general this is exactly what I need - hopefully - because I want to know the iteration step within a time step (for unsteady calculation). One problem seems to be, that I just interpret my udf in fluent, so I get the error message: label "count2" not found (pc=32). Does anyone know a possibility to get the iteration number within one time step for interpreted udfs?

Best regards and thanks for help, Mira

  Reply With Quote

Old   January 23, 2008, 04:16
Default Re: udf - iteration number within one time step?!
Posts: n/a
Just one new fact I found:

int current_iter = (nres==0)?(0) : ((int) cont2[nres-1]]; has not the value of the iteration-number made in one time step but the value of all made iteration-steps, so that gives us the same information as nres itself.

But the variable current_iter is accessible with a compiled udf and that's the number of iterations made in one time step.

How to get this information with an interpreted udf is still a question.

regards, Mira

  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Full pipe 3D using icoFoam cyberbrain OpenFOAM 4 March 16, 2011 10:20
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 10:01
directMapped problem panda60 OpenFOAM Bugs 4 July 8, 2010 11:23
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 06:55
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09

All times are GMT -4. The time now is 21:22.