Skip to content

Conversation

@ChasingNeutrons
Copy link
Collaborator

This adds a field which supports distance calculations to where the value of the field changes. This is hoped to support upcoming multiphysics features alongside both surface and delta tracking.

I have implemented an abstract class plus a derived type which allows a lattice-like spatial structure. Hopefully it should be easy to extend to more general fields.

In an upcoming PR I hope to add checks for this field for both temperature and density, allowing geometryStd to account for it during move.

Please let me know if this abstraction makes sense or doesn't.

Added in the BEAVRS model with the D-bank partially inserted. Also fixed
a flaw in the geometry where the outermost cell was defined such that
there could be a rare particle lost between it and the geometry
boundary.
Field which have values that are piecewise constant. Endowed with a
distance calculation. Added a simple version which allows a lattice to
be specified.
Copy link
Member

@valeriaRaffuzzi valeriaRaffuzzi left a comment

Choose a reason for hiding this comment

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

It all looks good to me, the main thing is that there is massive code duplication from latUniverse and it would be nice to avoid it. On the other hand these are not quite generic procedures and might never be used in a third location. Let's discuss it!

Copy link
Member

@valeriaRaffuzzi valeriaRaffuzzi left a comment

Choose a reason for hiding this comment

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

All good for me! I am happy with the all comments/replies.

@valeriaRaffuzzi valeriaRaffuzzi merged commit 2d14326 into CambridgeNuclear:main Dec 15, 2025
5 checks passed
valeriaRaffuzzi added a commit that referenced this pull request Dec 15, 2025
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