https://mooseframework.inl.gov
ADDirichletBCBase.C
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 #include "ADDirichletBCBase.h"
11 
14 {
16  params.addParam<bool>(
17  "preset", true, "Whether or not to preset the BC (apply the value before the solve begins).");
18  return params;
19 }
20 
22  : NodalBCBase(parameters), _preset(getParam<bool>("preset"))
23 {
24 }
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: NodalBCBase.h:26
ADDirichletBCBase(const InputParameters &parameters)
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
static InputParameters validParams()
Definition: NodalBCBase.C:13