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 186 : PowerDegradationFunction::validParams() 11 : { 12 186 : InputParameters params = DegradationFunctionBase::validParams(); 13 186 : params.addClassDescription( 14 : "defines the power degradation function $g(d) = (1-d)^p (1-\\eta) + \\eta$."); 15 : 16 186 : params.set<std::string>("expression") = "(1-d)^p*(1-eta)+eta"; 17 744 : params.set<std::vector<std::string>>("parameter_names") = {"p", "eta"}; 18 186 : return params; 19 372 : } 20 : 21 36 : PowerDegradationFunction::PowerDegradationFunction(const InputParameters & parameters) 22 36 : : DegradationFunctionBase(parameters) 23 : { 24 36 : }