Line data Source code
1 : //* This file is part of the RACCOON application 2 : //* being developed at Dolbow lab at Duke University 3 : //* http://dolbow.pratt.duke.edu 4 : 5 : #include "PowerDegradationFunction.h" 6 : 7 : registerMooseObject("raccoonApp", PowerDegradationFunction); 8 : 9 : InputParameters 10 208 : PowerDegradationFunction::validParams() 11 : { 12 208 : InputParameters params = DegradationFunctionBase::validParams(); 13 208 : params.addClassDescription( 14 : "defines the power degradation function $g(d) = (1-d)^p (1-\\eta) + \\eta$."); 15 : 16 208 : params.set<std::string>("expression") = "(1-d)^p*(1-eta)+eta"; 17 832 : params.set<std::vector<std::string>>("parameter_names") = {"p", "eta"}; 18 208 : return params; 19 416 : } 20 : 21 54 : PowerDegradationFunction::PowerDegradationFunction(const InputParameters & parameters) 22 54 : : DegradationFunctionBase(parameters) 23 : { 24 54 : }