Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions doc/content/source/bcs/OutflowRobinBC.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OutflowRobinBC

!alert construction title=Undocumented Class
The OutflowRobinBC has not been documented. The content listed below should be used as a starting point for
documenting the class, which includes the typical automatic documentation associated with a
MooseObject; however, what is contained is ultimately determined by what is necessary to make the
documentation clear for users.

!syntax description /BCs/OutflowRobinBC

## Overview

!! Replace these lines with information regarding the OutflowRobinBC object.

## Example Input File Syntax

!! Describe and include an example of how to use the OutflowRobinBC object.

!syntax parameters /BCs/OutflowRobinBC

!syntax inputs /BCs/OutflowRobinBC

!syntax children /BCs/OutflowRobinBC
23 changes: 0 additions & 23 deletions doc/content/source/bcs/RobinBC.md

This file was deleted.

4 changes: 2 additions & 2 deletions include/bcs/RobinBC.h → include/bcs/OutflowRobinBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#include "IntegratedBC.h"

class RobinBC : public IntegratedBC
class OutflowRobinBC : public IntegratedBC
{
public:
RobinBC(const InputParameters & parameters);
OutflowRobinBC(const InputParameters & parameters);

static InputParameters validParams();

Expand Down
12 changes: 6 additions & 6 deletions src/bcs/RobinBC.C → src/bcs/OutflowRobinBC.C
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@

#include "RobinBC.h"
#include "OutflowRobinBC.h"

registerMooseObject("SquirrelApp", RobinBC);
registerMooseObject("SquirrelApp", OutflowRobinBC);

InputParameters
RobinBC::validParams()
OutflowRobinBC::validParams()
{
InputParameters params = IntegratedBC::validParams();
params.addParam<Real>("velocity", 1, "The 1D velocity.");
return params;
}

RobinBC::RobinBC(const InputParameters & parameters)
OutflowRobinBC::OutflowRobinBC(const InputParameters & parameters)
: IntegratedBC(parameters), _velocity(getParam<Real>("velocity"))
{
}

Real
RobinBC::computeQpResidual()
OutflowRobinBC::computeQpResidual()
{
return _test[_i][_qp] * (1. + _velocity) * _u[_qp];
// return _test[_i][_qp] * -2. * _grad_u[_qp] * _normals[_qp];
}

Real
RobinBC::computeQpJacobian()
OutflowRobinBC::computeQpJacobian()
{
return _test[_i][_qp] * (1. + _velocity) * _phi[_j][_qp];
// return _test[_i][_qp] * -2. * _grad_phi[_j][_qp] * _normals[_qp];
Expand Down
4 changes: 2 additions & 2 deletions tests/bcs/robin/robin.i → tests/bcs/outflow_robin/robin.i
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Advection-diffusion of u down a channel with a Dirichlet inlet and an open
# outlet. The RobinBC lets u leave at a rate proportional to its local value,
# outlet. The OutflowRobinBC lets u leave at a rate proportional to its local value,
# so the profile decays toward the outlet instead of staying flat.

v = 1
Expand Down Expand Up @@ -39,7 +39,7 @@ v = 1
value = 1
[]
[outlet]
type = RobinBC
type = OutflowRobinBC
variable = u
boundary = right
velocity = ${v}
Expand Down
File renamed without changes.
Loading