Skip to content

New shifted metric 2 - #1460

Closed
johnomotani wants to merge 5 commits into
region-arguments-tofromFieldAlignedfrom
new_shifted_metric2
Closed

New shifted metric 2#1460
johnomotani wants to merge 5 commits into
region-arguments-tofromFieldAlignedfrom
new_shifted_metric2

Conversation

@johnomotani

Copy link
Copy Markdown
Contributor

Implementation of ParallelTransform for shifted-metric method, transforming to globally field-aligned coordinates to take y-derivatives.

Includes a function to correct twist-shift boundary guard cells of zShift by adding/subtracting ShiftAngle, so twist-shift does not have to be applied during communications. This could be copied to ShiftedMetric too. Implementing this function required adding the hasBranchCutUp/Down methods to Mesh.

Currently allows parallel derivatives to be taken by going through the branch that transforms to/from field-aligned coordinates. Next step is to merge #1459 so the user can save a field-aligned field and pass that into parallel derivatives. Finally (possibly) would be to auto-magically cache the field-aligned version of the field somewhere so the user does not have to add extra Field3Ds to their code.

Replaces #1177.

Useful for knowing where to correct y-periodic-boundary cells of zShift
using ShiftAngle.
Similar to ShiftedMetric, but transforms to globally field-aligned
coordinates instead of calculating yup/ydown fields.
@d7919

d7919 commented Dec 18, 2018

Copy link
Copy Markdown
Member

Should we close #1177 if this replaces it?

@johnomotani johnomotani mentioned this pull request Dec 18, 2018
@johnomotani

Copy link
Copy Markdown
Contributor Author

This new ParallelTransform will not be needed. Functionality for shifting between orthogonal and field-aligned coordinates with staggered coordinates will be provided by ShiftedMetric when ParallelTransform objects are moved to be members of Coordinates and have a location.
See https://github.com/boutproject/BOUT-dev/projects/5

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants