-
Notifications
You must be signed in to change notification settings - Fork 108
Add cell volume and areas #3326
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
3f521d0
Add metric info on cell faces for FCI
dschwoerer 3065f88
Do not used preserved names
dschwoerer 1c0e385
Add non-const versions
dschwoerer 5c28542
Add cell areas and cell volumes
dschwoerer 078322d
Fix formatting
dschwoerer 7547d9e
Fix return statements
dschwoerer 01d776b
Remove duplicate line
dschwoerer 13fdb8a
Remove non-used Jg()
dschwoerer db66e35
add asField3DParallel stub to Field2D
dschwoerer cca09ac
Compile time fixes
dschwoerer a0d4954
Remove no-op check
dschwoerer aae5b5d
Fixup compilation
dschwoerer 63ab8b4
Switch to ASSERT3
dschwoerer 6b66188
Cleanup code
dschwoerer 4c0c495
Add unit tests for cell areas and volume
dschwoerer fd12c54
Add missing headers
dschwoerer 1b83ae8
Fixup unit test
dschwoerer f9cf8d2
Remove non-working tests
dschwoerer 7ad4d05
Fix get region call
dschwoerer 6751afd
Fix comments
dschwoerer 042cf65
Switch test to fake_mesh_fixture
dschwoerer cc172bc
Remove Jxz from public API
dschwoerer 1258b6f
Merge branch 'next' into cell_area_volume
dschwoerer 46536c6
Fixup bad merge
dschwoerer 48a4a68
Merge branch 'next' into cell_area_volume
bendudson afc091b
Prefer const int
dschwoerer 90c3d49
Ensure optional values are set before using them
dschwoerer 1334f5b
Include used headers
dschwoerer 99a212e
Add missing header
dschwoerer 68b1dc8
Remove Jxz from coordinates
dschwoerer 22ab659
Also fill the boundaries to the extend possible
dschwoerer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need these overloads?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to add the cell length, both in the cell centre, as well as at the faces, i.e. the distance between the cell centres.
That would replace
g_22then, right now they are still needed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant the non-
constones!Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need them for normalization. But I am starting to be worried, that that might be a bad idea.
Right now:
gives the correct thing for FCI, but wrong for FA.
or
works for both
and
works only for FA.
So we probably want to remove write access to the fields, and let BOUT++ handle all of the normalisation. I think that is part of github.com//pull/2873 or #3046 - but that is 900 commits behind next and with its 500 comits has probably more merge conflicts that what I can deal with right now :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#3046 is into #2873 by the way.
We (@tomc271 and myself) can take care of bringing those PRs up-to-date -- can you review them? Starting with #3046
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was waiting for the wrappers that make
coords->dy[i]working again, so not all the code needs to be changed. I thought you still wanted to do that?