LCOV - code coverage report
Current view: top level - src/fvbcs - FVPostprocessorDirichletBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 10 11 90.9 %
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 "FVPostprocessorDirichletBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", FVPostprocessorDirichletBC);
      13             : 
      14             : InputParameters
      15       14290 : FVPostprocessorDirichletBC::validParams()
      16             : {
      17       14290 :   InputParameters params = FVDirichletBCBase::validParams();
      18       14290 :   params.addClassDescription("Defines a Dirichlet boundary condition for finite volume method.");
      19       14290 :   params.addRequiredParam<PostprocessorName>(
      20             :       "postprocessor", "The postprocessor to set the value to on the boundary.");
      21       14290 :   return params;
      22           0 : }
      23             : 
      24          13 : FVPostprocessorDirichletBC::FVPostprocessorDirichletBC(const InputParameters & parameters)
      25          13 :   : FVDirichletBCBase(parameters), _postprocessor_value(getPostprocessorValue("postprocessor"))
      26             : {
      27          13 : }
      28             : 
      29             : ADReal
      30          24 : FVPostprocessorDirichletBC::boundaryValue(const FaceInfo & /*fi*/,
      31             :                                           const Moose::StateArg & /*state*/) const
      32             : {
      33          24 :   return _postprocessor_value;
      34             : }

Generated by: LCOV version 1.14