https://mooseframework.inl.gov
ExplicitDirichletBC.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 "ExplicitDirichletBC.h"
11 
12 registerMooseObject("SolidMechanicsApp", ExplicitDirichletBC);
13 registerMooseObjectRenamed("SolidMechanicsApp",
14  DirectDirichletBC,
15  "10/14/2025 00:00",
17 
20 {
22  params.addRequiredParam<Real>("value", "Value of the BC");
23  params.declareControllable("value");
24  params.addClassDescription("Imposes the essential boundary condition $u=g$, where $g$ "
25  "is a constant, controllable value.");
26  return params;
27 }
28 
30  : ExplicitDirichletBCBase(parameters), _value(getParam<Real>("value"))
31 {
32 }
33 
34 Real
36 {
37  return _value;
38 }
virtual Real computeQpValue() override
Compute the value of the DirichletBC at the current quadrature point.
ExplicitDirichletBC(const InputParameters &parameters)
static InputParameters validParams()
registerMooseObject("SolidMechanicsApp", ExplicitDirichletBC)
Base boundary condition of a direct Dirichlet type.
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
Boundary condition of a Direct Dirichlet type For use with direct central difference time integrator...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real & _value
The value for this BC.
void addClassDescription(const std::string &doc_string)
registerMooseObjectRenamed("SolidMechanicsApp", DirectDirichletBC, "10/14/2025 00:00", ExplicitDirichletBC)
void declareControllable(const std::string &name, std::set< ExecFlagType > execute_flags={})