LCOV - code coverage report
Current view: top level - include/functormaterials - FunctorErgunDragCoefficients.h (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 2 2 100.0 %
Date: 2025-08-14 10:14:56 Functions: 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 "FunctorPebbleBedDragCoefficients.h"
      13             : 
      14             : /**
      15             :  *  Material providing the interphase drag coefficient according to the correlation
      16             :  *  provided by \cite ergun.
      17             :  *  NOTE: Do not inherit this class, inherit FunctorPebbleBedDragCoefficients or turn this
      18             :  *       into a template before inheriting, for the sake of the CRTP static polymorphism
      19             :  */
      20             : class FunctorErgunDragCoefficients final
      21             :   : public FunctorPebbleBedDragCoefficients<FunctorErgunDragCoefficients>
      22             : {
      23             :   friend class FunctorIsotropicDragCoefficients<FunctorErgunDragCoefficients>;
      24             : 
      25             : public:
      26             :   FunctorErgunDragCoefficients(const InputParameters & parameters);
      27             : 
      28             :   static InputParameters validParams();
      29             : 
      30             : protected:
      31             :   template <typename Space, typename Time>
      32             :   ADReal computeDarcyCoefficient(const Space & r, const Time & t) const;
      33             : 
      34             :   template <typename Space, typename Time>
      35             :   ADReal computeForchheimerCoefficient(const Space & r, const Time & t) const;
      36             : };
      37             : 
      38             : template <typename Space, typename Time>
      39             : ADReal
      40             : FunctorErgunDragCoefficients::computeDarcyCoefficient(const Space &, const Time &) const
      41             : {
      42      644000 :   return 150.0;
      43             : }
      44             : 
      45             : template <typename Space, typename Time>
      46             : ADReal
      47             : FunctorErgunDragCoefficients::computeForchheimerCoefficient(const Space &, const Time &) const
      48             : {
      49      644000 :   return 1.75;
      50             : }

Generated by: LCOV version 1.14