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

Fluent connection with simulink by TCP/IP

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2009, 09:01
Default Fluent connection with simulink by TCP/IP
  #1
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
  #2
Ama
New Member
 
Join Date: Jun 2009
Posts: 4
Rep Power: 16
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

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
Stopping a Fluent batch job AND saving the data! Possible? Volker Pawlik FLUENT 13 December 28, 2020 04:16
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 7 March 23, 2018 03:22
FLUENT versions ... Gautam FLUENT 3 November 1, 2007 10: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 05:17.