LCOV - code coverage report
Current view: top level - src/bcs - FXValuePenaltyBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose functional_expansion_tools: #31405 (292dce) with base fef103 Lines: 7 10 70.0 %
Date: 2025-09-04 07:53:29 Functions: 2 2 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 "FXValuePenaltyBC.h"
      11             : #include "FunctionSeries.h"
      12             : 
      13             : registerMooseObject("FunctionalExpansionToolsApp", FXValuePenaltyBC);
      14             : 
      15             : InputParameters
      16           2 : FXValuePenaltyBC::validParams()
      17             : {
      18           2 :   InputParameters params = FunctionPenaltyDirichletBC::validParams();
      19             : 
      20           2 :   params.addClassDescription(
      21             :       "Sets a value boundary condition, evaluated using a FunctionSeries instance. This does not "
      22             :       "fix the value, but rather 'strongly encourages'  value agreement by penalizing the "
      23             :       "differences through contributions to  the residual.");
      24             : 
      25           2 :   return params;
      26           0 : }
      27             : 
      28           2 : FXValuePenaltyBC::FXValuePenaltyBC(const InputParameters & parameters)
      29           2 :   : FunctionPenaltyDirichletBC(parameters)
      30             : {
      31           2 :   FunctionSeries & fe_basis = FunctionSeries::checkAndConvertFunction(_func, getBase(), name());
      32             : 
      33           0 :   fe_basis.useCache(true);
      34           0 : }

Generated by: LCOV version 1.14