Skip to content

Conversation

@ben-c-2013
Copy link
Collaborator

Bugfixes involve class methods generating waterfall plots not importing the correct functions and waterfall plots not being saved.

@ben-c-2013 ben-c-2013 added bug Something isn't working enhancement New feature or request labels Nov 12, 2025
@ben-c-2013 ben-c-2013 requested a review from kyrsjo November 12, 2025 15:59
keep_data : bool
Flag for whether to keep raw Wake-T output after simulation.
output_period : int, optional
Number of times along the stage in which the Wake-T diagnostics data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "output every output_period time steps", also point to wake_t.Plasma_stage n_out parameter?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a standard parameter for ALL Stage classes?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this interact with initial and final step outputs?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit of "dz" does not work well, since it is unknown to the user. A better idea would be to set the period in meters, or to set the number of outputs (as in n_out for wake_t)

wakefield_model='quasistatic_2d'

if self.output_period is None:
self.output_period = round(self.length/dz/8)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment: "Defaults to 8 times throughout the stage"

plasma = wake_t.PlasmaStage(length=self.length, density=plasma_profile, wakefield_model=wakefield_model,
r_max=box_size_r, r_max_plasma=box_size_r, xi_min=box_min_z, xi_max=box_max_z,
n_out=n_out, n_r=int(self.num_cell_xy), n_xi=int(num_cell_z), dz_fields=dz, ppc=1)
n_out=self.output_period, n_r=int(self.num_cell_xy), n_xi=int(num_cell_z), dz_fields=dz, ppc=1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n_out has a different meaning...

Copy link
Collaborator

@kyrsjo kyrsjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confusion about meaning. Propose to move this parameter to Stage class, and define clearly, i.e. as the number of outputs (with clarification if this should include final/initial steps), or period in meters for "in between" outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants