|
[Sponsors] |
January 2, 2013, 12:20 |
Interaction between Fluent models
|
#1 |
Member
Join Date: Jun 2012
Posts: 32
Rep Power: 14 |
Hi all
Does anybody know if it is possible interaction between two or more fluent models? For example, I want to use data from model1 to use as boundary condition in model2, that for each time step, so the sequence would be as follow. - Reach convergence in model1 at tstep1, save data to be used in model2 - Reach convergenge in model 2 at tstep2 (with BC from model1 data), save data to be used in model1. - Follow previous steps until a certain convergence is reached in both models. - Proceed with nex tstep So, do you know if there is a some routine to do it without closing a model for opening the other? The target is to keep open both to not to waste time, and compute the mentioned sequence automatically. Thank you for your help! |
|
January 3, 2013, 02:43 |
|
#2 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
It may be possible using Ansys Workbench
|
|
January 3, 2013, 03:09 |
|
#3 |
Member
Join Date: Jun 2012
Posts: 32
Rep Power: 14 |
Thank you for your answer. I'll take a look to the workbench guide
|
|
January 3, 2013, 07:56 |
|
#4 |
Member
Join Date: Jun 2012
Posts: 32
Rep Power: 14 |
I have been reading the capabilities of Workbench, and the only I have found, similar to my purpose, is the 'System Coupling' component, but it only can couple wall forces in Fluent (it is designed for multiphysics...).
So, could the problem be solved using some UDF macro? Remind that the main purpose is to open a fluent case without close the other, and to 'jump' between both.. |
|
January 4, 2013, 08:29 |
|
#5 |
Member
Yanlong Li
Join Date: Jan 2013
Location: BeiJing
Posts: 47
Rep Power: 13 |
I am so interested in your case. I think you can udf in both models, like output the converged values of model-1 as a file(the name should be changed depend on time if your model is unsteady), which will be used in modle-2. in the udf of modle-2, use a recycl code (such as if (exit (file of model-1)) read it, else wait). the model-1 is same.
|
|
January 7, 2013, 08:15 |
|
#6 |
Member
Join Date: Jun 2012
Posts: 32
Rep Power: 14 |
Thank you for your comment!
But I think that the main problem is the 'wait' order. How the model can wait until the other has finished? I'm totally newbie in C code, and I really don't know if it is feasible... Thanks again Yanlong Li |
|
January 7, 2013, 20:49 |
|
#7 |
Member
Yanlong Li
Join Date: Jan 2013
Location: BeiJing
Posts: 47
Rep Power: 13 |
Hi,
you can just write the code as follow: exist_p = 0; while (exist_p ==0) { if exit("file") /* Here, I forgot the code in C, it is "exist" in MATLAB, you can find yourself.*/ exist_p =1; } @@@@@ /* when it come to this line, it means the file is exist, and do want you want. /*Acutally, there is a code "wait(5)" in Matlab, which means wait for 5 seconds, but I do not whether it's same in C. if it do not have, the code mentioned above is OK.*/ Hope it help. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Abaqus - Fluent Coupling WITHOUT MPCCI | s.mishra | FLUENT | 1 | April 5, 2016 07:47 |
Using real gas models in Fluent | neville | FLUENT | 1 | June 5, 2012 06:54 |
Fluent jobs through pbs | ibnkureshi | FLUENT | 5 | June 9, 2011 14:43 |
Mixing length models and zero-hvac model in fluent | sarah_ron | FLUENT | 0 | November 28, 2004 00:29 |
Mixing length models and zero-hvac model in fluent | sarah_ron | FLUENT | 0 | October 14, 2004 11:58 |