This post is going to cover how to build the ASC DHARD Yaw model (abbreviated ADY) in Buzz. The first step is to make sure that you are on the dev branch the main branch hasn't been updated in a long time (I should do that). the folder for the most up to date ADY model is in the test/ASC_SOLVER folder (not the test/ADY folder). there are a number of model type folders inside of this folder. Basically there is a few ways to attach different FOMs to different outputs of the model. the one we are interested in is the ExampleModels_newFOM. In the folder for this configuration you will find all of the different fits to environmental noise and measurement noise as well as the BNS FOM fit that comes from the test/FOMs folder. None of this should be touched. As it is all been put in this folder to make a specific configuration for this model. The configuration for this model is the basic both FOMs come out of the plant output. To run the code to build this model run the command:
This should run the code in the file T_ADY_make_sys.py that builds the system. It also generates plots to assess if everything was put together correctly. I will now go through these plots and explain what all the important ones say about the model.
FOM_bode.pdf: This plot shows what the two FOMs. Note the scale of these two FOMs is set so that the max of the BNS FOM is 1. It will be rescaled when it gets solved.
Noise_bode.pdf: This is the most basic plot showing the inner workings of the model. Much like the next plot it is showing the individual components that are going into the function makeSPOFF(). All of the labels are rather self explanatory where "S*P" is the product of the plant and the environmental noise.
SPOFF_diagnostic_bode.pdf: This plot is showing the internal workings of the model. It is showing transfer functions for a number of the components. "P alone" is the plant that was put into the makeSPOFF() function. All the other traces are from the final connected model and are as follows
"P to P in SPOFF" in the code SPOFF['P.out', 'P.in']: this is what the plant looks like in the model after it has been altered with the makeSPOFF() function
"S to P" in the code SPOFF['P.out', 'S.in']: this is the path from the environmental noise in (S.in) to the output of the plant. This should be independent of how much of the plant was moved out of P since it is the product of SP.
"S to S" in the code SPOFF['S.out', 'S.in']: this is the original environmental noise and the as well as the part of the plant that was moved over (P complement)
"P Recombined" in the code SPOFF['P.out', 'SA.in']: this is the parts of the plant that were separated and should be the same as "P to P in SPOFF". It is the same in the plot attached it is really hard to see because the blue is behind the brown
"P that moved to S" in the code SPOFF['S.out', 'SA.in']: this is the part of the plant that was moved to the environmental noise section (S). It also should line up with "P to P in SPOFF" because all of the plant's shape should have been moved to the environmental noise.
"Orig. S" in the code SPOFF['G.out', 'S.in']: this is the original S and should be alone because we don't plot the non SPOFF S in this plot.
With all of the plots produced the configuration folder ExampleModels_newFOM should be automatically updated with the newest version with whatever changes you made. After that run the tests T_calc_H2, T_plot_H2, T_calc_HiB, and T_plot_HiB with the [ExampleModels_newFOM] option to run the solver with your model.