LCOV - code coverage report
Current view: top level - include/scalarkernels - NodalEqualValueConstraint.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 0 2 0.0 %
Date: 2025-07-17 01:28:37 Functions: 0 2 0.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             : #pragma once
      11             : 
      12             : #include "NodalScalarKernel.h"
      13             : 
      14             : /**
      15             :  * Constraint to enforce equal values (in 1D)
      16             :  *
      17             :  * This has to take 2 nodes and will enforce equality of values.
      18             :  * The form of the constraint is: r = value[0] - value[1] = 0.
      19             :  * This dictates the sign of the 'vg' parameter in the OneDEqualValueConstraintBC
      20             :  * class. It has a positive sign on the first node and negative on the other one.
      21             :  */
      22             : class NodalEqualValueConstraint : public NodalScalarKernel
      23             : {
      24             : public:
      25             :   static InputParameters validParams();
      26             : 
      27             :   NodalEqualValueConstraint(const InputParameters & parameters);
      28             : 
      29             :   virtual void computeResidual() override;
      30             :   virtual void computeJacobian() override;
      31             : 
      32             : protected:
      33           0 :   virtual Real computeQpResidual() override { mooseError("Unused"); }
      34           0 :   virtual Real computeQpJacobian() override { mooseError("Unused"); }
      35             :   const std::vector<unsigned int> _val_number;
      36             :   const std::vector<const VariableValue *> _value;
      37             : };

Generated by: LCOV version 1.14