https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ExplicitFunctionDirichletBC.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
11#include "Function.h"
12
14registerMooseObjectRenamed("SolidMechanicsApp",
15 DirectFunctionDirichletBC,
16 "10/14/2025 00:00",
18
21{
23 params.addRequiredParam<FunctionName>("function", "The forcing function.");
25 "Imposes the essential boundary condition $u=g(t,\\vec{x})$, where $g$ "
26 "is a (possibly) time and space-dependent MOOSE Function.");
27 return params;
28}
29
31 : ExplicitDirichletBCBase(parameters), _func(getFunction("function"))
32{
33}
34
35Real
registerMooseObject("SolidMechanicsApp", ExplicitFunctionDirichletBC)
registerMooseObjectRenamed("SolidMechanicsApp", DirectFunctionDirichletBC, "10/14/2025 00:00", ExplicitFunctionDirichletBC)
Base boundary condition of a direct Dirichlet type.
static InputParameters validParams()
Defines a boundary condition that forces the value to be a user specified function at the boundary.
virtual Real computeQpValue() override
Compute the value of the DirichletBC at the current quadrature point.
const Function & _func
The function being used for evaluation.
ExplicitFunctionDirichletBC(const InputParameters &parameters)
virtual Real value(Real t, const Point &p) const
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
const Node *const & _current_node
Real & _t