LCOV - code coverage report
Current view: top level - src/meshgenerators - SurfaceDelaunayGeneratorBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31405 (292dce) with base fef103 Lines: 22 23 95.7 %
Date: 2025-09-04 07:52:05 Functions: 2 2 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             : #include "SurfaceDelaunayGeneratorBase.h"
      11             : 
      12             : InputParameters
      13       29734 : SurfaceDelaunayGeneratorBase::validParams()
      14             : {
      15       29734 :   InputParameters params = MeshGenerator::validParams();
      16             : 
      17       89202 :   params.addParam<bool>("use_auto_area_func",
      18       59468 :                         false,
      19             :                         "Use the automatic area function for the triangle meshing region.");
      20       89202 :   params.addParam<Real>(
      21             :       "auto_area_func_default_size",
      22       59468 :       0,
      23             :       "Background size for automatic area function, or 0 to use non background size");
      24       89202 :   params.addParam<Real>("auto_area_func_default_size_dist",
      25       59468 :                         -1.0,
      26             :                         "Effective distance of background size for automatic area "
      27             :                         "function, or negative to use non background size");
      28       89202 :   params.addParam<unsigned int>("auto_area_function_num_points",
      29       59468 :                                 10,
      30             :                                 "Maximum number of nearest points used for the inverse distance "
      31             :                                 "interpolation algorithm for automatic area function calculation.");
      32      148670 :   params.addRangeCheckedParam<Real>(
      33             :       "auto_area_function_power",
      34       59468 :       1.0,
      35             :       "auto_area_function_power>0",
      36             :       "Polynomial power of the inverse distance interpolation algorithm for automatic area "
      37             :       "function calculation.");
      38             : 
      39       59468 :   params.addClassDescription("Base class for Delaunay mesh generators applied to a surface.");
      40             : 
      41       89202 :   params.addParamNamesToGroup(
      42             :       "use_auto_area_func auto_area_func_default_size auto_area_func_default_size_dist "
      43             :       "auto_area_function_num_points auto_area_function_power",
      44             :       "Automatic triangle meshing area control");
      45             : 
      46       29734 :   return params;
      47           0 : }
      48             : 
      49         608 : SurfaceDelaunayGeneratorBase::SurfaceDelaunayGeneratorBase(const InputParameters & parameters)
      50             :   : MeshGenerator(parameters),
      51         608 :     _use_auto_area_func(getParam<bool>("use_auto_area_func")),
      52        1216 :     _auto_area_func_default_size(getParam<Real>("auto_area_func_default_size")),
      53        1216 :     _auto_area_func_default_size_dist(getParam<Real>("auto_area_func_default_size_dist")),
      54        1216 :     _auto_area_function_num_points(getParam<unsigned int>("auto_area_function_num_points")),
      55        1824 :     _auto_area_function_power(getParam<Real>("auto_area_function_power"))
      56             : {
      57         608 : }

Generated by: LCOV version 1.14