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

Modify cell diameter function #1279

Merged
merged 9 commits into from
Sep 13, 2024
Merged

Modify cell diameter function #1279

merged 9 commits into from
Sep 13, 2024

Conversation

AmishgaAlphonius
Copy link
Collaborator

@AmishgaAlphonius AmishgaAlphonius commented Sep 11, 2024

Description

The previous implementation to calculate cell diameter used the measure function which assumed a linear mapping.

Solution

This PR adds a function that calculates the volume by integrating 1 over the cell, by summing JxW values returned by the FEValues object.

Testing

Tests that were outdated have been updated.

Checklist (will be removed when merged)

See this page for more information about the pull request process.

Code related list:

  • All in-code documentation related to this PR is up to date (Doxygen format)
  • Lethe documentation is up to date
  • Fix has unit test(s) (preferred) or application test(s), and restart files are in the generator folder
  • The branch is rebased onto master
  • Changelog (CHANGELOG.md) is up to date
  • Code is indented with indent-all and .prm files (examples and tests) with prm-indent

Pull request related list:

  • Labels are applied
  • There are at least 2 reviewers (or 1 if small feature) excluding the responsible for the merge
  • If this PR closes an issue or is related to a project, it is linked in the "Projects" or "Development" section
  • If the fix is temporary, an issue is opened
  • The PR description is cleaned and ready for merge

@AmishgaAlphonius AmishgaAlphonius self-assigned this Sep 11, 2024
@AmishgaAlphonius AmishgaAlphonius added the Bug Something isn't working label Sep 11, 2024
@AmishgaAlphonius AmishgaAlphonius linked an issue Sep 11, 2024 that may be closed by this pull request
@AmishgaAlphonius AmishgaAlphonius force-pushed the modify-cell-diameter-function branch from 19f8673 to 1134b76 Compare September 11, 2024 18:06
@blaisb blaisb force-pushed the modify-cell-diameter-function branch from 3645253 to 64800d6 Compare September 11, 2024 18:49
@AmishgaAlphonius AmishgaAlphonius force-pushed the modify-cell-diameter-function branch from 64800d6 to a1b73cd Compare September 11, 2024 18:51
@AmishgaAlphonius AmishgaAlphonius marked this pull request as ready for review September 11, 2024 18:58
Copy link
Contributor

@blaisb blaisb left a comment

Choose a reason for hiding this comment

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

Some changes to address

@AmishgaAlphonius AmishgaAlphonius force-pushed the modify-cell-diameter-function branch from 17596ec to 6c01677 Compare September 12, 2024 16:32
Copy link
Contributor

@blaisb blaisb left a comment

Choose a reason for hiding this comment

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

Sorry about that, one last comment to change IMO

@blaisb
Copy link
Contributor

blaisb commented Sep 13, 2024

is this ready to review @AmishgaAlphonius ?

@AmishgaAlphonius
Copy link
Collaborator Author

AmishgaAlphonius commented Sep 13, 2024

is this ready to review @AmishgaAlphonius ?

Yes :)

Copy link
Contributor

@blaisb blaisb left a comment

Choose a reason for hiding this comment

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

One last question then good to go

@blaisb blaisb merged commit 0430787 into master Sep 13, 2024
11 checks passed
@blaisb blaisb deleted the modify-cell-diameter-function branch September 13, 2024 19:58
OGaboriault pushed a commit that referenced this pull request Sep 17, 2024
Description
The previous implementation to calculate cell diameter used the measure function which assumed a linear mapping.

Solution
This PR adds a function that calculates the volume by integrating 1 over the cell, by summing JxW values returned by the FEValues object.

Testing
Tests that were outdated have been updated.
M-Badri pushed a commit to M-Badri/lethe that referenced this pull request Sep 29, 2024
Description
The previous implementation to calculate cell diameter used the measure function which assumed a linear mapping.

Solution
This PR adds a function that calculates the volume by integrating 1 over the cell, by summing JxW values returned by the FEValues object.

Testing
Tests that were outdated have been updated.

Former-commit-id: 0430787
blaisb pushed a commit that referenced this pull request Sep 30, 2024
Description
The previous implementation to calculate cell diameter used the measure function which assumed a linear mapping.

Solution
This PR adds a function that calculates the volume by integrating 1 over the cell, by summing JxW values returned by the FEValues object.

Testing
Tests that were outdated have been updated.

Former-commit-id: 0430787
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.

Use Mapping at multiple places
3 participants