|
[Sponsors] |
August 14, 2023, 02:16 |
CFX from Matlab Error
|
#1 |
Senior Member
Zese
Join Date: Sep 2013
Posts: 104
Rep Power: 13 |
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 |
|
August 14, 2023, 04:28 |
|
#2 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,903
Rep Power: 28 |
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. |
|
August 14, 2023, 06:53 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,841
Rep Power: 144 |
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. |
|
August 14, 2023, 06:58 |
|
#4 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,903
Rep Power: 28 |
On top of that: I think you should read .cfx-files and write .def-files. Is that what you do?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] ParaView command in Foam-extend-4.1 | mitu_94 | ParaView | 0 | March 4, 2021 14:46 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
Undeclared Identifier Errof UDF | SteveGoat | Fluent UDF and Scheme Programming | 7 | October 15, 2014 08:11 |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 08:24 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |