-
Notifications
You must be signed in to change notification settings - Fork 100
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
Adding support to DiracDelta
for generic points in the domain
#837
Conversation
DiracDelta
for generic points in the domain DiracDelta
for generic points in the domain
HI @kishore-nori ! Thanks for your work. Can you please add an entry to the |
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.
Hi @kishore-nori ! I have finished a first round of review. Please address or rebut my comments/remarks/etc..
Thank you very much for the comments Alberto, I ll make changes accordingly following our discussion in comments here. |
Hi @amartinhuertas and @santiagobadia, I have rewritten the implementation (realised I could do it in a good way, after our discussion to approach it as quadrature). This now works for evaluations and also solving the PDE with |
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.
Hi @kishore-nori ! nice work! I finished with my review. Please answer/rebut my comments.
Codecov Report
@@ Coverage Diff @@
## master #837 +/- ##
==========================================
+ Coverage 88.29% 88.33% +0.04%
==========================================
Files 164 164
Lines 19079 19120 +41
==========================================
+ Hits 16845 16889 +44
+ Misses 2234 2231 -3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Need to analyze why this is much faster than the usual way and if we can generalize it to Gridap to make it faster, for such situations involving Functions
Hi @santiagobadia and @amartinhuertas, I added methods to
DiracDelta
to support generic points in the domain, which are not grid entities with tags, would be glad to know your suggestions for improvement and changes. This PR is aimed at resolving the issue [#357]. Given thatCellField
s can now be evaluated at a generic point in the domain, the method make use of this to calculate the integral of the composition ofDiracDelta
with aCellField
, and also works for generic functions compatible to evaluate at aGridap
Point
.So as to conform with
DiracDelta
struct, aDiscreteModel
is constructed with given set ofPoint
s to generateTriangulation
andMeasure
. If we are not required to conform with the existing framework, we could just store thePoint
s as a struct and evaluate theCellField
point-wise directly, but the above doesn't create much overhead. And probably the later is not generic enough to be extendable to line and surface forcing terms.The usage is same as earlier but the constructor is as follows:
[WIP] TO DO: support for line and surface loads! (like presented here #408 (comment)). I think the line load case is extendable in a straight forward manner using
CartesianDiscreteModel
(but may be needs to be done separately for each line - defined by a pair of points..)