CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Execute commands through the AAS Toolbox (https://www.cfd-online.com/Forums/fluent/216467-execute-commands-through-aas-toolbox.html)

Xabierenko April 9, 2019 04:30

Execute commands through the AAS Toolbox
 
Hi! So I have been trying to add the execution of a couple of commands from Matlab making use of the AAS Toolbox. I basically copied the structure that you input in the TUI command prompt on fluent but when I put it in Matlab it doesn't work.

These are the couple of commands that need to be executed which when introduced on the TUI command prompt work perfectly:
Code:

solve/execute-commands/add-edit a 41 "time-step" "define/boundary-conditions/zone-type wall) 7 pressure-outlet"
solve/execute-commands/add-edit b 41 "time-step" "define/boundary-conditions/pressure-outlet mv yes no 1067 no yes yes no no no"

But when I try to do the same on MATLAB i just get an error which in my experience doesn't make any sense since I'm just sending a TUI command to fluent which works properly when directly typing it on Fluent:
Code:

iFluentTuiInterpreter.doMenuCommandToString(['solve/execute-commands/add-edit a 41 "time-step" "define/boundary-conditions/zone-type wall) ',num2str(mv),' pressure-outlet"'])
iFluentTuiInterpreter.doMenuCommandToString('solve/execute-commands/add-edit b 41 "time-step" "define/boundary-conditions/pressure-outlet mv yes no 1067 no yes yes no no no"')

Java exception occurred:
AAS_CORBA.EFluentGenericError: IDL:AAS_CORBA/EFluentGenericError:1.0

        at AAS_CORBA.EFluentGenericErrorHelper.read(EFluentGenericErrorHelper.java:80)

        at AAS_CORBA._ICoFluentSchemeControllerStub.doMenuCommandToString(_ICoFluentSchemeControllerStub.java:126)

Thanks for your help!!

AlexanderZ April 10, 2019 00:30

Code:

wall)
why do you have bracket here?

change " to space"space
best regards

Xabierenko April 10, 2019 02:01

Thanks for the fast answer! I don't know if I fully understand what do you mean by change " to space"space. Do you mean the following?

Code:

iFluentTuiInterpreter.doMenuCommandToString('solve/execute-commands/add-edit b 41 " time-step " " define/boundary-conditions/pressure-outlet mv yes no 1067 no yes yes no no no "')


All times are GMT -4. The time now is 06:55.