LCOV - code coverage report
Current view: top level - src/materials - ComputeCosseratStressBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose tensor_mechanics: d6b47a Lines: 15 16 93.8 %
Date: 2024-02-27 11:53:14 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://www.mooseframework.org
       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 "ComputeCosseratStressBase.h"
      11             : 
      12             : InputParameters
      13         220 : ComputeCosseratStressBase::validParams()
      14             : {
      15         220 :   InputParameters params = ComputeStressBase::validParams();
      16         220 :   params.addClassDescription("Compute stress and couple stress in the Cosserat situation");
      17         220 :   return params;
      18           0 : }
      19             : 
      20         165 : ComputeCosseratStressBase::ComputeCosseratStressBase(const InputParameters & parameters)
      21             :   : ComputeStressBase(parameters),
      22         165 :     _curvature(getMaterialPropertyByName<RankTwoTensor>("curvature")),
      23         165 :     _elastic_flexural_rigidity_tensor(
      24         165 :         getMaterialPropertyByName<RankFourTensor>("elastic_flexural_rigidity_tensor")),
      25         165 :     _stress_couple(declareProperty<RankTwoTensor>("couple_stress")),
      26         330 :     _Jacobian_mult_couple(declareProperty<RankFourTensor>("couple_Jacobian_mult"))
      27             : {
      28         165 : }
      29             : 
      30             : void
      31         352 : ComputeCosseratStressBase::initQpStatefulProperties()
      32             : {
      33         352 :   ComputeStressBase::initQpStatefulProperties();
      34         352 :   _stress_couple[_qp].zero();
      35         352 : }

Generated by: LCOV version 1.14