<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "LAROMANCEStressUpdateBase.h"
#include "Function.h"
#include "MathUtils.h"
#include "MooseUtils.h"
#include "MooseRandom.h"
#include "Units.h"

#include <iostream>

registerMooseObjectAliased("TensorMechanicsApp",
                           LAROMANCEStressUpdateBase,
                           "LAROMANCEStressUpdate");
registerMooseObjectAliased("TensorMechanicsApp",
                           ADLAROMANCEStressUpdateBase,
                           "ADLAROMANCEStressUpdate");

template <bool is_ad>
InputParameters
LAROMANCEStressUpdateBaseTempl<is_ad>::validParams()
{
  InputParameters params = RadialReturnCreepStressUpdateBaseTempl<is_ad>::validParams();
  params.addClassDescription("Base class to calculate the effective creep strain based on the "
                             "rates predicted by a material  specific Los Alamos Reduced Order "
                             "Model derived from a Visco-Plastic Self Consistent calculations.");

  params.addRequiredCoupledVar("temperature", "The coupled temperature (K)");
  params.addParam<MaterialPropertyName>("environmental_factor",
                                        "Optional coupled environmental factor");

  MooseEnum error_lower_limit_behavior("ERROR WARN IGNORE EXCEPTION DONTHING USELIMIT", "EXCEPTION");
  // Only allow ERROR and EXCEPTION on upper bounds
  MooseEnum error_upper_limit_behavior("ERROR EXCEPTION", "EXCEPTION");
  params.addParam<MooseEnum>(
      "cell_input_window_low_failure",
      error_lower_limit_behavior,
      "What to do if cell dislocation concentration is outside the lower global "
      "window of applicability.");
  params.addParam<MooseEnum>(
      "cell_input_window_high_failure",
      error_upper_limit_behavior,
      "What to do if cell dislocation concentration is outside the upper global "
      "window of applicability.");
  params.addParam<MooseEnum>("wall_input_window_low_failure",
                             error_lower_limit_behavior,
                             "What to do if wall dislocation concentration is outside the "
                             "lower global window of applicability.");
  params.addParam<MooseEnum>("wall_input_window_high_failure",
                             error_upper_limit_behavior,
                             "What to do if wall dislocation concentration is outside the "
                             "upper global window of applicability.");
  params.addParam<MooseEnum>(
      "old_strain_input_window_low_failure",
      error_lower_limit_behavior,
      "What to do if old strain is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "old_strain_input_window_high_failure",
      error_upper_limit_behavior,
      "What to do if old strain is outside the upper global window of applicability.");

  MooseEnum extrapolated_lower_limit_behavior(
      "ERROR WARN IGNORE EXCEPTION DONOTHING USELIMIT EXTRAPOLATE", "EXTRAPOLATE");
  // Only allow ERROR and EXCEPTION on upper bounds
  MooseEnum extrapolated_upper_limit_behavior("ERROR EXCEPTION", "EXCEPTION");
  params.addParam<MooseEnum>(
      "stress_input_window_low_failure",
      extrapolated_lower_limit_behavior,
      "What to do if stress is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "stress_input_window_high_failure",
      extrapolated_upper_limit_behavior,
      "What to do if stress is outside the upper global window of applicability.");
  params.addParam<MooseEnum>(
      "temperature_input_window_low_failure",
      extrapolated_lower_limit_behavior,
      "What to do if temperature is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "temperature_input_window_high_failure",
      extrapolated_upper_limit_behavior,
      "What to do if temperature is outside the upper global window of applicability.");
  params.addParam<MooseEnum>(
      "environment_input_window_low_failure",
      extrapolated_lower_limit_behavior,
      "What to do if environmental factor is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "environment_input_window_high_failure",
      extrapolated_upper_limit_behavior,
      "What to do if environmental factor is outside the upper global window of applicability.");

  params.addRequiredRangeCheckedParam<Real>(
      "initial_cell_dislocation_density",
      "initial_cell_dislocation_density >= 0.0",
      "Initial density of cell (glissile) dislocations (1/m^2)");
  params.addRangeCheckedParam<Real>(<commit_msg>replaced zexextrapolated_upper_limit_behavior with error_upper_limit_behavior. ref #20974<commit_after>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "LAROMANCEStressUpdateBase.h"
#include "Function.h"
#include "MathUtils.h"
#include "MooseUtils.h"
#include "MooseRandom.h"
#include "Units.h"

#include <iostream>

registerMooseObjectAliased("TensorMechanicsApp",
                           LAROMANCEStressUpdateBase,
                           "LAROMANCEStressUpdate");
registerMooseObjectAliased("TensorMechanicsApp",
                           ADLAROMANCEStressUpdateBase,
                           "ADLAROMANCEStressUpdate");

template <bool is_ad>
InputParameters
LAROMANCEStressUpdateBaseTempl<is_ad>::validParams()
{
  InputParameters params = RadialReturnCreepStressUpdateBaseTempl<is_ad>::validParams();
  params.addClassDescription("Base class to calculate the effective creep strain based on the "
                             "rates predicted by a material  specific Los Alamos Reduced Order "
                             "Model derived from a Visco-Plastic Self Consistent calculations.");

  params.addRequiredCoupledVar("temperature", "The coupled temperature (K)");
  params.addParam<MaterialPropertyName>("environmental_factor",
                                        "Optional coupled environmental factor");

  MooseEnum error_lower_limit_behavior("ERROR WARN IGNORE EXCEPTION DONTHING USELIMIT",
                                       "EXCEPTION");
  // Only allow ERROR and EXCEPTION on upper bounds
  MooseEnum error_upper_limit_behavior("ERROR EXCEPTION", "EXCEPTION");
  params.addParam<MooseEnum>(
      "cell_input_window_low_failure",
      error_lower_limit_behavior,
      "What to do if cell dislocation concentration is outside the lower global "
      "window of applicability.");
  params.addParam<MooseEnum>(
      "cell_input_window_high_failure",
      error_upper_limit_behavior,
      "What to do if cell dislocation concentration is outside the upper global "
      "window of applicability.");
  params.addParam<MooseEnum>("wall_input_window_low_failure",
                             error_lower_limit_behavior,
                             "What to do if wall dislocation concentration is outside the "
                             "lower global window of applicability.");
  params.addParam<MooseEnum>("wall_input_window_high_failure",
                             error_upper_limit_behavior,
                             "What to do if wall dislocation concentration is outside the "
                             "upper global window of applicability.");
  params.addParam<MooseEnum>(
      "old_strain_input_window_low_failure",
      error_lower_limit_behavior,
      "What to do if old strain is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "old_strain_input_window_high_failure",
      error_upper_limit_behavior,
      "What to do if old strain is outside the upper global window of applicability.");

  MooseEnum extrapolated_lower_limit_behavior(
      "ERROR WARN IGNORE EXCEPTION DONOTHING USELIMIT EXTRAPOLATE", "EXTRAPOLATE");
  params.addParam<MooseEnum>(
      "stress_input_window_low_failure",
      extrapolated_lower_limit_behavior,
      "What to do if stress is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "stress_input_window_high_failure",
      error_upper_limit_behavior,
      "What to do if stress is outside the upper global window of applicability.");
  params.addParam<MooseEnum>(
      "temperature_input_window_low_failure",
      extrapolated_lower_limit_behavior,
      "What to do if temperature is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "temperature_input_window_high_failure",
      error_upper_limit_behavior,
      "What to do if temperature is outside the upper global window of applicability.");
  params.addParam<MooseEnum>(
      "environment_input_window_low_failure",
      extrapolated_lower_limit_behavior,
      "What to do if environmental factor is outside the lower global window of applicability.");
  params.addParam<MooseEnum>(
      "environment_input_window_high_failure",
      error_upper_limit_behavior,
      "What to do if environmental factor is outside the upper global window of applicability.");

  params.addRequiredRangeCheckedParam<Real>(
      "initial_cell_dislocation_density",
      "initial_cell_dislocation_density >= 0.0",
      "Initial density of cell (glissile) dislocations (1/m^2)");
  params.addRangeCheckedParam<Real>(
{'fraction_non_alphanumeric': 0.07641093926047321, 'fraction_numerical': 0.002150978182935573, 'mean_word_length': 3.372592924317062, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 43, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4044552', 'n_tokens_mistral': 2687, 'n_tokens_neox': 2578, 'n_words': 696}