CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Change boundary type (UDF/journalfile) (

Koen February 12, 2009 11:49

Change boundary type (UDF/journalfile)
I am doing an unsteady simulation, and I need to change a lot of my boundary types from "mass-flow-inlet" to "wall" after 2sec, 30sec, 32 sec... Is it possible to do this with a udf?

Where can I find an example of this?

If not, is it possible with a udf to execute a journal file after x seconds??

please help!

John February 13, 2009 03:51

Re: Change boundary type (UDF/journalfile)
How about using a VB Script file?

In VB Script, there is a function named sleep which may help you. For example,

WScript.sleep 3000

You can use VB Script file sending a command line to an active FLUENT window, for example

Dim WshShell

WshShell.SendKeys "file/read-case-data"&" yes.cas"&"{ENTER}"

Good luck

Koen February 13, 2009 05:07

Re: Change boundary type (UDF/journalfile)
I am using a linux computer, so VisualBasic is no option. :(

bohis February 14, 2009 11:56

Re: Change boundary type (UDF/journalfile)
Hi, I would propose to write a journal file using SCHEME if-statements to check the current time. I think that way to be the most convenient. good luck

Koen February 14, 2009 13:18

Re: Change boundary type (UDF/journalfile)
Do you know if it is possible to execute a journal-file from a user-defined-function. If yes, how?? Does anybody have an example for me?

bohis February 14, 2009 14:04

Re: Change boundary type (UDF/journalfile)
I am not a fluent expert, but I reckon it is not possible to execute journal file via any UDF. Honestly, I cannot even imagine why would you need it! You can execute UDF from journal file :)

All times are GMT -4. The time now is 08:18.