LCOV - code coverage report
Current view: top level - include/kernels/lagrangian - TotalLagrangianStressDivergenceCentrosymmetricSpherical.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 7 9 77.8 %
Date: 2025-07-25 05:00:39 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             : #pragma once
      11             : 
      12             : #include "TotalLagrangianStressDivergenceBase.h"
      13             : 
      14             : template <>
      15             : inline InputParameters
      16         180 : TotalLagrangianStressDivergenceBase<GradientOperatorCentrosymmetricSpherical>::validParams()
      17             : {
      18         180 :   InputParameters params = TotalLagrangianStressDivergenceBase::baseParams();
      19         180 :   params.addClassDescription("Enforce equilibrium with a total Lagrangian formulation in "
      20             :                              "centrosymmetric spherical coordinates.");
      21         180 :   return params;
      22           0 : }
      23             : 
      24             : template <>
      25             : void
      26          90 : TotalLagrangianStressDivergenceBase<GradientOperatorCentrosymmetricSpherical>::initialSetup()
      27             : {
      28          90 :   if (getBlockCoordSystem() != Moose::COORD_RSPHERICAL)
      29           0 :     mooseError("This kernel should only act in centrosymmetric spherical coordinates.");
      30          90 : }
      31             : 
      32             : typedef TotalLagrangianStressDivergenceBase<GradientOperatorCentrosymmetricSpherical>
      33             :     TotalLagrangianStressDivergenceCentrosymmetricSpherical;

Generated by: LCOV version 1.14