LCOV - code coverage report
Current view: top level - src/bcs - INSTemperatureNoBCBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 0 15 0.0 %
Date: 2025-08-14 10:14:56 Functions: 0 5 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             : #include "INSTemperatureNoBCBC.h"
      11             : 
      12             : registerMooseObject("NavierStokesApp", INSTemperatureNoBCBC);
      13             : 
      14             : InputParameters
      15           0 : INSTemperatureNoBCBC::validParams()
      16             : {
      17           0 :   InputParameters params = IntegratedBC::validParams();
      18             : 
      19           0 :   params.addClassDescription("This class implements the 'No BC' boundary condition discussed by "
      20             :                              "Griffiths, Papanastiou, and others.");
      21             :   // Required parameters
      22           0 :   params.addParam<MaterialPropertyName>("k_name", "k", "thermal conductivity_name");
      23             : 
      24           0 :   return params;
      25           0 : }
      26             : 
      27           0 : INSTemperatureNoBCBC::INSTemperatureNoBCBC(const InputParameters & parameters)
      28             :   : IntegratedBC(parameters),
      29             :     // Material property
      30           0 :     _k(getMaterialProperty<Real>("k_name"))
      31             : {
      32           0 : }
      33             : 
      34             : Real
      35           0 : INSTemperatureNoBCBC::computeQpResidual()
      36             : {
      37             :   // k * (grad_T.n) * test
      38           0 :   return _k[_qp] * _grad_u[_qp] * _normals[_qp] * _test[_i][_qp];
      39             : }
      40             : 
      41             : Real
      42           0 : INSTemperatureNoBCBC::computeQpJacobian()
      43             : {
      44           0 :   return _k[_qp] * (_grad_phi[_j][_qp] * _normals[_qp]) * _test[_i][_qp];
      45             : }
      46             : 
      47             : Real
      48           0 : INSTemperatureNoBCBC::computeQpOffDiagJacobian(unsigned /*jvar*/)
      49             : {
      50             :   // off-diagonal derivatives are all zero.
      51           0 :   return 0.;
      52             : }

Generated by: LCOV version 1.14