https://mooseframework.inl.gov
Loading...
Searching...
No Matches
VectorDirichletBC.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 "VectorDirichletBC.h"
11
14 LagrangeVecDirichletBC,
15 "05/01/2019 00:01",
17
20{
22 params.addRequiredParam<RealVectorValue>("values",
23 "The values the components must take on the boundary");
24 params.declareControllable("values");
26 "Imposes the essential boundary condition $\\vec{u}=\\vec{g}$, where $\\vec{g}$ "
27 "are constant, controllable values.");
28 return params;
29}
30
32 : VectorNodalBC(parameters), _values(getParam<RealVectorValue>("values"))
33{
34}
35
36RealVectorValue
registerMooseObject("MooseApp", VectorDirichletBC)
registerMooseObjectRenamed("MooseApp", LagrangeVecDirichletBC, "05/01/2019 00:01", VectorDirichletBC)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void declareControllable(const std::string &name, std::set< ExecFlagType > execute_flags={})
Declare the given parameters as controllable.
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
Boundary condition of a Dirichlet type.
virtual RealVectorValue computeQpResidual() override
VectorDirichletBC(const InputParameters &parameters)
const RealVectorValue & _values
The value for this BC.
static InputParameters validParams()
Base class for deriving any boundary condition that works at nodes on vector variables.
static InputParameters validParams()
const RealVectorValue & _u
Value of the unknown variable this BC is acting on.