-
Notifications
You must be signed in to change notification settings - Fork 25
Discontinuous field #171
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
Discontinuous field #171
Conversation
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.
valeriaRaffuzzi
left a comment
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.
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!
Geometry/Fields/ScalarFields/PieceConstantFields/pieceConstantField_inter.f90
Outdated
Show resolved
Hide resolved
Geometry/Fields/ScalarFields/PieceConstantFields/cartesianField_class.f90
Outdated
Show resolved
Hide resolved
Geometry/Fields/ScalarFields/PieceConstantFields/cartesianField_class.f90
Show resolved
Hide resolved
Geometry/Fields/ScalarFields/PieceConstantFields/cartesianField_class.f90
Show resolved
Hide resolved
Geometry/Fields/ScalarFields/PieceConstantFields/cartesianField_class.f90
Show resolved
Hide resolved
Geometry/Fields/ScalarFields/PieceConstantFields/cartesianField_class.f90
Show resolved
Hide resolved
Geometry/Fields/ScalarFields/PieceConstantFields/cartesianField_class.f90
Show resolved
Hide resolved
Geometry/Fields/ScalarFields/PieceConstantFields/cartesianField_class.f90
Outdated
Show resolved
Hide resolved
valeriaRaffuzzi
left a comment
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.
All good for me! I am happy with the all comments/replies.
This reverts commit 2d14326.
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.