[FLUENT] define a param in WB journal script to be used in FLUENT?

EhsanBa
EhsanBa Member Posts: 19
Name Dropper First Comment
**

Hi,

I'm optimizing using FLUENT, and the mesh must be updated in a flow-time interval, then the CFD calculation must continue. However, since the old .dat file cannot be used for the updated mesh, I have to perform interpolation.

The problem is that the previous flow time will be lost after interpolation, so I have to reset the flow time using the "rpsetvar" command. For example, the flow time must be updated every 10 seconds, i.e., a tmp parameter is defined. So, a part of WB script might be looking like this:

SetScriptVersion(Version="24.1.144")
system1 = GetSystem(Name="FLU")
setup1 = system1.GetContainer(ComponentName="Setup")
setup1.Edit
i=0
tmp = 10.*(i+1)
setup1.SendCommand(Command = """
(rpsetvar 'flow-time 10.*(i+1))
""")

But it causes an error. I don't know how to define this external parameter and call it to Fluent TUI.

Any help would greatly be appreciated.