https://mooseframework.inl.gov
MFEMVectorDirichletBCBase.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 #ifdef MFEM_ENABLED
11 
13 
16 {
18  params.addParam<MFEMVectorCoefficientName>(
19  "vector_coefficient",
20  "0. 0. 0.",
21  "Vector coefficient specifying the values the variable takes on the boundary");
22  return params;
23 }
24 
26  : MFEMEssentialBC(parameters),
27  _vec_coef(getVectorCoefficient(getParam<MFEMVectorCoefficientName>("vector_coefficient")))
28 {
29 }
30 
31 #endif
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MFEMVectorDirichletBCBase(const InputParameters &parameters)
static InputParameters validParams()
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...