Skip to content

Store totalCellCrossSection, centralize interpolation.#174

Merged
daanboer merged 6 commits intomainfrom
169_nodal_cell_interpolation
Jun 17, 2024
Merged

Store totalCellCrossSection, centralize interpolation.#174
daanboer merged 6 commits intomainfrom
169_nodal_cell_interpolation

Conversation

@janvdijk
Copy link
Collaborator

@janvdijk janvdijk commented Jun 13, 2024

  • Grid.h: add free function interpolateNodalToCell
  • EedfCollision.*: use that, store the totalCellCrossSection and provide an accessor.
  • ElectronKinetics.cpp: use totalCellCrossSection(), do not repeat this task multiple times.
  • add tests/test_interpolation.cpp

Note that this does the non-controversial parts of #116. After merging this branch into main (and then into the branch underlying #116), that will only contain the essential (yet controversial) parts: avoiding two-step interpolation.

Resolves issue #169

 * Grid.h: add free function interpolateNodalToCell
 * EedfCollision.*: use that, store the totalCellCrossSection
   and provide an accessor.
 * ElectronKinetics.cpp: use totalCellCrossSection(), do not
   repeat this task multiple times.

See issue #169. Note that this does the non-controversial parts
of #116.
@janvdijk janvdijk added the enhancement New feature or request label Jun 13, 2024
@janvdijk janvdijk added this to the Initial public release milestone Jun 13, 2024
@janvdijk janvdijk requested a review from daanboer June 13, 2024 12:36
@janvdijk janvdijk self-assigned this Jun 13, 2024
@janvdijk janvdijk linked an issue Jun 13, 2024 that may be closed by this pull request
@janvdijk janvdijk marked this pull request as draft June 13, 2024 12:37
@janvdijk
Copy link
Collaborator Author

@JopHendrikx, also FYI.

@codecov
Copy link

codecov bot commented Jun 13, 2024

The author of this PR, janvdijk, is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don't hesitate to email us at support@codecov.io with any questions.

Jan van Dijk added 2 commits June 13, 2024 22:01
Test that grid.getNodes() is correctly interpolated up to
grid.getCells(), up to essentially the machine accuracy.
@janvdijk janvdijk marked this pull request as ready for review June 13, 2024 20:11
@janvdijk
Copy link
Collaborator Author

@daanboer, I think that can be merged now. I just marked this as 'ready for review'.

Jan van Dijk added 3 commits June 14, 2024 11:14
File Integrals.h has been renamed into GridOps.h. It now hosts various
grid-related operations: interpolation, differentiation and integration.
The inline interpolation function has been moved there from Grid.h.
Tests have been added for the new cell->cell differentiation function
cellDerivative, which has been extracted from ElectronKinetics (function
calculateFirstAnisotropy). A test has been added (that u'=1).
@daanboer daanboer merged commit ea97207 into main Jun 17, 2024
@daanboer daanboer deleted the 169_nodal_cell_interpolation branch June 17, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce a face -> cell interpolation function, add docs and tests.

2 participants