https://mooseframework.inl.gov
Loading...
Searching...
No Matches
RobinBC.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "GenericIntegratedBC.h"
13
14template <bool is_ad>
15class RobinBCTempl : public GenericIntegratedBC<is_ad>
16{
17public:
19
21
22protected:
23 virtual GenericReal<is_ad> computeQpResidual() override;
24 virtual Real computeQpJacobian() override;
25
27 const Real & _value;
29 const Real _coef;
30
32};
33
Moose::GenericType< Real, is_ad > GenericReal
Definition MooseTypes.h:702
RobinBCTempl< false > RobinBC
Definition RobinBC.h:34
RobinBCTempl< true > ADRobinBC
Definition RobinBC.h:35
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
const Real & _value
Value to be applied to the Robin boundary condition.
Definition RobinBC.h:27
usingGenericIntegratedBCMembers
Definition RobinBC.h:31
virtual GenericReal< is_ad > computeQpResidual() override
Method for computing the residual at quadrature points.
Definition RobinBC.C:42
const Real _coef
Coefficient to be applied to the Robin boundary condition.
Definition RobinBC.h:29
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
Definition RobinBC.C:49
static InputParameters validParams()
Definition RobinBC.C:17