CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to make fluent wait? (https://www.cfd-online.com/Forums/fluent/32643-how-make-fluent-wait.html)

Stanley December 4, 2003 05:45

how to make fluent wait?
 
Hello all of you! Is it possible to make fluent wait until a needed file will be created? What do you think?

However, thank you in advance

Wish I know it! Stan

ccc December 4, 2003 11:01

Re: how to make fluent wait?
 
hi Stanley,

really interesting question!

A possible way, I think, is to insert a loop into one of general define macros, for example, DEFINE_AT_END. The following codes may work.

FILE *file=NULL; char *filename[40]="kddahe.data";

while (!file)

file=fopen(filename,"*"); // you should check function definition to find suitable value for the second parameter, "*"

good luck

Ajay Rao December 4, 2003 16:43

Re: how to make fluent wait?
 
What about the EXECUTE command which allows you to execute a command after N number of iterations.May be this could be used , I have never tried though.

Ajay


All times are GMT -4. The time now is 01:23.