CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Interaction between Fluent models

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2013, 11:20
Default Interaction between Fluent models
  #1
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 13
DonQuijote is on a distinguished road
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!
DonQuijote is offline   Reply With Quote

Old   January 3, 2013, 01:43
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 14
msaeedsadeghi is on a distinguished road
It may be possible using Ansys Workbench
msaeedsadeghi is offline   Reply With Quote

Old   January 3, 2013, 02:09
Default
  #3
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 13
DonQuijote is on a distinguished road
Thank you for your answer. I'll take a look to the workbench guide
DonQuijote is offline   Reply With Quote

Old   January 3, 2013, 06:56
Default
  #4
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 13
DonQuijote is on a distinguished road
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..
DonQuijote is offline   Reply With Quote

Old   January 4, 2013, 07:29
Default
  #5
Member
 
Yanlong Li
Join Date: Jan 2013
Location: BeiJing
Posts: 47
Rep Power: 13
Yanlong Li is on a distinguished road
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.
Yanlong Li is offline   Reply With Quote

Old   January 7, 2013, 07:15
Default
  #6
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 13
DonQuijote is on a distinguished road
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
DonQuijote is offline   Reply With Quote

Old   January 7, 2013, 19:49
Default
  #7
Member
 
Yanlong Li
Join Date: Jan 2013
Location: BeiJing
Posts: 47
Rep Power: 13
Yanlong Li is on a distinguished road
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.
Yanlong Li is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Abaqus - Fluent Coupling WITHOUT MPCCI s.mishra FLUENT 1 April 5, 2016 06:47
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
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


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