LCOV - code coverage report
Current view: top level - include/functormaterials - FunctorIsotropicEffectiveFluidThermalConductivity.h (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 5 7 71.4 %
Date: 2025-08-14 10:14:56 Functions: 1 7 14.3 %
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 "FunctorEffectiveFluidThermalConductivity.h"
      13             : #include "NS.h"
      14             : 
      15             : /**
      16             :  * Material providing an isotropic effective fluid thermal conductivity.
      17             :  */
      18             : template <typename Derived>
      19             : class FunctorIsotropicEffectiveFluidThermalConductivity
      20             :   : public FunctorEffectiveFluidThermalConductivity
      21             : {
      22             : public:
      23             :   FunctorIsotropicEffectiveFluidThermalConductivity(const InputParameters & parameters);
      24             : 
      25             :   static InputParameters validParams();
      26             : };
      27             : 
      28             : template <typename Derived>
      29             : InputParameters
      30             : FunctorIsotropicEffectiveFluidThermalConductivity<Derived>::validParams()
      31             : {
      32          41 :   return FunctorEffectiveFluidThermalConductivity::validParams();
      33             : }
      34             : 
      35             : template <typename Derived>
      36          22 : FunctorIsotropicEffectiveFluidThermalConductivity<
      37             :     Derived>::FunctorIsotropicEffectiveFluidThermalConductivity(const InputParameters & parameters)
      38          22 :   : FunctorEffectiveFluidThermalConductivity(parameters)
      39             : {
      40          66 :   addFunctorProperty<ADRealVectorValue>(
      41             :       NS::kappa,
      42           0 :       [this](const auto & r, const auto & t) -> ADRealVectorValue
      43             :       {
      44             :         RealVectorValue multipliers(1.0, 1.0, 1.0);
      45           0 :         return multipliers * static_cast<Derived *>(this)->computeEffectiveConductivity(r, t);
      46             :       });
      47          44 : }

Generated by: LCOV version 1.14