-
-
July 11, 2023 at 11:59 am
Luke Driver
SubscriberHi,
So as the title describes, I'm using MATLAB to open up ansys ICEM. In MATLAB im doing this using:
ICEM_Path = 'C:\Program Files\ANSYS Inc\v221\icemcfd\win64_amd\bin\icemcfd';
ICEM_Script = [currentFolder, '\ICEM_Script.tcl'];
system(['"' ICEM_Path '" -script "' ICEM_Script '"'])
The file path is correct for both, and it is opening up ansys ICEM. I have also tried opening up the icem.bat file and the same error persists. The problem is the script is not working. Its giving me the error of:
ERROR:plPartMgr ->AttatchAssembley() failed!
Now the weird thing is, when I open up ansys ICEM using the windows start bar (i.e. typing in ICEM and opening it up that way) the script runs fine and generates my mesh as expected. Is there some problem with the MATLAB version, or do I need some additional environment variables or something? I'm pretty stuck to why this is happening so any help would be appreciated.Â
I will say that I do not exactly have ansys ICEM downloaded, I'm using AppsAnywhere, but all the files do show up on my computer so i can access them. I can open up fluent with a script and spaceclaim with a script using the same MATLAB code. -
July 11, 2023 at 3:30 pm
Essence
Ansys EmployeeHello,
Which version of Matlab and ICEM are you using? Could you please check the CAD configuration? Seems like installation issue to me.
-
July 11, 2023 at 3:32 pm
Luke Driver
SubscriberHi,Â
Im using Ansys 2022 R1 and MATLAB R2020a. I could use a future version of MATLAB and see if that works?
The geometry that I am using is fine because the script works when I dont use MATLAB (i.e. importing the geometry and mesh creation works in the script) -
July 11, 2023 at 3:48 pm
Luke Driver
SubscriberThe MATLAB version doesnt make any difference.Â
When I open up ICEM through normally i.e. through the windows star bar, or going into the folder and opening the batch file, a command window opens. When I open up ICEM through MATLAB, it doesnt open up this terminal. I would suppose this terminal is what ICEM uses to perform commands. Maybe this is the issue? -
July 11, 2023 at 4:19 pm
-
July 12, 2023 at 9:38 am
Essence
Ansys EmployeeHello,
"I would suppose this terminal is what ICEM uses to perform commands."Â This might be the issue because, while importing the geometry, the working lines and points get selected when starting the ICEM.
Could you try to select them using Matlab?
-
July 12, 2023 at 10:56 am
Luke Driver
SubscriberWhat do you mean by "try to select them using MATLAB"?
When i run my scritpt im importing a .x_t file that (exported from spaceclaim). Should I try another file type? -
July 12, 2023 at 2:45 pm
Essence
Ansys EmployeeI was referring to select the working points and lines using Matlab. Is it possible?
Yes, please try using .step or .iges files.
-
- The topic ‘Opening ICEM with MATLAB’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Script Error
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- convergence issue for transonic flow
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Point exception in erosion calculation
- Errors with multi-connected bodies using AQWA
- Script Error Ansys
-
2407
-
930
-
599
-
591
-
564
© 2025 Copyright ANSYS, Inc. All rights reserved.