LCOV - code coverage report
Current view: top level - src/bcs - FunctionDirichletBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 10 11 90.9 %
Date: 2025-08-08 20:01:16 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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 "FunctionDirichletBC.h"
      11             : #include "Function.h"
      12             : 
      13             : registerMooseObject("MooseApp", FunctionDirichletBC);
      14             : 
      15             : InputParameters
      16       23887 : FunctionDirichletBC::validParams()
      17             : {
      18       23887 :   InputParameters params = DirichletBCBase::validParams();
      19       23887 :   params.addRequiredParam<FunctionName>("function", "The forcing function.");
      20       23887 :   params.addClassDescription(
      21             :       "Imposes the essential boundary condition $u=g(t,\\vec{x})$, where $g$ "
      22             :       "is a (possibly) time and space-dependent MOOSE Function.");
      23       23887 :   return params;
      24           0 : }
      25             : 
      26        4779 : FunctionDirichletBC::FunctionDirichletBC(const InputParameters & parameters)
      27        4779 :   : DirichletBCBase(parameters), _func(getFunction("function"))
      28             : {
      29        4779 : }
      30             : 
      31             : Real
      32    17380129 : FunctionDirichletBC::computeQpValue()
      33             : {
      34    17380129 :   return _func.value(_t, *_current_node);
      35             : }

Generated by: LCOV version 1.14