-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add support for function-based velocity advection on constant and higher order discontinuous variables #12
Conversation
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! I only had some questions on the documentation and the variable names. I have noticed when looking at MOOSE source code it uses really short variable names like _t
, why is that?
@@ -0,0 +1,23 @@ | |||
# PostprocessorVelocityFunctionInflowBC | |||
|
|||
!alert construction title=Undocumented Class |
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.
Is documentation going to be added in a future PR?
@@ -0,0 +1,23 @@ | |||
# VelocityFunctionConservativeAdvection | |||
|
|||
!alert construction title=Undocumented Class |
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.
Same here
Real | ||
PostprocessorPenaltyDirichletBC::computeQpResidual() | ||
{ | ||
return _p * _test[_i][_qp] * (-_pp + _u[_qp]); |
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.
These variable names don't seem great to me, how come something longer isn't used?
@LukeSeifert Thanks for the quick review! I added documentation to the markdown files and I renamed the variables to Feel free to merge if you approve! |
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!
@LukeSeifert @smpark7 I have no doubt that we might have been a bit more lax in the past. 😄 The decision on |
Description
PostprocessorVelocityFunctionInflowBC
andVelocityFunctionConservativeAdvection
are similar toPostprocessorInflowBC
andConservativeAdvection
, but with function-based velocity profiles.PostprocessorPenaltyDirichletBC
is similar toPenaltyDirichletBC
, but with a postprocessor to set the boundary value.PostprocessorVelocityFunctionInflowBC
is required to fix arfc/moltres#183.VelocityFunctionConservativeAdvection
andPostprocessorPenaltyDirichletBC
are required to fix arfc/moltres#265.Changes
PostprocessorVelocityFunctionInflowBC
VelocityFunctionConservativeAdvection
PostprocessorPenaltyDirichletBC