CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Live connection Matlab VS OF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2012, 05:15
Default Live connection Matlab VS OF
  #1
Member
 
Lev
Join Date: Dec 2010
Posts: 31
Rep Power: 15
levka is on a distinguished road
Hello, fomers
i need to link OF with a huje code written in Matlab. I will explain. My goal is to modify BC according to the certain Matlab algorithm(that is quite huge and coupled with Fourier transformation technics ). Input for that Matlab code is a velocity field after certain time steps produced by OF. Output is NEW BC for OF. And this is a loop. How to realize it?
I have one idea...
There is no problem to initialize this loop. For example like this:First compile Matlab code into stand alone application and run it in a loop with OF from Allrun script. That works.

But i need to organize data exchange between these programs!

First that comes to my mind is to write and read csv file:
OF output-->ParaFoam: csv file--> Matlab code:NEW csv file-->OF reads it as BC...

What do you say guys?
levka is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start Fluent with Matlab?? Jay Hu FLUENT 8 November 9, 2022 07:30
Export/Import data contour plots with Matlab meangreen FLUENT 11 October 28, 2020 11:06
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 08:24
"License server connection lost" error curious_ssl FLUENT 0 February 10, 2010 07:27
One to one connection for periodic faces Al CFX 0 August 29, 2007 03:34


All times are GMT -4. The time now is 03:37.