LCOV - code coverage report
Current view: top level - src/auxkernels - NSVelocityAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 12 13 92.3 %
Date: 2025-08-14 10:14:56 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             : // Navier-Stokes includes
      11             : #include "NSVelocityAux.h"
      12             : #include "NS.h"
      13             : 
      14             : registerMooseObject("NavierStokesApp", NSVelocityAux);
      15             : 
      16             : InputParameters
      17          82 : NSVelocityAux::validParams()
      18             : {
      19          82 :   InputParameters params = AuxKernel::validParams();
      20          82 :   params.addClassDescription("Velocity auxiliary value.");
      21          82 :   params.addRequiredCoupledVar(NS::density, "Density (conserved form)");
      22         164 :   params.addRequiredCoupledVar("momentum", "Momentum (conserved form)");
      23         164 :   params.addParam<UserObjectName>(
      24             :       "fluid_properties", "", "The name of the user object for fluid properties");
      25          82 :   return params;
      26           0 : }
      27             : 
      28          44 : NSVelocityAux::NSVelocityAux(const InputParameters & parameters)
      29          44 :   : AuxKernel(parameters), _rho(coupledValue(NS::density)), _momentum(coupledValue("momentum"))
      30             : {
      31          44 : }
      32             : 
      33             : Real
      34      844200 : NSVelocityAux::computeValue()
      35             : {
      36      844200 :   return _momentum[_qp] / _rho[_qp];
      37             : }

Generated by: LCOV version 1.14