CBAERO Analysis Interface Module (AIM)
CBAERO Analysis Interface Module (AIM)
Loading...
Searching...
No Matches
AIM Execution

If auto execution is enabled when creating an CBAero AIM, the AIM will execute refine just-in-time with the command line:

cbaero $(cat cbaeroInput.txt) > cbaeroOutput.txt

where preAnalysis generated the file "cbaeroInput.txt" which contains commandline arguments for cbaero.

If the TPS input is specified, then TPSSizer is also executed with

cbtps $(cat cbtpsInput.txt) > cbtpsOutput.txt
<TPSSizer> $(cat tpssizerInput.txt) > tpssizerOutput.txt

Note that TPSSizer is only executed if a TPSSizer executable is specified in the inputs (see AIM Inputs).

The analysis can be also be explicitly executed with caps_execute in the C-API or via Analysis.runAnalysis in the pyCAPS API.

Calling preAnalysis and postAnalysis is NOT allowed when auto execution is enabled.

Auto execution can also be disabled when creating an refine AIM object. In this mode, caps_execute and Analysis.runAnalysis can be used to run the analysis, or refine can be executed by calling preAnalysis, system call, and posAnalysis as demonstrated below with a pyCAPS example:

print ("\n\preAnalysis......")
cbaero.preAnalysis()
print ("\n\nRunning......")
cbaero.system("cbaero $(cat cbaeroInput.txt) > cbaeroOutput.txt"); # Run via system call
if TPS:
cbaero.system("cbtps $(cat cbtpsInput.txt) > cbtpsOutput.txt") # Run via system call
cbaero.system("<TPSSizer> $(cat tpssizerInput.txt) > tpssizerOutput.txt"); # Run via system call
print ("\n\postAnalysis......")
cbaero.postAnalysis()