https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
15template <bool is_ad>
22
23template <>
24class GenericNodalBC<true> : public ADNodalBC
25{
26public:
29
30protected:
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:22
static InputParameters validParams()
Definition ADNodalBC.C:26
virtual Real computeQpOffDiagJacobian(unsigned int jvar)=0
static InputParameters validParams()
GenericNodalBC(const InputParameters &parameters)
GenericNodalBC(const InputParameters &parameters)
static InputParameters validParams()
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
Base class for deriving any boundary condition that works at nodes.
Definition NodalBC.h:21
static InputParameters validParams()
Definition NodalBC.C:19