https://mooseframework.inl.gov
ADDirichletBCBaseTempl.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 "ADDirichletBCBase.h"
13 #include "ADNodalBC.h"
14 
18 template <typename T>
19 class ADDirichletBCBaseTempl : public ADNodalBCTempl<T, ADDirichletBCBase>
20 {
21 public:
23 
27  virtual void computeValue(NumericVector<Number> & current_solution) override;
28 
30 
31 protected:
32  virtual typename Moose::ADType<T>::type computeQpResidual() override;
33 
37  virtual typename Moose::ADType<T>::type computeQpValue() = 0;
38 
45 };
virtual void computeValue(NumericVector< Number > &current_solution) override
Method to preset the nodal value if applicable.
Base class for automatic differentiation Dirichlet BCs.
Base class for deriving any automatic differentiation boundary condition of a integrated type...
Definition: ADNodalBC.h:21
virtual Moose::ADType< T >::type computeQpResidual() override
Compute this NodalBC&#39;s contribution to the residual at the current quadrature point.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
ADDirichletBCBaseTempl(const InputParameters &parameters)
virtual Moose::ADType< T >::type computeQpValue()=0
Compute the value of the Dirichlet BC at the current quadrature point.
static InputParameters validParams()
const InputParameters & parameters() const
Get the parameters of the object.