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

CFX from Matlab Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2023, 01:16
Smile CFX from Matlab Error
  #1
Senior Member
 
Zese
Join Date: Sep 2013
Posts: 102
Rep Power: 12
zese is on a distinguished road
Dear all,

I want to run cfx pre in matlab. so I wrote the following command in matlab:

system('C:"Program Files""ANSYS Inc"\v202\CFX\bin\cfx5pre.exe -line -def ./filename.def -batch filename.pre')

in which filename.pre is the session file.
but I receive the following error:
-- ERROR -- A simulation is already open! This must be closed before opening a new simulation.


ans =

0


Does anyone know how I can solve it? because I dont see any simulation running in my system
zese is offline   Reply With Quote

Old   August 14, 2023, 03:28
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Is there a lock file (.lck) present in your working folder?
This might prevent opening the definition file. Therefore delete it and see if it helps.
Gert-Jan is offline   Reply With Quote

Old   August 14, 2023, 05:53
Default
  #3
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
Also, check that your script (filename.pre) does not open a .cfx file and then open another one (or start a new one). I think that gives the error you describe. You have to close the first cfx file before you can open a new one.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   August 14, 2023, 05:58
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
On top of that: I think you should read .cfx-files and write .def-files. Is that what you do?
Gert-Jan 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
[OpenFOAM] ParaView command in Foam-extend-4.1 mitu_94 ParaView 0 March 4, 2021 13:46
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


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