-
Notifications
You must be signed in to change notification settings - Fork 24
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
Dirichlet BC attempt 3 #609
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## fenicsx #609 +/- ##
===========================================
+ Coverage 95.89% 96.65% +0.76%
===========================================
Files 10 12 +2
Lines 268 359 +91
===========================================
+ Hits 257 347 +90
- Misses 11 12 +1
☔ View full report in Codecov by Sentry. |
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.
Just some minor refactoring
@jhdark I addressed your comments. How about I open an issue to track progress on "only update the BC when needed" and we can merge this? |
Yep sounds good |
Proposed changes
Attempt 3 at #602
Based on @jorgensd 's response on the fenics Discourse, I tried reimplementing the
DirichletBC
with time as a constant.Users can give values as functions of x, t, and T.
Example:
Building from this fairly generic
DirichletBC
class, we can implement subclasses likeSievertsBC
:Which is equivalent to:
TODO:
Types of changes
What types of changes does your code introduce to FESTIM?
Checklist
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...