AAS commands for writing Input/Output Parameters is not working

Good 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.

 

Comments

Sign In or Register to comment.