-
-
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.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Suppress Fluent to open with GUI while performing in journal file
- Mesh Interfaces in ANSYS FLUENT
- Time Step Size and Courant Number
- error: Received signal SIGSEGV
-
7570
-
4424
-
2949
-
1422
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.