Skip to content

VariableThinMultipole set default amplitudes and default freq and phase for SINE mode - #1118

Open
oscarxblanco wants to merge 2 commits into
masterfrom
pyat_variablethinmultipole_set_default_sine
Open

VariableThinMultipole set default amplitudes and default freq and phase for SINE mode#1118
oscarxblanco wants to merge 2 commits into
masterfrom
pyat_variablethinmultipole_set_default_sine

Conversation

@oscarxblanco

Copy link
Copy Markdown
Contributor

This PR implements the default AmplitudeB, FrequencyB and PhaseB for the default mode at.ACMode.SINE of the VariableThinMultipole in pyat.

A function called _default_amplitudes sets the default behaviour.
The MaxOrder definition has been moved and reorganized to give priority to the user MaxOrder.
A bug in the _set_amplitudes for AmplitudeA has been fixed.
The default frequency for the at.ACMode.SINE is set to zero.

@oscarxblanco

Copy link
Copy Markdown
Contributor Author

Dear @lfarv and @swhite2401 , this implements the default behaviour of the VariableThinMultipole mentioned in #1117 (review) in order to solve the printing issue.

Could you please review this PR ?

@oscarxblanco

Copy link
Copy Markdown
Contributor Author

Here is the default definition of the element
image

@oscarxblanco

Copy link
Copy Markdown
Contributor Author

And this is the default output in the terminal
image

@oscarxblanco oscarxblanco added enhancement Python For python AT code labels Jul 31, 2026
@oscarxblanco oscarxblanco changed the title set default amplitudes, freq, phase for default mode SINE VariableThinMultipole set default amplitudes, freq, phase for default mode SINE in pyat Jul 31, 2026
@oscarxblanco

Copy link
Copy Markdown
Contributor Author

Dear @lfarv , here is a temporary solution to issue #1120 .

The atvariablethinmultipole is now created without errors
image

@swhite2401 asked to have a buffer for the white noise. setwhitenoise will be later used to define the default parameters of that buffer. I do not implement them yet because they require to modify the pass method and I would prefer to have it in a separated pull request.

@oscarxblanco oscarxblanco changed the title VariableThinMultipole set default amplitudes, freq, phase for default mode SINE in pyat VariableThinMultipole set default amplitudes and default freq and phase for SINE mode Aug 3, 2026
@oscarxblanco oscarxblanco added the Matlab For Matlab/Octave AT code label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Matlab For Matlab/Octave AT code Python For python AT code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant