Skip to content

Add half-fourier basis - #7387

Merged
wthrowe merged 2 commits into
sxs-collaboration:developfrom
michaeldmurphy1:half_fourier_basis
Sep 1, 2026
Merged

Add half-fourier basis#7387
wthrowe merged 2 commits into
sxs-collaboration:developfrom
michaeldmurphy1:half_fourier_basis

Conversation

@michaeldmurphy1

Copy link
Copy Markdown
Contributor

Proposed changes

This packages the discrete sin/cos transformations (II) into one basis, which when needed will take a parity parameter (similar to ZernikeB1)

One motivation for this basis is for axially symmetric cartoon simulations, where having an angular basis for an outer boundary could be beneficial for GH constraint-preserving BC (though as of now, I have not seen improvements in my recent runs)

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.
  • If a coding agent is used, have one of
    "Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com",
    "Co-Authored-by: Codex noreply@openai.com", or
    "Co-Authored-By: GitHub Copilot CLI noreply@microsoft.com"
    as the last line of the commit, depending on the agent.

Further comments

Comment on lines 6 to +9
#include <cstddef>

#include <cmath>
#include <numbers>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Merge include blocks.

Comment on lines 6 to +9
#include <cstddef>

#include <cmath>
#include <numbers>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Combine.

@michaeldmurphy1
michaeldmurphy1 marked this pull request as draft July 27, 2026 15:36
@michaeldmurphy1

Copy link
Copy Markdown
Contributor Author

I walk to talk to Larry and Nils before this is merged

michaeldmurphy1 and others added 2 commits August 31, 2026 11:26
Represending functions on a half-circle could be useful to Cartoon evolutions;
in paticular for outer boundaries in GH where an angular basis could be more
suitable to constraint-preserving BC

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@michaeldmurphy1
michaeldmurphy1 marked this pull request as ready for review August 31, 2026 15:27
@michaeldmurphy1

Copy link
Copy Markdown
Contributor Author

Okay, I've convinced myself this is a useful thing to add to the code!

@wthrowe
wthrowe merged commit 1ffe8cc into sxs-collaboration:develop Sep 1, 2026
22 of 23 checks passed
@michaeldmurphy1
michaeldmurphy1 deleted the half_fourier_basis branch September 2, 2026 13:42
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.

2 participants