Developement Of A Batch Mode For Conduit And Its ... - Cal Poly
Developement Of A Batch Mode For Conduit And Its ... - Cal Poly
Developement Of A Batch Mode For Conduit And Its ... - Cal Poly
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1.1.6 Init File (Setup <strong>Mode</strong>)<br />
One last functionality is required of CONDUIT to make it truly versatile. The<br />
explanation of the features of CONDUIT so far has accounted for most of the capability<br />
needed to optimize a problem. However, the designers of CONDUIT had the foresight to<br />
realize that it might be helpful to run a user defined MATLAB script at the start of the<br />
problem, as a “catch all”, to account for any additional settings. This script is called the<br />
Init File (Initialization File) and is used to set any miscellaneous parameters that are not<br />
set elsewhere.<br />
Three parameters of CONDUIT are set in the Init file, the time step used in linear<br />
simulations, input signals to be used in simulations, and CONDUIT switches to be used<br />
in the block diagram. All three parameters are defined as global variables, which are read<br />
by CONDUIT, and all use a specific form for their names.<br />
Any other required parameters can be set by direct assignment, or by calling user<br />
defined MATLAB scripts and functions. <strong>For</strong> example, the state space matrices of the<br />
aircraft are typically loaded into global variables to be used in the block diagram. By<br />
using variables for the four matrices, it saves the user the trouble of copying these<br />
potentially large matrices into one-line fields within the state space block in Simulink. It<br />
also allows the state space model to be easily modified by the user. In the case of the<br />
SH-2G gain scheduling to be discussed later in this paper, eleven different flight<br />
conditions were investigated, but only three identified state space models were available.<br />
At the start of each problem (referred to as a “case” in <strong>Batch</strong> <strong>Mode</strong>), the state space<br />
matrices of the three known flight conditions were loaded, and an interpolation method<br />
was used to calculate the matrices to be used for the remaining 8 cases. The resulting<br />
14