-
Notifications
You must be signed in to change notification settings - Fork 60
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
Refactor vof curvature l2 projection #1336
Conversation
3ad07fe
to
194618c
Compare
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.
Last few changes, quasi nothing. Very good work.
@@ -11,15 +11,19 @@ | |||
|
|||
using namespace dealii; | |||
|
|||
|
|||
/** | |||
* @brief IDs associated to the different subequations solved in Lethe. | |||
*/ | |||
enum VOFSubequationsID : unsigned int |
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.
can you make this an enum class or it needs to be an enum?
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.
No there is no particular reason to leave it as an enum, I've switched it to an enum class :)
subequation_string = "VOF phase fraction gradient L2 projection"; | ||
else if (subequation_id == VOFSubequationsID::curvature_projection) | ||
subequation_string = "VOF curvature L2 projection"; |
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.
what is the subequation string used for?
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.
e389fda
to
13ef98a
Compare
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.
Looks good!
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.
Not a lot of comments! I like this new interface a lot!
Description
Following PR #1318, this one refactors the curvature projection to be assembled and solved through the VOF subequations interface. Assembly of the matrix and right-hand side for both VOFSubequations (phase fraction gradient and curvature projection) are now done in the same loop without the WorkStream method, as they are pretty simple to assemble.
Testing
The unit test dedicated to the interface has been updated.
Visual inspection of data was done with the rising bubble case using paraview.
Checklist (will be removed when merged)
See this page for more information about the pull request process.
Code related list:
Pull request related list: