Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synch repo with MachineRefs repo #31

Open
amereghe opened this issue Nov 23, 2022 · 1 comment
Open

Synch repo with MachineRefs repo #31

amereghe opened this issue Nov 23, 2022 · 1 comment

Comments

@amereghe
Copy link
Member

This implies to:

  • remove .m scripts, moving them to MatLabTools repo. MADX tables with LGEN/RAMPGEN data should be updated to the latest values in repo;
  • add a MADX macro which tabs k-values of all the elements along a line;
@amereghe
Copy link
Member Author

An example of the MADX macro:

! print header to file
assign, echo=Ks.txt;
PRINT, TEXT="# Brho[Tm], BP[mm], K1_H2_012A_QUE[m^-2], K1_H2_016A_QUE[m^-2], K1_H2_022A_QUE[m^-2]";
assign, echo=terminal;

! write values
assign, echo=Ks.txt;
PRINTF, TEXT="% 19.12E % 6.1f % 12.5E % 12.5E % 12.5E",
VALUE=Brho, BP, K1_H2_012A_QUE, K1_H2_016A_QUE, K1_H2_022A_QUE;
assign, echo=terminal;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant