LCOV - code coverage report
Current view: top level - src/bcs - VectorDirichletBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 12 91.7 %
Date: 2025-07-17 01:28:37 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 "VectorDirichletBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", VectorDirichletBC);
      13             : registerMooseObjectRenamed("MooseApp",
      14             :                            LagrangeVecDirichletBC,
      15             :                            "05/01/2019 00:01",
      16             :                            VectorDirichletBC);
      17             : 
      18             : InputParameters
      19       29082 : VectorDirichletBC::validParams()
      20             : {
      21       29082 :   InputParameters params = VectorNodalBC::validParams();
      22       29082 :   params.addRequiredParam<RealVectorValue>("values",
      23             :                                            "The values the components must take on the boundary");
      24       29082 :   params.declareControllable("values");
      25       29082 :   params.addClassDescription(
      26             :       "Imposes the essential boundary condition $\\vec{u}=\\vec{g}$, where $\\vec{g}$ "
      27             :       "are constant, controllable values.");
      28       29082 :   return params;
      29           0 : }
      30             : 
      31         276 : VectorDirichletBC::VectorDirichletBC(const InputParameters & parameters)
      32         276 :   : VectorNodalBC(parameters), _values(getParam<RealVectorValue>("values"))
      33             : {
      34         276 : }
      35             : 
      36             : RealVectorValue
      37      112446 : VectorDirichletBC::computeQpResidual()
      38             : {
      39      112446 :   return _u - _values;
      40             : }

Generated by: LCOV version 1.14