CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Fluent connection with simulink by TCP/IP

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 18, 2009, 09:01
Default Fluent connection with simulink by TCP/IP
New Member
Vincenzo D'Alessandro
Join Date: Jun 2009
Posts: 1
Rep Power: 0
Tanktruck is on a distinguished road
Hi all together,

I need help to solve a problem with UDF in fluent.

I'm modelling a tank truck. The real system is compuound of two system a fluid system and a mechanical system. The best way to model it is modelling the truck in a suitable envairoment such as Matlab/Simulink and the Fluid in another suitable enviroment such as Fluent, and at each time step connect the two model by TCP/IP connection.

The Fluent model consit of one rigid body, the Tank, and a biphasic model of fluid, water and air. The rigid body could be mouved by UDF, using the macro so called DEFINE_CG_MOTION.

Using a general C++ function I want to connect fluent with simulink, in a way that fluent should wait until receives the tank's velocity from Simulink, after that it has to up to date the velosity and position of the tank, it has to calculate the new forces acting on the tank, and these new forces must be sent to simulink.

Until now I'm able to sent a value to fluent, Fluent multiplies this value within by 2 and give back from fluent this value.

The problem is that within this data exchange Fluent doesen't anithing else. I mean it doesen't start the iteration process.

Have some one ides about that stuff????

Thanks a lot
Tanktruck is offline   Reply With Quote

Old   June 28, 2009, 12:56
Default Hi everyone
New Member
Join Date: Jun 2009
Posts: 4
Rep Power: 8
Ama is on a distinguished road
I am looking for a method to import some data in ms excel file (generated by SIMULINK) and define some inlet boundary conditions to analysis my transient heat transfer model.

If anyone familiar with such an analysis please tell me how to perform it?
(even I have gone through the UDF manual, I wasnt able to find a method to achieve it)

thank you very much !
Ama is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 7 May 22, 2014 22:30
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 4 September 20, 2013 16:30
FLUENT versions ... Gautam FLUENT 3 November 1, 2007 11:49
fluent background connection refused Reginaldo Cotto FLUENT 3 June 17, 2007 07:30
Run Fluent in batch mode Shengping LUO FLUENT 2 October 24, 2000 05:42

All times are GMT -4. The time now is 12:39.