Skip to content

Commit

Permalink
Reverted back. Convergence study is not accurate because of inability…
Browse files Browse the repository at this point in the history
… to control mesh for now.
  • Loading branch information
Dark-Elektron committed Sep 24, 2024
1 parent 97adda0 commit c6a4bc7
Show file tree
Hide file tree
Showing 2 changed files with 270,235 additions and 269,530 deletions.
14 changes: 13 additions & 1 deletion cavsim2d/cavity.py
Original file line number Diff line number Diff line change
Expand Up @@ -6386,7 +6386,19 @@ def calc_cutoff(Ri, mode):
return freq

def __str__(self):
return fr"{self.cavities_list}"
p = dict()
for name, cav in self.cavities_dict.items():
p[name] = {
'tune': cav.eigenmode_tune_res,
'fm': cav.eigenmode_qois,
'hom': cav.wakefield_qois,
'uq': {
'tune': 0,
'fm': cav.uq_fm_results,
'hom': cav.uq_hom_results
}
}
return fr"{json.dumps(p, indent = 4)}"

def __getitem__(self, key):
if isinstance(key, int):
Expand Down
539,751 changes: 270,222 additions & 269,529 deletions notebooks/misc.ipynb

Large diffs are not rendered by default.

0 comments on commit c6a4bc7

Please sign in to comment.