https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13registerMooseObjectRenamed("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
34Real
registerMooseObjectRenamed("SolidMechanicsApp", DirectDirichletBC, "10/14/2025 00:00", ExplicitDirichletBC)
registerMooseObject("SolidMechanicsApp", ExplicitDirichletBC)
Base boundary condition of a direct Dirichlet type.
static InputParameters validParams()
Boundary condition of a Direct Dirichlet type For use with direct central difference time integrator.
const Real & _value
The value for this BC.
static InputParameters validParams()
ExplicitDirichletBC(const InputParameters &parameters)
virtual Real computeQpValue() override
Compute the value of the DirichletBC at the current quadrature point.
void declareControllable(const std::string &name, std::set< ExecFlagType > execute_flags={})
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)