Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream the averaging operator #97

Merged
merged 5 commits into from
Jun 11, 2024
Merged

Upstream the averaging operator #97

merged 5 commits into from
Jun 11, 2024

Conversation

lukem12345
Copy link
Member

This is a small PR for converting 0-forms to 1-forms by taking the mean of the data stored on the faces of an edge.

avg_01_mat computes a matrix that performs this averaging operation.
avg_01 constructs and multiplies the given 0-form by that matrix.
Aliases using unicode subscripts are given.

This functionality is quite old but has never been explicitly upstreamed.

src/DiscreteExteriorCalculus.jl Outdated Show resolved Hide resolved
src/DiscreteExteriorCalculus.jl Outdated Show resolved Hide resolved
src/DiscreteExteriorCalculus.jl Outdated Show resolved Hide resolved
@lukem12345
Copy link
Member Author

Future work could take advantage of the given trick to return an averaging operator from 0-forms to 2-forms.

@lukem12345 lukem12345 merged commit ad231ee into main Jun 11, 2024
9 checks passed
@lukem12345 lukem12345 deleted the llm/avg branch June 11, 2024 19:47
KevinDCarlson pushed a commit that referenced this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request physics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants