-
-
May 25, 2020 at 3:49 pm
evabe235
SubscriberGood evening,
Im using AAS- to couple Matlab and Fluent and use it as a Server. I have followed the steps in the official Ansys Youtube tutorial for the connection, and have read the users guide: "Fluent as a Server".
Most of functions seem to work such as: tui.doMenuCommandToString(), fluent. getNrInputParameters(); fluent.getInputParameterNameByIndex(in long lInputParameterIndex);
Nevertheless, the most important functions that I need do not work: (WRITE AND READ PARAMETERS of Fluent)
fluent.getOutputParameterValueByName(string('q_rad_thorax'))
fluent.setInputParameterValueByName(string('T_head'), 200)
I write an example of what Im coding:
%%%%%%%%%%%%%%% CODE %%%%%%%%%%%%%%%%%%
%% Basic Connection %%%% RUN THIS SECTION - Once per matlab session
orb=initialize_orb();
load_ansys_aas();
fluent=actfluentserver(orb,'aaS_FluentId.txt');
tui=fluent.getSchemeControllerInstance();
tui.doMenuCommandToString('report summary')
%tui.doMenuCommandToString('define operating-conditions gravity yes 9.8 0.0 0.0');
fluent.getOutputParameterValueByName(string('q_rad_thorax'))
fluent.setInputParameterValueByName(string('T_head'), 200)
%%%%
MATLAB OUTPUT ERRORS:
>> fluent.setInputParameterValueByName(string('T_head'),200)
Java exception occurred:
AAS_CORBA.EFluentGenericError: IDL:AAS_CORBA/EFluentGenericError:1.0
at AAS_CORBA.EFluentGenericErrorHelper.read(EFluentGenericErrorHelper.java:80)
at AAS_CORBA._ICoFluentUnitStub.setInputParameterValueByName(_ICoFluentUnitStub.java:456)
>> fluent.getOutputParameterValueByName(string('q_rad_thorax'))
Java exception occurred:
AAS_CORBA.EFluentGenericError: IDL:AAS_CORBA/EFluentGenericError:1.0
at AAS_CORBA.EFluentGenericErrorHelper.read(EFluentGenericErrorHelper.java:80)
at AAS_CORBA._ICoFluentUnitStub.getOutputParameterValueByName(_ICoFluentUnitStub.java:579)
PD: I have already written in my Fluent case these parameters previously, so they exist. I have also tried writing fluent.getOutputParameterValueByName('q_rad_thorax') and neither works. Here below I attach the error that I get from at FLUENT command window: unbound-variable, set-parameter-data
Thank you very much,
Any help would be really welcome.
-
June 9, 2020 at 1:28 pm
KR
AdministratorHello,
I'm trying to find you the right person to answer your question. Thank you for your patience.
Karthik
-
August 18, 2020 at 10:26 am
jannav
SubscriberHello,nI have similar problem. I'm using Matlab 2017b and Fluent 2019 R1. When I try to run Fluent calculation by command: n>> iFluentTuiInterpreter.doMenuCommandToString('solve iterate 100')nIt starts calculation but immediately Matlab gives an error and calculation stops:nJava exception occurred:nAAS_CORBA.EFluentGenericError: IDL:AAS_CORBA/EFluentGenericError:1.0n at AAS_CORBA.EFluentGenericErrorHelper.read(EFluentGenericErrorHelper.java:80)n at AAS_CORBA._ICoFluentSchemeControllerStub.doMenuCommandToString(_ICoFluentSchemeControllerStub.java:126)nnIs there any solution?nThank younJann -
August 27, 2020 at 3:58 pm
Steve
Ansys EmployeeIs this the video you're looking at? Do you have access to the customer portal to download the example files? I'm not sure what the issue could be at this stage
-
- 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
-
7584
-
4434
-
2951
-
1423
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.