https://mooseframework.inl.gov
GenericNodalBC.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 "NodalBC.h"
13 #include "ADNodalBC.h"
14 
15 template <bool is_ad>
16 class GenericNodalBC : public NodalBC
17 {
18 public:
21 };
22 
23 template <>
24 class GenericNodalBC<true> : public ADNodalBC
25 {
26 public:
29 
30 protected:
31  virtual Real computeQpOffDiagJacobian(unsigned int jvar) = 0;
32 };
33 
34 #define usingGenericNodalBCMembers \
35  usingPostprocessorInterfaceMembers; \
36  usingMooseObjectMembers; \
37  usingTransientInterfaceMembers; \
38  usingTaggingInterfaceMembers; \
39  using GenericNodalBC<is_ad>::_qp; \
40  using GenericNodalBC<is_ad>::coupledValue; \
41  using GenericNodalBC<is_ad>::adCoupledValue; \
42  using GenericNodalBC<is_ad>::_u; \
43  using GenericNodalBC<is_ad>::_var; \
44  using GenericNodalBC<is_ad>::getVar; \
45  using Coupleable::coupled; \
46  using Coupleable::coupledComponents
Base class for deriving any automatic differentiation boundary condition of a integrated type...
Definition: ADNodalBC.h:21
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
Base class for deriving any boundary condition that works at nodes.
Definition: NodalBC.h:20
GenericNodalBC(const InputParameters &parameters)
static InputParameters validParams()
Definition: ADNodalBC.C:26
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
This is the virtual that derived classes should override for computing an off-diagonal jacobian compo...
Definition: NodalBC.C:153
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
static InputParameters validParams()
static InputParameters validParams()
Definition: NodalBC.C:19
GenericNodalBC(const InputParameters &parameters)