LCOV - code coverage report
Current view: top level - src/materials - CompositeEigenstrain.C (source / functions) Hit Total Coverage
Test: idaholab/moose tensor_mechanics: d6b47a Lines: 11 12 91.7 %
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 "CompositeEigenstrain.h"
      11             : 
      12             : registerMooseObject("TensorMechanicsApp", CompositeEigenstrain);
      13             : 
      14             : InputParameters
      15          12 : CompositeEigenstrain::validParams()
      16             : {
      17             :   InputParameters params =
      18          12 :       CompositeTensorBase<RankTwoTensor, ComputeEigenstrainBase>::validParams();
      19          12 :   params.addClassDescription("Assemble an Eigenstrain tensor from multiple tensor contributions "
      20             :                              "weighted by material properties");
      21          12 :   return params;
      22           0 : }
      23             : 
      24           9 : CompositeEigenstrain::CompositeEigenstrain(const InputParameters & parameters)
      25           9 :   : CompositeTensorBase<RankTwoTensor, ComputeEigenstrainBase>(parameters)
      26             : {
      27           9 :   initializeDerivativeProperties(_base_name + "elastic_strain");
      28           9 : }
      29             : 
      30             : void
      31        1536 : CompositeEigenstrain::computeQpEigenstrain()
      32             : {
      33             :   // Define Eigenstrain (and fill in the derivatives of elastic strain with a prefactor of -1)
      34        1536 :   computeQpTensorProperties(_eigenstrain, -1.0);
      35        1536 : }

Generated by: LCOV version 1.14