|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Join Date: Jun 2012
Posts: 31
Rep Power: 2 ![]() |
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! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Saeed Sadeghi
Join Date: Oct 2012
Location: Iran
Posts: 217
Rep Power: 3 ![]() |
It may be possible using Ansys Workbench
|
|
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2012
Posts: 31
Rep Power: 2 ![]() |
Thank you for your answer. I'll take a look to the workbench guide
|
|
|
|
|
|
|
|
|
#4 |
|
Member
Join Date: Jun 2012
Posts: 31
Rep Power: 2 ![]() |
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.. |
|
|
|
|
|
|
|
|
#5 |
|
Member
Yanlong Li
Join Date: Jan 2013
Location: BeiJing
Posts: 46
Rep Power: 2 ![]() |
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.
|
|
|
|
|
|
|
|
|
#6 |
|
Member
Join Date: Jun 2012
Posts: 31
Rep Power: 2 ![]() |
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
|
|
|
|
|
|
|
|
|
#7 |
|
Member
Yanlong Li
Join Date: Jan 2013
Location: BeiJing
Posts: 46
Rep Power: 2 ![]() |
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. |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using real gas models in Fluent | neville | FLUENT | 1 | June 5, 2012 05:54 |
| Fluent jobs through pbs | ibnkureshi | FLUENT | 5 | June 9, 2011 13:43 |
| Abaqus - Fluent Coupling WITHOUT MPCCI | s.mishra | FLUENT | 0 | May 1, 2011 09:45 |
| Mixing length models and zero-hvac model in fluent | sarah_ron | FLUENT | 0 | November 27, 2004 23:29 |
| Mixing length models and zero-hvac model in fluent | sarah_ron | FLUENT | 0 | October 14, 2004 10:58 |