Skip to content

Adds set_state support for left and modified left eigenvectors - #335

Open
benjaminhyatt wants to merge 1 commit into
DedalusProject:masterfrom
benjaminhyatt:set-state-mod-left
Open

Adds set_state support for left and modified left eigenvectors#335
benjaminhyatt wants to merge 1 commit into
DedalusProject:masterfrom
benjaminhyatt:set-state-mod-left

Conversation

@benjaminhyatt

Copy link
Copy Markdown

This is a small PR that allows you to pass one of two new optional input arguments (set_left and set_modified_left) to solver.set_state in order to set a field to a left or modified left eigenmode, respectively. The default behavior when neither are specified (i.e., they are both False) remains the same as before: returning a mode of a given index in solver.eigenvectors = solver.right_eigenvectors.

I have been using this recently (particularly set_state with set_modified_left=True) in order to form a biorthogonal set of Rossby wave eigenmodes in a DiskBasis setup, and it appears to be working as intended.

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

Successfully merging this pull request may close these issues.

1 participant