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

Call CFX from MATLAB

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 25, 2012, 14:49
Default Call CFX from MATLAB
  #1
New Member
 
hi
Join Date: Dec 2012
Posts: 19
Rep Power: 13
alikhube is on a distinguished road
Hi everyone
I want to call CFX from matlab to solve the shape that was meshed. what's the comment and setting on cfx and matlab???

and in other case assume I meshed an airfoil, I want to move the point of it to create an other airfoil, can I set a setting at cfx to moved the mesh for new airfoil that don't need to take time for remeshing???

thank everyone for attention
alikhube is offline   Reply With Quote

Old   December 26, 2012, 05:02
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
First of all - please do not duplicate post. You have started a new thread with your question so there is no need to post it again on other threads. I have deleted the duplicate post.

If your first question is asking how to call CFX from matlab to solve a shape you have meshed - that is easy, just use the command line cfx5solve from matlab and it will run. You will probably have to send it through CFX-Pre to import the mesh, but that be scripted with a session file so this can be automated from the command line too.

If you want to make minor modifications to a geometry and run it again the best way is to generate a new mesh and to interpolate the old results onto the new one as an initial condition.
ghorrocks is offline   Reply With Quote

Old   December 27, 2012, 04:28
Default
  #3
New Member
 
hi
Join Date: Dec 2012
Posts: 19
Rep Power: 13
alikhube is on a distinguished road
I'm sorry.I think that could send my question to more people because of my hurry less of time.I wouldn't threat this again

Assume I saved projects until mesh step in different names (from 1 to 150) and I want to call this 150 meshes to matlab. Please help me and write the command loop for this problem.

Is it possible to set one solving setting to solve all meshes or must set for any projects???

Thank for your attention
alikhube is offline   Reply With Quote

Old   December 27, 2012, 05:58
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Have you generated 150 meshes in Matlab and want to run CFX simulations on all of them?
ghorrocks is offline   Reply With Quote

Old   December 27, 2012, 09:14
Default
  #5
New Member
 
hi
Join Date: Dec 2012
Posts: 19
Rep Power: 13
alikhube is on a distinguished road
No
for first step and tentative I meshed 10 airfoil in cfx.
I meshed my airfoils in cfx and are saved on my desktop for call step of my algorithm in matlab.
What's the comment in matlab for call this 10 meshes (for tentative) and solve it and at the end call post process???

Thank you

Last edited by alikhube; January 2, 2013 at 13:35.
alikhube is offline   Reply With Quote

Old   December 28, 2012, 04:29
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I have not idea what the matlab calls are, ask matlab support for that.

But for CFX it sounds like you should call the cfx5solve command which allows running CFX from the command line. This will start the run, and if it completes generate the output files.
ghorrocks is offline   Reply With Quote

Old   December 29, 2012, 06:29
Default
  #7
New Member
 
hi
Join Date: Dec 2012
Posts: 19
Rep Power: 13
alikhube is on a distinguished road
I want to run this 150 meshes in CFX , and I am beginner in it

please help me and explain step-by-step instructions for set solves setting and then run this 150 mesh by one run in cfx or fortran or matlab , in better word serially run and get post-process.
I have cfx 13

Thank you Glenn Horrocks
alikhube is offline   Reply With Quote

Old   December 30, 2012, 06:35
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I am not going to write step by step instructions for you, I am a busy man. If you need that much help maybe you should contact CFX support - that's why you pay them for technical support.

But in short:
* "cfx5solve" is the command line to run a CFX simulation.
* Matlab will have a command to run stuff fro mthe command line somewhere. I am not a Matlab expert so I have no idea what it is.
* Then write a matlab program which calls the cfx5solve command to do the simulations.
ghorrocks 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
Cfx - matlab camilo_costa CFX 15 October 14, 2013 17:18
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
CFX 10's solutions differ from CFX 5.7's Atit Koonsrisuk CFX 4 July 26, 2006 11:59
2D CFD code using SIMPLE algorithm bfan Main CFD Forum 3 June 22, 2002 22:01
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07


All times are GMT -4. The time now is 14:07.