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

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

./aero.csh > aero.out

in the "inputs" analysis directory or

c3d_objGrad.csh

in the "design" analysis directory when computing functional sensitvities w.r.t. design variables. The AIM preAnalysis generates the inputs/aero.csh script required to execute Cart3D by copying it from $CART3D/bin/aero.csh and inserting various analysis input modifications.

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 Cart3D AIM object. In this mode, caps_execute and Analysis.runAnalysis can be used to run the analysis, or Cart3D can be executed by calling preAnalysis, system, and posAnalysis as demonstrated below with a pyCAPS example:

print ("\n\preAnalysis......")
cart.preAnalysis()
print ("\n\nRunning......")
cart.system("./aero.csh", "inputs"); # Run via system call in inputs analysis directory
print ("\n\postAnalysis......")
cart.postAnalysis()