Skip to content

Commit

Permalink
Address Guillaume review
Browse files Browse the repository at this point in the history
- Fix typos
- Remove unnecessary include
- Better class descriptions
- Remove unnecessary design specification

Co-authored-by: Guillaume Giudicelli <guillaume.giudicelli@gmail.com>
  • Loading branch information
2 people authored and oanaoana committed Oct 19, 2023
1 parent ff1fb60 commit 30a14e6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `ADConservativeAdvection` kernel implements the same advection term as
propagation of derivatives for automatic differentiation
- No upwinding option is currently implemented. In that vein this object may be
best used within a discontinuous Galerkin scheme with [ADDGConvection.md].
- A [!param](/Kernels/ADConservativeAdvection/advected_quantity) paramter is
- A [!param](/Kernels/ADConservativeAdvection/advected_quantity) parameter is
available which allows for advecting different quantities than the `variable`
this object is acting upon

Expand Down
4 changes: 3 additions & 1 deletion framework/src/bcs/ADConservativeAdvectionBC.C
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ ADConservativeAdvectionBC::validParams()
"to be determined implicitly (e.g. we don't have a Dirichlet condition)");
params.addParam<FunctionName>("velocity_function",
"Function describing the values of velocity on the boundary.");
params.addClassDescription("DG for convection");
params.addClassDescription(
"Boundary condition for advection when it is integrated by parts. Supports Dirichlet "
"(inlet-like) and implicit (outlet-like) conditions.");
params.addParam<MaterialPropertyName>("advected_quantity",
"An optional material property to be advected. If not "
"supplied, then the variable will be used.");
Expand Down
3 changes: 2 additions & 1 deletion framework/src/dgkernels/ADDGConvection.C
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ ADDGConvection::validParams()
{
InputParameters params = ADDGKernel::validParams();
params.addRequiredParam<MaterialPropertyName>("velocity", "Velocity vector");
params.addClassDescription("DG for convection");
params.addClassDescription(
"Adds internal face advection flux contributions for discontinuous Galerkin discretizations");
params.addParam<MaterialPropertyName>("advected_quantity",
"An optional material property to be advected. If not "
"supplied, then the variable will be used.");
Expand Down
1 change: 0 additions & 1 deletion framework/src/kernels/ADConservativeAdvection.C
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "ADConservativeAdvection.h"
#include "SystemBase.h"

registerMooseObject("MooseApp", ADConservativeAdvection);

Expand Down
2 changes: 1 addition & 1 deletion test/tests/dgkernels/passive-scalar-channel-flow/tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Tests]
issues = '#24055'
design = 'ADConservativeAdvection.md ADDGConvection.md ADConservativeAdvectionBC.md MatDiffusion.md DGDiffusion.md DGFunctionDiffusionDirichletBC.md VectorFromVariableComponentsMaterial.md'
design = 'ADConservativeAdvection.md ADDGConvection.md ADConservativeAdvectionBC.md MatDiffusion.md DGDiffusion.md DGFunctionDiffusionDirichletBC.md'
[test]
type = Exodiff
input = test.i
Expand Down

0 comments on commit 30a14e6

Please sign in to comment.