https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
LAROMANCEStressUpdateBaseTempl< is_ad > Class Template Reference

#include <LAROMANCEStressUpdateBase.h>

Inheritance diagram for LAROMANCEStressUpdateBaseTempl< is_ad >:
[legend]

Public Types

enum  SubsteppingType { SubsteppingType::NONE, SubsteppingType::ERROR_BASED, SubsteppingType::INCREMENT_BASED }
 
using GR2 = GenericRankTwoTensor< is_ad >
 
using GSR2 = Moose::GenericType< RankTwoTensor, is_ad >
 
using GR4 = GenericRankFourTensor< is_ad >
 
using GSR4 = Moose::GenericType< RankFourTensor, is_ad >
 
enum  ConstantTypeEnum { ConstantTypeEnum::NONE, ConstantTypeEnum::ELEMENT, ConstantTypeEnum::SUBDOMAIN }
 
enum  TEST_TYPE
 
typedef DataFileName DataFileParameterType
 

Public Member Functions

 LAROMANCEStressUpdateBaseTempl (const InputParameters &parameters)
 
virtual void resetIncrementalMaterialProperties () override
 Reset material properties. More...
 
virtual void storeIncrementalMaterialProperties (const unsigned int total_number_substeps) override
 Properly set up the incremental calculation storage of the stateful material properties in the inheriting classes. More...
 
virtual void updateState (GenericRankTwoTensor< is_ad > &strain_increment, GenericRankTwoTensor< is_ad > &inelastic_strain_increment, const GenericRankTwoTensor< is_ad > &rotation_increment, GenericRankTwoTensor< is_ad > &stress_new, const RankTwoTensor &stress_old, const GenericRankFourTensor< is_ad > &elasticity_tensor, const RankTwoTensor &elastic_strain_old, bool compute_full_tangent_operator=false, RankFourTensor &tangent_operator=StressUpdateBaseTempl< is_ad >::_identityTensor) override
 A radial return (J2) mapping method is performed with return mapping iterations. More...
 
virtual void updateState (GR2 &strain_increment, GR2 &inelastic_strain_increment, const GR2 &rotation_increment, GR2 &stress_new, const RankTwoTensor &stress_old, const GR4 &elasticity_tensor, const RankTwoTensor &elastic_strain_old, bool compute_full_tangent_operator=false, RankFourTensor &tangent_operator=StressUpdateBaseTempl< is_ad >::_identityTensor)
 Given a strain increment that results in a trial stress, perform some procedure (such as an iterative return-mapping process) to produce an admissible stress, an elastic strain increment and an inelastic strain increment. More...
 
virtual void updateStateSubstepInternal (GenericRankTwoTensor< is_ad > &, GenericRankTwoTensor< is_ad > &, const GenericRankTwoTensor< is_ad > &, GenericRankTwoTensor< is_ad > &, const RankTwoTensor &, const GenericRankFourTensor< is_ad > &, const RankTwoTensor &, unsigned int total_number_substeps, bool compute_full_tangent_operator=false, RankFourTensor &tangent_operator=StressUpdateBaseTempl< is_ad >::_identityTensor)
 
virtual void updateStateSubstep (GenericRankTwoTensor< is_ad > &, GenericRankTwoTensor< is_ad > &, const GenericRankTwoTensor< is_ad > &, GenericRankTwoTensor< is_ad > &, const RankTwoTensor &, const GenericRankFourTensor< is_ad > &, const RankTwoTensor &, bool compute_full_tangent_operator=false, RankFourTensor &tangent_operator=StressUpdateBaseTempl< is_ad >::_identityTensor) override
 Similar to the updateState function, this method updates the strain and stress for one substep. More...
 
virtual void updateStateSubstep (GR2 &, GR2 &, const GR2 &, GR2 &, const RankTwoTensor &, const GR4 &, const RankTwoTensor &, bool compute_full_tangent_operator=false, RankFourTensor &tangent_operator=StressUpdateBaseTempl< is_ad >::_identityTensor)
 Similar to the updateState function, this method updates the strain and stress for one substep. More...
 
virtual Real computeReferenceResidual (const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar_effective_inelastic_strain) override
 Compute a reference quantity to be used for checking relative convergence. More...
 
virtual GenericReal< is_ad > minimumPermissibleValue (const GenericReal< is_ad > &) const override
 Compute the minimum permissible value of the scalar. More...
 
bool requiresIsotropicTensor () override
 Does the model require the elasticity tensor to be isotropic? More...
 
bool isIsotropic () override
 Radial return mapped models should be isotropic by default! More...
 
virtual int calculateNumberSubsteps (const GenericRankTwoTensor< is_ad > &strain_increment) override
 If substepping is enabled, calculate the number of substeps as a function of the elastic strain increment guess and the maximum inelastic strain increment ratio based on a user-specified tolerance. More...
 
virtual int calculateNumberSubsteps (const GR2 &)
 Given the elastic strain increment compute the number of substeps required to bring a substepped trial stress guess distance from the yield surface into the tolerance specified in the individual child class. More...
 
virtual bool substeppingCapabilityRequested () override
 Has the user requested usage of (possibly) implemented substepping capability for inelastic models. More...
 
const GenericReal< is_ad > & effectiveInelasticStrainIncrement () const
 Current value of scalar inelastic strain. More...
 
void updateEffectiveInelasticStrainIncrement (const GenericReal< is_ad > &eisi)
 
void updateEffectiveInelasticStrain (const GenericReal< is_ad > &increment)
 
void computeTangentOperator (Real effective_trial_stress, const RankTwoTensor &stress_new, RankFourTensor &tangent_operator)
 Calculate the tangent_operator. More...
 
template<>
void computeTangentOperator (Real effective_trial_stress, const RankTwoTensor &stress_new, RankFourTensor &tangent_operator)
 
template<>
void computeTangentOperator (Real effective_trial_stress, const RankTwoTensor &stress_new, RankFourTensor &tangent_operator)
 
void setQp (unsigned int qp)
 Sets the value of the global variable _qp for inheriting classes. More...
 
virtual Real computeStrainEnergyRateDensity (const GenericMaterialProperty< RankTwoTensor, is_ad > &, const GenericMaterialProperty< RankTwoTensor, is_ad > &)
 Compute the strain energy rate density for this inelastic model for the current step. More...
 
virtual const dof_id_typegetElementID (const std::string &id_parameter_name, unsigned int comp=0) const override
 
dof_id_type getElementID (const Elem *elem, unsigned int elem_id_index) const
 
virtual const dof_id_typegetElementIDNeighbor (const std::string &id_parameter_name, unsigned int comp=0) const override
 
virtual const dof_id_typegetElementIDByName (const std::string &id_parameter_name) const override
 
virtual const dof_id_typegetElementIDNeighborByName (const std::string &id_parameter_name) const override
 
virtual void computeProperties () override
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false, bool no_dep=false)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
virtual bool isBoundaryMaterial () const override
 
virtual const std::unordered_set< unsigned int > & getMatPropDependencies () const override
 
virtual void subdomainSetup () override
 
bool ghostable () const override final
 
virtual void resolveOptionalProperties () override
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty ()
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty ()
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty ()
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialPropertyByName (const std::string &prop_name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialPropertyByName (const std::string &prop_name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialPropertyByName (const std::string &prop_name)
 
const MaterialProperty< T > & getZeroMaterialProperty (Ts... args)
 
const MaterialProperty< T > & getZeroMaterialProperty (Ts... args)
 
const MaterialProperty< T > & getZeroMaterialProperty (Ts... args)
 
virtual void initStatefulProperties (unsigned int n_points)
 
virtual bool isInterfaceMaterial ()
 
virtual void computePropertiesAtQp (unsigned int qp)
 
const MaterialProperty< T > & getZeroMaterialPropertyByName (Ts... args)
 
virtual const std::set< std::string > & getRequestedItems () override
 
virtual const std::set< std::string > & getSuppliedItems () override
 
const std::set< unsigned int > & getSuppliedPropIDs ()
 
void checkStatefulSanity () const
 
std::set< OutputName > getOutputs ()
 
bool hasStatefulProperties () const
 
void setFaceInfo (const FaceInfo &fi)
 
void setActiveProperties (const std::unordered_set< unsigned int > &needed_props)
 
bool forceStatefulInit () const
 
virtual bool enabled () const
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
MooseAppgetMooseApp () const
 
const std::string & type () const
 
virtual const std::string & name () const
 
std::string typeAndName () const
 
std::string errorPrefix (const std::string &error_type) const
 
void callMooseError (std::string msg, const bool with_prefix) const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
const InputParametersparameters () const
 
MooseObjectName uniqueName () const
 
const T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &nm) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void mooseError (Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
const std::vector< SubdomainName > & blocks () const
 
unsigned int numBlocks () const
 
virtual const std::set< SubdomainID > & blockIDs () const
 
unsigned int blocksMaxDimension () const
 
bool hasBlocks (const SubdomainName &name) const
 
bool hasBlocks (const std::vector< SubdomainName > &names) const
 
bool hasBlocks (const std::set< SubdomainName > &names) const
 
bool hasBlocks (SubdomainID id) const
 
bool hasBlocks (const std::vector< SubdomainID > &ids) const
 
bool hasBlocks (const std::set< SubdomainID > &ids) const
 
bool isBlockSubset (const std::set< SubdomainID > &ids) const
 
bool isBlockSubset (const std::vector< SubdomainID > &ids) const
 
bool hasBlockMaterialProperty (const std::string &prop_name)
 
const std::set< SubdomainID > & meshBlockIDs () const
 
virtual bool blockRestricted () const
 
virtual void checkVariable (const MooseVariableFieldBase &variable) const
 
virtual const std::set< BoundaryID > & boundaryIDs () const
 
const std::vector< BoundaryName > & boundaryNames () const
 
unsigned int numBoundaryIDs () const
 
bool hasBoundary (const BoundaryName &name) const
 
bool hasBoundary (const std::vector< BoundaryName > &names) const
 
bool hasBoundary (const BoundaryID &id) const
 
bool hasBoundary (const std::vector< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool hasBoundary (const std::set< BoundaryID > &ids, TEST_TYPE type=ALL) const
 
bool isBoundarySubset (const std::set< BoundaryID > &ids) const
 
bool isBoundarySubset (const std::vector< BoundaryID > &ids) const
 
bool hasBoundaryMaterialProperty (const std::string &prop_name) const
 
virtual bool boundaryRestricted () const
 
const std::set< BoundaryID > & meshBoundaryIDs () const
 
virtual bool checkVariableBoundaryIntegrity () const
 
virtual void timestepSetup ()
 
virtual void jacobianSetup ()
 
virtual void residualSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnumgetExecuteOnEnum () const
 
const std::set< MooseVariableFieldBase *> & getMooseVariableDependencies () const
 
std::set< MooseVariableFieldBase *> checkAllVariables (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_omit={})
 
std::set< MooseVariableFieldBase *> checkVariables (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
void addMooseVariableDependency (MooseVariableFieldBase *var)
 
void addMooseVariableDependency (const std::vector< MooseVariableFieldBase * > &vars)
 
const std::vector< MooseVariableScalar *> & getCoupledMooseScalarVars ()
 
const std::set< TagID > & getScalarVariableCoupleableVectorTags () const
 
const std::set< TagID > & getScalarVariableCoupleableMatrixTags () const
 
const FunctiongetFunction (const std::string &name) const
 
const FunctiongetFunctionByName (const FunctionName &name) const
 
bool hasFunction (const std::string &param_name) const
 
bool hasFunctionByName (const FunctionName &name) const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const T & getUserObject (const std::string &param_name, bool is_dependency=true) const
 
const T & getUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectgetUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectgetUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const
 
bool isImplicit ()
 
Moose::StateArg determineState () const
 
bool isDefaultPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessor (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessorByName (const PostprocessorName &name) const
 
std::size_t coupledPostprocessors (const std::string &param_name) const
 
const PostprocessorName & getPostprocessorName (const std::string &param_name, const unsigned int index=0) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name) const
 
const VectorPostprocessorName & getVectorPostprocessorName (const std::string &param_name) const
 
virtual void meshChanged ()
 
void buildOutputHideVariableList (std::set< std::string > variable_names)
 
void setRandomResetFrequency (ExecFlagType exec_flag)
 
unsigned long getRandomLong () const
 
Real getRandomReal () const
 
unsigned int getSeed (std::size_t id)
 
unsigned int getMasterSeed () const
 
bool isNodal () const
 
ExecFlagType getResetOnTime () const
 
void setRandomDataPointer (RandomData *random_data)
 
virtual unsigned int getElementIDIndex (const std::string &id_parameter_name, unsigned int comp=0) const
 
virtual unsigned int getElementIDIndexByName (const std::string &id_name) const
 
bool hasElementID (const std::string &id_name) const
 
dof_id_type maxElementID (unsigned int elem_id_index) const
 
dof_id_type minElementID (unsigned int elem_id_index) const
 
bool areElemIDsIdentical (const std::string &id_name1, const std::string &id_name2) const
 
std::unordered_map< dof_id_type, std::set< dof_id_type > > getElemIDMapping (const std::string &id_name1, const std::string &id_name2) const
 
std::set< dof_id_typegetAllElemIDs (unsigned int elem_id_index) const
 
std::set< dof_id_typegetElemIDsOnBlocks (unsigned int elem_id_index, const std::set< SubdomainID > &blks) const
 
const std::unordered_map< std::string, std::vector< MooseVariableFieldBase *> > & getCoupledVars () const
 
const std::vector< MooseVariableFieldBase *> & getCoupledMooseVars () const
 
const std::vector< MooseVariable *> & getCoupledStandardMooseVars () const
 
const std::vector< VectorMooseVariable *> & getCoupledVectorMooseVars () const
 
const std::vector< ArrayMooseVariable *> & getCoupledArrayMooseVars () const
 
void addFEVariableCoupleableVectorTag (TagID tag)
 
void addFEVariableCoupleableMatrixTag (TagID tag)
 
std::set< TagID > & getFEVariableCoupleableVectorTags ()
 
const std::set< TagID > & getFEVariableCoupleableVectorTags () const
 
std::set< TagID > & getFEVariableCoupleableMatrixTags ()
 
const std::set< TagID > & getFEVariableCoupleableMatrixTags () const
 
auto & getWritableCoupledVariables () const
 
bool hasWritableCoupledVariables () const
 
const ADVariableValuegetADDefaultValue (const std::string &var_name) const
 
const ADVectorVariableValuegetADDefaultVectorValue (const std::string &var_name) const
 
const ADVariableGradientgetADDefaultGradient () const
 
const ADVectorVariableGradientgetADDefaultVectorGradient () const
 
const ADVariableSecondgetADDefaultSecond () const
 
const ADVectorVariableCurlgetADDefaultCurl () const
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const std::string &prop_name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const std::string &prop_name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const std::string &prop_name)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const std::string &prop_name)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const std::string &prop_name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const std::string &prop_name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const std::string &prop_name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const std::string &prop_name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
std::pair< const MaterialProperty< T > *, std::set< SubdomainID > > getBlockMaterialProperty (const MaterialPropertyName &name)
 
std::set< SubdomainIDgetMaterialPropertyBlocks (const std::string &name)
 
std::vector< SubdomainName > getMaterialPropertyBlockNames (const std::string &name)
 
std::set< BoundaryIDgetMaterialPropertyBoundaryIDs (const std::string &name)
 
std::vector< BoundaryName > getMaterialPropertyBoundaryNames (const std::string &name)
 
void checkBlockAndBoundaryCompatibility (std::shared_ptr< MaterialBase > discrete)
 
std::unordered_map< SubdomainID, std::vector< MaterialBase *> > buildRequiredMaterials (bool allow_stateful=true)
 
void statefulPropertiesAllowed (bool)
 
bool getMaterialPropertyCalled () const
 
const GenericMaterialProperty< T, is_ad > & getPossiblyConstantGenericMaterialPropertyByName (const MaterialPropertyName &prop_name, MaterialData &material_data, const unsigned int state)
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
MaterialProperty< T > & declarePropertyByName (const std::string &prop_name)
 
MaterialProperty< T > & declarePropertyByName (const std::string &prop_name)
 
MaterialProperty< T > & declareProperty (const std::string &name)
 
MaterialProperty< T > & declareProperty (const std::string &name)
 
ADMaterialProperty< T > & declareADPropertyByName (const std::string &prop_name)
 
ADMaterialProperty< T > & declareADPropertyByName (const std::string &prop_name)
 
ADMaterialProperty< T > & declareADProperty (const std::string &name)
 
ADMaterialProperty< T > & declareADProperty (const std::string &name)
 
auto & declareGenericProperty (const std::string &prop_name)
 
auto & declareGenericProperty (const std::string &prop_name)
 
GenericMaterialProperty< T, is_ad > & declareGenericPropertyByName (const std::string &prop_name)
 
GenericMaterialProperty< T, is_ad > & declareGenericPropertyByName (const std::string &prop_name)
 
const DistributiongetDistribution (const std::string &name) const
 
const T & getDistribution (const std::string &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const T & getDistribution (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const T & getDistributionByName (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const T & getDistributionByName (const std::string &name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
PenetrationLocatorgetPenetrationLocator (const BoundaryName &primary, const BoundaryName &secondary, Order order)
 
PenetrationLocatorgetQuadraturePenetrationLocator (const BoundaryName &primary, const BoundaryName &secondary, Order order)
 
NearestNodeLocatorgetNearestNodeLocator (const BoundaryName &primary, const BoundaryName &secondary)
 
NearestNodeLocatorgetQuadratureNearestNodeLocator (const BoundaryName &primary, const BoundaryName &secondary)
 
bool requiresGeometricSearch () const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 
void resetQpProperties () final
 Retained as empty methods to avoid a warning from Material.C in framework. These methods are unused in all inheriting classes and should not be overwritten. More...
 
void resetProperties () final
 

Static Public Member Functions

static InputParameters validParams ()
 
static std::deque< MaterialBase *> buildRequiredMaterials (const Consumers &mat_consumers, const std::vector< std::shared_ptr< MaterialBase >> &mats, const bool allow_stateful)
 
static bool restricted (const std::set< BoundaryID > &ids)
 
static void sort (typename std::vector< T > &vector)
 
static void sortDFS (typename std::vector< T > &vector)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header)
 
static std::string deduceFunctorName (const std::string &name, const InputParameters &params)
 

Public Attributes

const Elem *const & _current_elem
 
Real_dt
 
 ALL
 
 ANY
 
const ConsoleStream _console
 

Static Public Attributes

static constexpr PropertyValue::id_type default_property_id
 
static constexpr PropertyValue::id_type zero_property_id
 

Protected Types

enum  ROMInputTransform { ROMInputTransform::LINEAR, ROMInputTransform::LOG, ROMInputTransform::EXP }
 
enum  WindowFailure {
  WindowFailure::ERROR, WindowFailure::EXCEPTION, WindowFailure::WARN, WindowFailure::IGNORE,
  WindowFailure::DONOTHING, WindowFailure::USELIMIT, WindowFailure::EXTRAPOLATE
}
 Enum to error, warn, ignore, or extrapolate if input is outside of window of applicability. More...
 
enum  QP_Data_Type
 

Protected Member Functions

virtual void exportJSON ()
 
virtual bool substeppingCapabilityEnabled () override
 Does the model include the infrastructure for substep decomposition of the elastic strain initially used to calculate the trial stress guess Inheriting classes which wish to use the substepping capability should overwrite this method and set it to return true. More...
 
virtual void initialSetup () override
 
virtual void setupUnitConversionFactors (const InputParameters &parameters)
 
virtual void initQpStatefulProperties () override
 
virtual void computeStressInitialize (const GenericReal< is_ad > &effective_trial_stress, const GenericRankFourTensor< is_ad > &elasticity_tensor) override
 Perform any necessary initialization before return mapping iterations. More...
 
virtual GenericReal< is_ad > computeResidual (const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar) override
 Compute the residual for a predicted value of the scalar. More...
 
virtual GenericReal< is_ad > computeDerivative (const GenericReal< is_ad > &, const GenericReal< is_ad > &) override
 Compute the derivative of the residual as a function of the scalar variable. More...
 
virtual void computeStressFinalize (const GenericRankTwoTensor< is_ad > &plastic_strain_increment) override
 Perform any necessary steps to finalize state after return mapping iterations. More...
 
virtual GenericReal< is_ad > maximumPermissibleValue (const GenericReal< is_ad > &effective_trial_stress) const override
 Compute the maximum permissible value of the scalar. More...
 
virtual Real computeTimeStepLimit () override
 Compute the limiting value of the time step for this material. More...
 
void outputIterationSummary (std::stringstream *iter_output, const unsigned int total_it) override
 Output summary information for the convergence history of the model. More...
 
virtual void outputIterationStep (std::stringstream *iter_output, const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar, const Real reference_residual) override
 Output information for a single iteration step to build the convergence history of the model. More...
 
void precomputeROM (const unsigned out_index)
 Precompute the ROM strain rate information for all inputs except for strain. More...
 
GenericReal< is_ad > computeROM (const unsigned int tile, const unsigned int partition, const unsigned out_index, const bool derivative=false)
 Computes the ROM calculated increment for a given output and tile. More...
 
bool checkInTile (const unsigned int p, const unsigned int t) const
 Checks if the input combination is in a specific tile. More...
 
bool areTilesNotIdentical (const unsigned int p, const unsigned int t, const unsigned int tt, const unsigned int in_index)
 Checks if two tile domains are equal. More...
 
GenericReal< is_ad > normalizeInput (const GenericReal< is_ad > &input, const ROMInputTransform transform, const Real transform_coef, const std::vector< Real > &transformed_limits, const bool derivative=false)
 Convert the input variables into the form expected by the ROM Legendre polynomials to have a normalized space from [-1, 1] so that every variable has equal weight. More...
 
void buildPolynomials (const unsigned int p, const GenericReal< is_ad > &rom_input, std::vector< GenericReal< is_ad >> &polynomial_inputs, const GenericReal< is_ad > &drom_input=0, const bool derivative=false)
 Assemble the array of Legendre polynomials to be multiplied by the ROM coefficients. More...
 
void precomputeValues (const unsigned int p, const std::vector< Real > &coefs, const std::vector< std::vector< GenericReal< is_ad >>> &polynomial_inputs, std::vector< GenericReal< is_ad >> &precomputed)
 Arranges the calculated Legendre polynomials into the proper oder and multiplies the Legendre polynomials by the ROM coefficients to compute the predicted output values. More...
 
GenericReal< is_ad > computeValues (const unsigned int p, const std::vector< GenericReal< is_ad >> &precomputed, const std::vector< std::vector< GenericReal< is_ad >>> &polynomial_inputs, const std::vector< GenericReal< is_ad >> &dpolynomial_inputs={}, const bool derivative=false)
 Arranges the calculated Legendre polynomials into the proper oder and multiplies the Legendre polynomials by the ROM coefficients to compute the predicted output values. More...
 
virtual GenericReal< is_ad > convertOutput (const unsigned int p, const std::vector< Real > &old_input_values, const GenericReal< is_ad > &rom_output, const unsigned out_index, const GenericReal< is_ad > &drom_output=0.0, const bool derivative=false)
 Computes the output variable increments from the ROM predictions by bringing out of the normalized map to the actual physical values. More...
 
GenericReal< is_ad > computePolynomial (const GenericReal< is_ad > &value, const unsigned int degree, const bool derivative=false)
 Calculate the value or derivative of Legendre polynomial up to 3rd order. More...
 
GenericReal< is_ad > sigmoid (const Real lower, const Real upper, const GenericReal< is_ad > &val, const bool derivative=false)
 Calculate the sigmoid function weighting for the input based on the limits. More...
 
void computeTileWeight (std::vector< std::vector< GenericReal< is_ad >>> &weights, GenericReal< is_ad > &input, const unsigned int in_index, const bool derivative=false)
 Compute the contribution (weight) of each tile in each partition, based on the input and tile boundaries (in terms of input domain). More...
 
virtual void computePartitionWeights (std::vector< GenericReal< is_ad >> &weights, std::vector< GenericReal< is_ad >> &dweights_dstress)
 Compute the weight of the different partitions. More...
 
template<typename T >
void convertValue (T &x, const ROMInputTransform transform, const Real coef, const bool derivative=false)
 Convert input based on the transform type. More...
 
std::vector< unsigned intgetMakeFrameHelper (const unsigned int p) const
 
std::vector< std::vector< std::vector< std::vector< Real > > > > getTransformedLimits (const unsigned int p, const std::vector< std::vector< std::vector< Real >>> limits)
 
virtual std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > getTransform ()
 
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getTransformCoefs ()
 
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getNormalizationLimits ()
 
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getInputLimits ()
 
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getCoefs ()
 
virtual std::vector< std::vector< unsigned int > > getTilings ()
 
virtual std::vector< RealgetStrainCutoff ()
 
void checkJSONKey (const std::string &key)
 check if a JSON file was loaded and if the specified key exists More...
 
const GenericVariableValue< is_ad > & coupledGenericValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
virtual void propagateQpStatefulProperties () override
 If updateState is not called during a timestep, this will be. More...
 
virtual Real computeStressDerivative (const Real effective_trial_stress, const Real scalar) override
 This method returns the derivative of the creep strain with respect to the von mises stress. More...
 
template<>
Real computeStressDerivative (const Real effective_trial_stress, const Real scalar)
 Calculate the derivative of the strain increment with respect to the updated stress. More...
 
virtual TangentCalculationMethod getTangentCalculationMethod () override
 
void propagateQpStatefulPropertiesRadialReturn ()
 Propagate the properties pertaining to this intermediate class. More...
 
virtual void checkMaterialProperty (const std::string &name, const unsigned int state) override
 
virtual const MaterialDatamaterialData () const override
 
virtual MaterialDatamaterialData () override
 
virtual const QBase & qRule () const override
 
virtual void computeQpProperties ()
 
virtual const FEProblemBasemiProblem () const
 
virtual FEProblemBasemiProblem ()
 
bool isPropertyActive (const unsigned int prop_id) const
 
void registerPropName (const std::string &prop_name, bool is_get, const unsigned int state)
 
void checkExecutionStage ()
 
void checkExecutionStage ()
 
virtual bool hasBlockMaterialPropertyHelper (const std::string &prop_name)
 
void initializeBlockRestrictable (const MooseObject *moose_object)
 
Moose::CoordinateSystemType getBlockCoordSystem ()
 
bool hasBoundaryMaterialPropertyHelper (const std::string &prop_name) const
 
bool isCoupledScalar (const std::string &var_name, unsigned int i=0) const
 
unsigned int coupledScalarComponents (const std::string &var_name) const
 
unsigned int coupledScalar (const std::string &var_name, unsigned int comp=0) const
 
libMesh::Order coupledScalarOrder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< is_ad > & coupledGenericScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const VariableValuecoupledVectorTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledMatrixTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalargetScalarVar (const std::string &var_name, unsigned int comp) const
 
virtual void addUserObjectDependencyHelper (const UserObject &) const
 
virtual void addPostprocessorDependencyHelper (const PostprocessorName &) const
 
virtual void addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &) const
 
T & declareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< T > declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const T & getRestartableData (const std::string &data_name) const
 
T & declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
T & declareRecoverableData (const std::string &data_name, Args &&... args)
 
T & declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
T & declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
std::string deduceFunctorName (const std::string &name) const
 
const Moose::Functor< T > & getFunctor (const std::string &name)
 
const Moose::Functor< T > & getFunctor (const std::string &name, THREAD_ID tid)
 
const Moose::Functor< T > & getFunctor (const std::string &name, SubProblem &subproblem)
 
const Moose::Functor< T > & getFunctor (const std::string &name, SubProblem &subproblem, THREAD_ID tid)
 
bool isFunctor (const std::string &name) const
 
bool isFunctor (const std::string &name, const SubProblem &subproblem) const
 
Moose::ElemArg makeElemArg (const Elem *elem, bool correct_skewnewss=false) const
 
void checkFunctorSupportsSideIntegration (const std::string &name, bool qp_integration)
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
virtual void coupledCallback (const std::string &, bool) const
 
virtual bool isCoupled (const std::string &var_name, unsigned int i=0) const
 
virtual bool isCoupledConstant (const std::string &var_name) const
 
unsigned int coupledComponents (const std::string &var_name) const
 
VariableName coupledName (const std::string &var_name, unsigned int comp=0) const
 
std::vector< VariableName > coupledNames (const std::string &var_name) const
 
virtual unsigned int coupled (const std::string &var_name, unsigned int comp=0) const
 
std::vector< unsigned intcoupledIndices (const std::string &var_name) const
 
virtual const VariableValuecoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledValues (const std::string &var_name) const
 
std::vector< const VectorVariableValue *> coupledVectorValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVectorVariableValue< is_ad > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVectorVariableValue< false > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
const GenericVectorVariableValue< true > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableValue< is_ad > *> coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< false > *> coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< true > *> coupledGenericValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericDofValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDotDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
virtual const VariableValuecoupledValueLower (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue *> adCoupledValues (const std::string &var_name) const
 
const ADVariableValueadCoupledLowerValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVectorVariableValue *> adCoupledVectorValues (const std::string &var_name) const
 
virtual const VariableValuecoupledVectorTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue *> coupledVectorTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue *> coupledVectorTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableValuecoupledVectorTagArrayValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableValuecoupledVectorTagArrayValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableValue *> coupledVectorTagArrayValues (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableValue *> coupledVectorTagArrayValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableGradientcoupledVectorTagGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableGradientcoupledVectorTagGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableGradient *> coupledVectorTagGradients (const std::string &var_names, TagID tag) const
 
std::vector< const VariableGradient *> coupledVectorTagGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableGradientcoupledVectorTagArrayGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableGradientcoupledVectorTagArrayGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableGradient *> coupledVectorTagArrayGradients (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableGradient *> coupledVectorTagArrayGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValuecoupledVectorTagDofValue (const std::string &var_name, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagDofValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const ArrayVariableValuecoupledVectorTagArrayDofValue (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledVectorTagDofValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue *> coupledVectorTagDofValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValuecoupledMatrixTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledMatrixTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue *> coupledMatrixTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue *> coupledMatrixTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VectorVariableValuecoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ArrayVariableValue *> coupledArrayValues (const std::string &var_name) const
 
MooseWritableVariablewritableVariable (const std::string &var_name, unsigned int comp=0)
 
virtual VariableValuewritableCoupledValue (const std::string &var_name, unsigned int comp=0)
 
void checkWritableVar (MooseWritableVariable *var)
 
virtual const VariableValuecoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledValuesOld (const std::string &var_name) const
 
std::vector< const VectorVariableValue *> coupledVectorValuesOld (const std::string &var_name) const
 
virtual const VariableValuecoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledValuesOlder (const std::string &var_name) const
 
virtual const VariableValuecoupledValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient *> coupledGradients (const std::string &var_name) const
 
const ADVariableGradientadCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableGradientadCoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableGradient *> adCoupledGradients (const std::string &var_name) const
 
const GenericVariableGradient< is_ad > & coupledGenericGradient (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableGradient< false > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
const GenericVariableGradient< true > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableGradient< is_ad > *> coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< false > *> coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< true > *> coupledGenericGradients (const std::string &var_name) const
 
const ADVectorVariableGradientadCoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableSecondadCoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableSecondadCoupledVectorSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient *> coupledGradientsOld (const std::string &var_name) const
 
virtual const VariableGradientcoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOlder (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableCurladCoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDiv (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledDots (const std::string &var_name) const
 
virtual const VariableValuecoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue *> adCoupledDots (const std::string &var_name) const
 
const ADVariableValueadCoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledArrayDotDu (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const Moose::ADType< T >::typeadCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledAllDofValues (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledAllDofValuesOld (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledAllDofValuesOlder (const std::string &var_name) const
 
virtual const ArrayVariableValuecoupledArrayDofValues (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableValueadCoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadZeroValue () const
 
const ADVariableGradientadZeroGradient () const
 
const ADVariableSecondadZeroSecond () const
 
const GenericVariableValue< is_ad > & genericZeroValue ()
 
const GenericVariableValue< false > & genericZeroValue ()
 
const GenericVariableValue< true > & genericZeroValue ()
 
const GenericVariableGradient< is_ad > & genericZeroGradient ()
 
const GenericVariableGradient< false > & genericZeroGradient ()
 
const GenericVariableGradient< true > & genericZeroGradient ()
 
const GenericVariableSecond< is_ad > & genericZeroSecond ()
 
const GenericVariableSecond< false > & genericZeroSecond ()
 
const GenericVariableSecond< true > & genericZeroSecond ()
 
bool checkVar (const std::string &var_name, unsigned int comp=0, unsigned int comp_bound=0) const
 
const MooseVariableFieldBasegetFEVar (const std::string &var_name, unsigned int comp) const
 
const MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp) const
 
MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp)
 
const T * getVarHelper (const std::string &var_name, unsigned int comp) const
 
T * getVarHelper (const std::string &var_name, unsigned int comp)
 
MooseVariablegetVar (const std::string &var_name, unsigned int comp)
 
const MooseVariablegetVar (const std::string &var_name, unsigned int comp) const
 
VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp)
 
const VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp) const
 
ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp)
 
const ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp) const
 
void validateExecutionerType (const std::string &name, const std::string &fn_name) const
 
std::vector< T > coupledVectorHelper (const std::string &var_name, const Func &func) const
 
void markMatPropRequested (const std::string &)
 
MaterialPropertyName getMaterialPropertyName (const std::string &name) const
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
void returnMappingSolve (const GenericReal< is_ad > &effective_trial_stress, GenericReal< is_ad > &scalar, const ConsoleStream &console)
 Perform the return mapping iterations. More...
 
virtual GenericReal< is_ad > initialGuess (const GenericReal< is_ad > &)
 Compute an initial guess for the value of the scalar. More...
 
virtual GenericChainedReal< is_ad > computeResidualAndDerivative (const GenericReal< is_ad > &, const GenericChainedReal< is_ad > &)
 Compute the residual and the derivative for a predicted value of the scalar. More...
 
virtual void preStep (const GenericReal< is_ad > &, const GenericReal< is_ad > &, const GenericReal< is_ad > &)
 This method is called before taking a step in the return mapping algorithm. More...
 
virtual void iterationFinalize (const GenericReal< is_ad > &)
 Finalize internal state variables for a model for a given iteration. More...
 
bool converged (const GenericReal< is_ad > &residual, const Real reference)
 Check to see whether the residual is within the convergence limits. More...
 

Protected Attributes

const GenericVariableValue< is_ad > & _temperature
 Coupled temperature variable. More...
 
const GenericMaterialProperty< Real, is_ad > * _environmental
 Optionally coupled environmental factor. More...
 
std::vector< std::pair< WindowFailure, WindowFailure > > _window_failure
 
const bool _verbose
 Flag to output verbose infromation. More...
 
const Real _max_cell_increment
 Maximum cell dislocation increment. More...
 
const Function *const _cell_function
 Optional cell dislocation forcing function. More...
 
GenericReal< is_ad > _cell_dislocation_increment
 Container for cell dislocation increment. More...
 
const Real _max_wall_increment
 Maximum wall dislocation increment. More...
 
const Function *const _wall_function
 Optional wall dislocation forcing function. More...
 
const Function *const _stress_function
 Optiontal effective stress forcing function. More...
 
GenericReal< is_ad > _wall_dislocation_increment
 Container for wall dislocation increment. More...
 
const unsigned int _cell_input_index
 Index corresponding to the position for the dislocations with in the cell in the input vector. More...
 
const unsigned int _wall_input_index
 Index corresponding to the position for the dislocations within the cell wall in the input vector. More...
 
const unsigned int _stress_input_index
 Index corresponding to the position for the stress in the input vector. More...
 
const unsigned int _old_strain_input_index
 Index corresponding to the position for the old strain in the input vector. More...
 
const unsigned int _temperature_input_index
 Index corresponding to the position for the tempeature in the input vector. More...
 
const unsigned int _environmental_input_index
 Index corresponding to the position for the environmental factor in the input vector. More...
 
const unsigned int _cell_output_index
 Index corresponding to the position for cell dislocations increment in the output vector. More...
 
const unsigned int _wall_output_index
 Index corresponding to the position for wall dislocations increment in the output vector. More...
 
const unsigned int _strain_output_index
 Index corresponding to the position for strain increment in the output vector. More...
 
const Function *const _creep_strain_old_forcing_function
 Optional old creep strain forcing function. More...
 
unsigned int _num_partitions
 Number of partitions. More...
 
std::vector< unsigned int_num_tiles
 Number of ROM tiles per partition. More...
 
unsigned int _num_inputs
 Number of inputs for the ROM data set. More...
 
unsigned int _num_outputs
 Number of inputs to the ROM data set. More...
 
std::vector< unsigned int_degree
 Legendre polynomial degree for the ROM data set for each partition. More...
 
std::vector< unsigned int_num_coefs
 Total number of Legendre polynomial coefficients for the ROM data set in each parition. More...
 
std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > _transform
 Transform rules defined by the ROM data set for each partition. More...
 
std::vector< std::vector< std::vector< std::vector< Real > > > > _transform_coefs
 Transform coefficients defined by the ROM data set for each partition. More...
 
std::vector< std::vector< std::vector< std::vector< Real > > > > _input_limits
 Input limits defined by the ROM data set for each partition. More...
 
std::vector< std::vector< std::vector< std::vector< Real > > > > _normalization_limits
 Normalization limits defined by the ROM data set for each partition. More...
 
std::vector< std::vector< std::vector< std::vector< Real > > > > _coefs
 Coefficients used with Legendre polynomials defined by the ROM data set for each partition. More...
 
std::vector< std::vector< std::vector< std::vector< std::vector< Real > > > > > _transformed_normalization_limits
 Limits transformed from readabile input to ROM readable limits for normalization. More...
 
std::vector< std::vector< unsigned int > > _makeframe_helper
 Helper container defined by the ROM data set. More...
 
GenericMaterialProperty< Real, is_ad > & _creep_rate
 Creep rate material property. More...
 
GenericMaterialProperty< Real, is_ad > & _cell_rate
 Cell dislocations rate of change. More...
 
GenericMaterialProperty< Real, is_ad > & _wall_rate
 Wall dislocations rate of change. More...
 
MaterialProperty< Real > & _extrapolation
 Material property to hold smootherstep applied in order to extrapolate. More...
 
GenericMaterialProperty< Real, is_ad > & _second_partition_weight
 Material property to store partition weight. More...
 
GenericReal< is_ad > _derivative
 Container for derivative of creep increment with respect to strain. More...
 
std::vector< GenericReal< is_ad > > _input_values
 Container for input values. More...
 
std::vector< Real_old_input_values
 Container for old input values. More...
 
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _rom_inputs
 Container for converted rom_inputs. More...
 
std::vector< std::vector< std::vector< std::vector< GenericReal< is_ad > > > > > _polynomial_inputs
 Container for ROM polynomial inputs. More...
 
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _precomputed_vals
 Container for ROM precomputed values. More...
 
std::vector< std::pair< Real, Real > > _global_limits
 Container for global limits. More...
 
std::vector< std::vector< GenericReal< is_ad > > > _non_stress_weights
 Container for weights for each tile as computed for all input values beside stress. More...
 
std::vector< std::vector< GenericReal< is_ad > > > _weights
 Container for weights for each tile as computed for all input values beside stress. More...
 
std::vector< GenericReal< is_ad > > _partition_weights
 Container for weights for each tile as computed for all input values beside stress. More...
 
std::vector< GenericReal< is_ad > > _dpartition_weight_dstress
 Container for d_parition_weights d_stress. More...
 
std::vector< std::vector< unsigned int > > _tiling
 Container for tiling orientations. More...
 
std::vector< Real_cutoff
 Container for strain cutoff. More...
 
Real _stress_ucf
 Unit conversion factors required to convert from the specified unit to MPa. More...
 
RankTwoTensor _plastic_strain_increment
 Total plastic strain increment in step (summing substep contributions) More...
 
MaterialProperty< Real > & _number_of_substeps
 Material property capturing number of substeps for output purposes (defaults to one if substepping isn't used) More...
 
std::vector< std::string > _index_name
 index names for error output More...
 
nlohmann::json _json
 JSON object constructed from the datafile. More...
 
 usingTransientInterfaceMembers
 
const std::string _name
 
const MooseArray< Point > & _q_point
 
unsigned int _qp
 
GenericMaterialProperty< RankTwoTensor, is_ad > & _creep_strain
 Creep strain material property. More...
 
const MaterialProperty< RankTwoTensor > & _creep_strain_old
 
GenericReal< is_ad > _three_shear_modulus
 3 * shear modulus More...
 
GenericMaterialProperty< Real, is_ad > & _effective_inelastic_strain
 
const MaterialProperty< Real > & _effective_inelastic_strain_old
 
GenericReal< is_ad > _effective_inelastic_strain_increment
 Stores the scalar effective inelastic strain increment from Newton iteration. More...
 
Real _max_inelastic_increment
 Maximum allowable scalar inelastic strain increment, used to control the timestep size in conjunction with a user object. More...
 
const Real _substep_tolerance
 Used to calculate the number of substeps taken in the radial return algorithm, when substepping is enabled, based on the elastic strain increment ratio to the maximum inelastic increment. More...
 
const RankTwoTensor _identity_two
 Rank two identity tensor. More...
 
const RankFourTensor _identity_symmetric_four
 Rank four symmetric identity tensor. More...
 
const RankFourTensor _deviatoric_projection_four
 Rank four deviatoric projection tensor. More...
 
const bool _apply_strain
 Debugging option to enable specifying instead of calculating strain. More...
 
SubsteppingType _use_substepping
 Whether user has requested the use of substepping technique to improve convergence [make const later]. More...
 
const bool _adaptive_substepping
 Use adaptive substepping, cutting substep sizes until convergence is achieved. More...
 
const unsigned int _maximum_number_substeps
 Maximum number of substeps. If the calculation results in a larger number, cut overall time step. More...
 
Real _dt_original
 original timestep (to be restored after substepping is completed) More...
 
const std::string _base_name
 Name used as a prefix for all material properties related to the stress update model. More...
 
 CURR
 
 PREV
 
bool _bnd
 
bool _neighbor
 
const QBase *const & _qrule
 
const MooseArray< Real > & _JxW
 
const SubdomainID_current_subdomain_id
 
const unsigned int_current_side
 
const ConstantTypeEnum _constant_option
 
SubProblem_subproblem
 
FEProblemBase_fe_problem
 
THREAD_ID _tid
 
Assembly_assembly
 
const MooseArray< Real > & _coord
 
const MooseArray< Point > & _normals
 
MooseMesh_mesh
 
const Moose::CoordinateSystemType_coord_sys
 
std::set< std::string > _requested_props
 
std::set< std::string > _supplied_props
 
std::set< unsigned int_supplied_prop_ids
 
std::unordered_set< unsigned int_active_prop_ids
 
const bool _compute
 
std::unordered_map< unsigned int, unsigned int_props_to_min_states
 
std::vector< unsigned int_displacements
 
bool _has_stateful_property
 
bool _overrides_init_stateful_props
 
const FaceInfo_face_info
 
const bool & _enabled
 
MooseApp_app
 
const std::string _type
 
const InputParameters_pars
 
Factory_factory
 
ActionFactory_action_factory
 
const MaterialData_blk_material_data
 
const ExecFlagEnum_execute_enum
 
const ExecFlagType_current_execute_flag
 
FEProblemBase_sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real_real_zero
 
const VariableValue_scalar_zero
 
const Point & _point_zero
 
const InputParameters_ti_params
 
FEProblemBase_ti_feproblem
 
bool _is_implicit
 
Real_t
 
const Real_t_old
 
int_t_step
 
Real_dt_old
 
bool _is_transient
 
MooseApp_restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase_mci_feproblem
 
GeometricSearchData_geometric_search_data
 
bool _requires_geometric_search
 
const InputParameters_c_parameters
 
const std::string & _c_name
 
const std::string & _c_type
 
FEProblemBase_c_fe_problem
 
const SystemBase *const _c_sys
 
std::unordered_map< std::string, std::vector< MooseVariableFieldBase *> > _coupled_vars
 
std::vector< MooseVariableFieldBase *> _coupled_moose_vars
 
std::vector< MooseVariable *> _coupled_standard_moose_vars
 
std::vector< VectorMooseVariable *> _coupled_vector_moose_vars
 
std::vector< ArrayMooseVariable *> _coupled_array_moose_vars
 
std::vector< MooseVariableFV< Real > *> _coupled_standard_fv_moose_vars
 
std::vector< MooseLinearVariableFV< Real > *> _coupled_standard_linear_fv_moose_vars
 
const std::unordered_map< std::string, std::string > & _new_to_deprecated_coupled_vars
 
bool _c_nodal
 
bool _c_is_implicit
 
const bool _c_allow_element_to_nodal_coupling
 
THREAD_ID _c_tid
 
std::unordered_map< std::string, std::vector< std::unique_ptr< VariableValue > > > _default_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADReal > > > _ad_default_value
 
std::unordered_map< std::string, std::unique_ptr< VectorVariableValue > > _default_vector_value
 
std::unordered_map< std::string, std::unique_ptr< ArrayVariableValue > > _default_array_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADRealVectorValue > > > _ad_default_vector_value
 
VariableValue _default_value_zero
 
VariableGradient _default_gradient
 
MooseArray< ADRealVectorValue_ad_default_gradient
 
MooseArray< ADRealTensorValue_ad_default_vector_gradient
 
VariableSecond _default_second
 
MooseArray< ADRealTensorValue_ad_default_second
 
MooseArray< ADRealVectorValue_ad_default_curl
 
const VariableValue_zero
 
const VariablePhiValue_phi_zero
 
const MooseArray< ADReal > & _ad_zero
 
const VariableGradient_grad_zero
 
const MooseArray< ADRealVectorValue > & _ad_grad_zero
 
const VariablePhiGradient_grad_phi_zero
 
const VariableSecond_second_zero
 
const MooseArray< ADRealTensorValue > & _ad_second_zero
 
const VariablePhiSecond_second_phi_zero
 
const VectorVariableValue_vector_zero
 
const VectorVariableCurl_vector_curl_zero
 
VectorVariableValue _default_vector_value_zero
 
VectorVariableGradient _default_vector_gradient
 
VectorVariableCurl _default_vector_curl
 
VectorVariableDivergence _default_div
 
ArrayVariableValue _default_array_value_zero
 
ArrayVariableGradient _default_array_gradient
 
bool _coupleable_neighbor
 
const InputParameters_mi_params
 
const std::string _mi_name
 
const MooseObjectName _mi_moose_object_name
 
FEProblemBase_mi_feproblem
 
SubProblem_mi_subproblem
 
const THREAD_ID _mi_tid
 
const Moose::MaterialDataType _material_data_type
 
MaterialData_material_data
 
bool _stateful_allowed
 
bool _get_material_property_called
 
std::vector< std::unique_ptr< PropertyValue > > _default_properties
 
std::unordered_set< unsigned int_material_property_dependencies
 
const MaterialPropertyName _get_suffix
 
const bool _use_interpolated_state
 
const Parallel::Communicator & _communicator
 
bool _check_range
 Whether to check to see whether iterative solution is within admissible range, and set within that range if outside. More...
 
bool _line_search
 Whether to use line searches to improve convergence. More...
 
bool _bracket_solution
 Whether to save upper and lower bounds of root for scalar, and set solution to the midpoint between those bounds if outside them. More...
 
GenericMaterialProperty< Real, is_ad > & _cell_dislocations
 Material properties for cell (glissile) dislocation densities (1/m^2) More...
 
const MaterialProperty< Real > & _cell_dislocations_old
 
GenericMaterialProperty< Real, is_ad > & _wall_dislocations
 Material properties for wall (locked) dislocation densities (1/m^2) More...
 
const MaterialProperty< Real > & _wall_dislocations_old
 
GenericMaterialProperty< Real, is_ad > & _wall_dislocations_step
 Material properties accumulated at substeps. More...
 
GenericMaterialProperty< Real, is_ad > & _cell_dislocations_step
 

Static Protected Attributes

static RankFourTensor _identityTensor
 
static const std::string _interpolated_old
 
static const std::string _interpolated_older
 

Detailed Description

template<bool is_ad>
class LAROMANCEStressUpdateBaseTempl< is_ad >

Definition at line 16 of file LAROMANCEStressUpdateBase.h.

Member Typedef Documentation

◆ GR2

Definition at line 57 of file StressUpdateBase.h.

◆ GR4

Definition at line 59 of file StressUpdateBase.h.

◆ GSR2

Definition at line 58 of file StressUpdateBase.h.

◆ GSR4

Definition at line 60 of file StressUpdateBase.h.

Member Enumeration Documentation

◆ ROMInputTransform

template<bool is_ad>
enum LAROMANCEStressUpdateBaseTempl::ROMInputTransform
strongprotected
Enumerator
LINEAR 
LOG 
EXP 

Definition at line 33 of file LAROMANCEStressUpdateBase.h.

34  {
35  LINEAR,
36  LOG,
37  EXP
38  };

◆ SubsteppingType

template<bool is_ad>
enum RadialReturnStressUpdateTempl::SubsteppingType
stronginherited
Enumerator
NONE 
ERROR_BASED 
INCREMENT_BASED 

Definition at line 43 of file RadialReturnStressUpdate.h.

44  {
45  NONE,
46  ERROR_BASED,
47  INCREMENT_BASED
48  };
NONE

◆ WindowFailure

template<bool is_ad>
enum LAROMANCEStressUpdateBaseTempl::WindowFailure
strongprotected

Enum to error, warn, ignore, or extrapolate if input is outside of window of applicability.

Enumerator
ERROR 
EXCEPTION 
WARN 
IGNORE 
DONOTHING 
USELIMIT 
EXTRAPOLATE 

Definition at line 80 of file LAROMANCEStressUpdateBase.h.

81  {
82  ERROR,
83  EXCEPTION,
84  WARN,
85  IGNORE,
86  DONOTHING,
87  USELIMIT,
88  EXTRAPOLATE
89  };

Constructor & Destructor Documentation

◆ LAROMANCEStressUpdateBaseTempl()

template<bool is_ad>
LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl ( const InputParameters parameters)

Definition at line 166 of file LAROMANCEStressUpdateBase.C.

169  _temperature(this->template coupledGenericValue<is_ad>("temperature")),
171  this->isParamValid("environmental_factor")
172  ? &this->template getGenericMaterialProperty<Real, is_ad>("environmental_factor")
173  : nullptr),
175 
176  _verbose(this->template getParam<bool>("verbose")),
178  this->template declareGenericProperty<Real, is_ad>(this->_base_name + "cell_dislocations")),
180  this->template getMaterialPropertyOld<Real>(this->_base_name + "cell_dislocations")),
181  _max_cell_increment(this->template getParam<Real>("max_relative_cell_dislocation_increment")),
182  _cell_function(this->isParamValid("cell_dislocation_density_forcing_function")
183  ? &this->getFunction("cell_dislocation_density_forcing_function")
184  : NULL),
187  this->template declareGenericProperty<Real, is_ad>(this->_base_name + "wall_dislocations")),
189  this->template getMaterialPropertyOld<Real>(this->_base_name + "wall_dislocations")),
190  _max_wall_increment(this->template getParam<Real>("max_relative_wall_dislocation_increment")),
191  _wall_function(this->isParamValid("wall_dislocation_density_forcing_function")
192  ? &this->getFunction("wall_dislocation_density_forcing_function")
193  : NULL),
194  _stress_function(this->isParamValid("effective_stress_forcing_function")
195  ? &this->getFunction("effective_stress_forcing_function")
196  : NULL),
207 
208  _creep_strain_old_forcing_function(this->isParamValid("old_creep_strain_forcing_function")
209  ? &this->getFunction("old_creep_strain_forcing_function")
210  : NULL),
211 
212  _creep_rate(
213  this->template declareGenericProperty<Real, is_ad>(this->_base_name + "creep_rate")),
214  _cell_rate(this->template declareGenericProperty<Real, is_ad>(this->_base_name +
215  "cell_dislocation_rate")),
216  _wall_rate(this->template declareGenericProperty<Real, is_ad>(this->_base_name +
217  "wall_dislocation_rate")),
218  _extrapolation(this->template declareProperty<Real>("ROM_extrapolation")),
220  this->template declareGenericProperty<Real, is_ad>("partition_weight")),
221 
222  _derivative(0.0),
224  _wall_dislocations_step(this->template declareGenericProperty<Real, is_ad>(
225  this->_base_name + "wall_dislocations_step")),
226  _cell_dislocations_step(this->template declareGenericProperty<Real, is_ad>(
227  this->_base_name + "cell_dislocations_step")),
230  this->template declareProperty<Real>(this->_base_name + "number_of_substeps")),
232 {
233  this->_check_range = true; // this may not be necessary?
234 
235  _index_name[_cell_input_index] = "cell";
236  _index_name[_wall_input_index] = "wall";
237  _index_name[_stress_input_index] = "stress";
238  _index_name[_old_strain_input_index] = "old strain";
239  _index_name[_temperature_input_index] = "temperature";
240 
242  parameters.get<MooseEnum>("cell_input_window_low_failure").getEnum<WindowFailure>();
244  parameters.get<MooseEnum>("cell_input_window_high_failure").getEnum<WindowFailure>();
246  parameters.get<MooseEnum>("wall_input_window_low_failure").getEnum<WindowFailure>();
248  parameters.get<MooseEnum>("wall_input_window_high_failure").getEnum<WindowFailure>();
250  parameters.get<MooseEnum>("stress_input_window_low_failure").getEnum<WindowFailure>();
252  parameters.get<MooseEnum>("stress_input_window_high_failure").getEnum<WindowFailure>();
254  parameters.get<MooseEnum>("old_strain_input_window_low_failure").getEnum<WindowFailure>();
256  parameters.get<MooseEnum>("old_strain_input_window_high_failure").getEnum<WindowFailure>();
258  parameters.get<MooseEnum>("temperature_input_window_low_failure").getEnum<WindowFailure>();
260  parameters.get<MooseEnum>("temperature_input_window_high_failure").getEnum<WindowFailure>();
261  if (_environmental)
262  {
263  _index_name[_environmental_input_index] = "environmental";
265  parameters.get<MooseEnum>("environment_input_window_low_failure").getEnum<WindowFailure>();
267  parameters.get<MooseEnum>("environment_input_window_high_failure").getEnum<WindowFailure>();
268  }
269 
270  // load JSON datafile
271  if (this->isParamValid("model"))
272  {
273  const auto model_file_name = this->template getParam<DataFileName>("model");
274  std::ifstream model_file(model_file_name.c_str());
275  model_file >> _json;
276  }
277 
279 }
nlohmann::json _json
JSON object constructed from the datafile.
GenericMaterialProperty< Real, is_ad > & _cell_dislocations_step
const unsigned int _cell_output_index
Index corresponding to the position for cell dislocations increment in the output vector...
const Function *const _wall_function
Optional wall dislocation forcing function.
const Function *const _cell_function
Optional cell dislocation forcing function.
const unsigned int _old_strain_input_index
Index corresponding to the position for the old strain in the input vector.
GenericMaterialProperty< Real, is_ad > & _cell_dislocations
Material properties for cell (glissile) dislocation densities (1/m^2)
const GenericMaterialProperty< Real, is_ad > * _environmental
Optionally coupled environmental factor.
const std::string _base_name
Name used as a prefix for all material properties related to the stress update model.
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
const Function & getFunction(const std::string &name) const
const unsigned int _strain_output_index
Index corresponding to the position for strain increment in the output vector.
const Function *const _stress_function
Optiontal effective stress forcing function.
const Function *const _creep_strain_old_forcing_function
Optional old creep strain forcing function.
const GenericVariableValue< is_ad > & _temperature
Coupled temperature variable.
const MaterialProperty< Real > & _wall_dislocations_old
GenericReal< is_ad > _wall_dislocation_increment
Container for wall dislocation increment.
const unsigned int _wall_input_index
Index corresponding to the position for the dislocations within the cell wall in the input vector...
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
RankTwoTensor _plastic_strain_increment
Total plastic strain increment in step (summing substep contributions)
bool isParamValid(const std::string &name) const
std::vector< std::pair< WindowFailure, WindowFailure > > _window_failure
GenericMaterialProperty< Real, is_ad > & _second_partition_weight
Material property to store partition weight.
std::vector< Real > _old_input_values
Container for old input values.
const Real _max_wall_increment
Maximum wall dislocation increment.
const unsigned int _temperature_input_index
Index corresponding to the position for the tempeature in the input vector.
GenericMaterialProperty< Real, is_ad > & _wall_dislocations_step
Material properties accumulated at substeps.
const MaterialProperty< Real > & _cell_dislocations_old
std::vector< std::string > _index_name
index names for error output
const unsigned int _environmental_input_index
Index corresponding to the position for the environmental factor in the input vector.
virtual void setupUnitConversionFactors(const InputParameters &parameters)
GenericReal< is_ad > _derivative
Container for derivative of creep increment with respect to strain.
This class provides baseline functionallity for creep models based on the stress update material in a...
GenericMaterialProperty< Real, is_ad > & _creep_rate
Creep rate material property.
MaterialProperty< Real > & _number_of_substeps
Material property capturing number of substeps for output purposes (defaults to one if substepping is...
const bool _verbose
Flag to output verbose infromation.
const InputParameters & parameters() const
const unsigned int _cell_input_index
Index corresponding to the position for the dislocations with in the cell in the input vector...
GenericMaterialProperty< Real, is_ad > & _wall_rate
Wall dislocations rate of change.
const unsigned int _wall_output_index
Index corresponding to the position for wall dislocations increment in the output vector...
const Real _max_cell_increment
Maximum cell dislocation increment.
bool _check_range
Whether to check to see whether iterative solution is within admissible range, and set within that ra...
MaterialProperty< Real > & _extrapolation
Material property to hold smootherstep applied in order to extrapolate.
GenericReal< is_ad > _cell_dislocation_increment
Container for cell dislocation increment.
GenericMaterialProperty< Real, is_ad > & _cell_rate
Cell dislocations rate of change.
GenericMaterialProperty< Real, is_ad > & _wall_dislocations
Material properties for wall (locked) dislocation densities (1/m^2)

Member Function Documentation

◆ areTilesNotIdentical()

template<bool is_ad>
bool LAROMANCEStressUpdateBaseTempl< is_ad >::areTilesNotIdentical ( const unsigned int  p,
const unsigned int  t,
const unsigned int  tt,
const unsigned int  in_index 
)
protected

Checks if two tile domains are equal.

Parameters
pPartition index
tTile 1 index
ttTile 2 index
in_indexinput index
Returns
integer 0 (false) or 1 (true)

Definition at line 761 of file LAROMANCEStressUpdateBase.C.

765 {
766  if (_input_limits[p][t][in_index][0] != _input_limits[p][tt][in_index][0] &&
767  _input_limits[p][t][in_index][1] != _input_limits[p][tt][in_index][1])
768  return true;
769  else
770  return false;
771 }
std::vector< std::vector< std::vector< std::vector< Real > > > > _input_limits
Input limits defined by the ROM data set for each partition.

◆ buildPolynomials()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::buildPolynomials ( const unsigned int  p,
const GenericReal< is_ad > &  rom_input,
std::vector< GenericReal< is_ad >> &  polynomial_inputs,
const GenericReal< is_ad > &  drom_input = 0,
const bool  derivative = false 
)
protected

Assemble the array of Legendre polynomials to be multiplied by the ROM coefficients.

Parameters
pPartition index
rom_inputROM input
polynomial_inputsVector of transformed Legendre polynomials
drom_inputOptional derivative of ROM input with respect to stress
derivativeOptional flag to return derivative of converted input with respect to stress.

Definition at line 1015 of file LAROMANCEStressUpdateBase.C.

1021 {
1022  for (unsigned int d = 0; d < _degree[p]; ++d)
1023  {
1024  polynomial_inputs[d] = computePolynomial(rom_input, d);
1025 
1026  if (derivative)
1027  polynomial_inputs[d] = drom_input * computePolynomial(rom_input, d, derivative);
1028  }
1029 }
GenericReal< is_ad > computePolynomial(const GenericReal< is_ad > &value, const unsigned int degree, const bool derivative=false)
Calculate the value or derivative of Legendre polynomial up to 3rd order.
std::vector< unsigned int > _degree
Legendre polynomial degree for the ROM data set for each partition.

◆ calculateNumberSubsteps() [1/2]

template<bool is_ad>
int RadialReturnStressUpdateTempl< is_ad >::calculateNumberSubsteps ( const GenericRankTwoTensor< is_ad > &  strain_increment)
overridevirtualinherited

If substepping is enabled, calculate the number of substeps as a function of the elastic strain increment guess and the maximum inelastic strain increment ratio based on a user-specified tolerance.

Parameters
strain_incrementWhen called, this is the elastic strain guess
Returns
The number of substeps required

Definition at line 150 of file RadialReturnStressUpdate.C.

152 {
153  // compute an effective elastic strain measure
154  const GenericReal<is_ad> contracted_elastic_strain =
155  strain_increment.doubleContraction(strain_increment);
156  const Real effective_elastic_strain =
157  std::sqrt(3.0 / 2.0 * MetaPhysicL::raw_value(contracted_elastic_strain));
158 
159  if (MooseUtils::absoluteFuzzyEqual(effective_elastic_strain, 0.0))
160  return 1;
161 
163  {
164  const Real ratio = effective_elastic_strain / _max_inelastic_increment;
165 
166  if (ratio > _substep_tolerance)
167  return std::ceil(ratio / _substep_tolerance);
168  return 1;
169  }
170 
172  {
173  const Real accurate_time_step_ratio = _substep_tolerance / effective_elastic_strain;
174 
175  if (accurate_time_step_ratio < 1.0)
176  return std::ceil(1.0 / accurate_time_step_ratio);
177  return 1;
178  }
179 
180  mooseError("calculateNumberSubsteps should not have been called. Notify a developer.");
181 }
SubsteppingType _use_substepping
Whether user has requested the use of substepping technique to improve convergence [make const later]...
Moose::GenericType< Real, is_ad > GenericReal
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
auto raw_value(const Eigen::Map< T > &in)
Real _max_inelastic_increment
Maximum allowable scalar inelastic strain increment, used to control the timestep size in conjunction...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
const Real _substep_tolerance
Used to calculate the number of substeps taken in the radial return algorithm, when substepping is en...

◆ calculateNumberSubsteps() [2/2]

virtual int StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::calculateNumberSubsteps ( const GR2 )
inlinevirtualinherited

Given the elastic strain increment compute the number of substeps required to bring a substepped trial stress guess distance from the yield surface into the tolerance specified in the individual child class.

Definition at line 160 of file StressUpdateBase.h.

160 { return 1; }

◆ checkInTile()

template<bool is_ad>
bool LAROMANCEStressUpdateBaseTempl< is_ad >::checkInTile ( const unsigned int  p,
const unsigned int  t 
) const
protected

Checks if the input combination is in a specific tile.

Parameters
pPartition index
tTile index
Returns
bool if in tile

Definition at line 750 of file LAROMANCEStressUpdateBase.C.

751 {
752  for (unsigned int i = 0; i < _num_inputs; ++i)
753  if (_input_values[i] < _input_limits[p][t][i][0] ||
754  _input_values[i] > _input_limits[p][t][i][1])
755  return false;
756  return true;
757 }
unsigned int _num_inputs
Number of inputs for the ROM data set.
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
std::vector< std::vector< std::vector< std::vector< Real > > > > _input_limits
Input limits defined by the ROM data set for each partition.

◆ checkJSONKey()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::checkJSONKey ( const std::string &  key)
protected

check if a JSON file was loaded and if the specified key exists

Definition at line 1393 of file LAROMANCEStressUpdateBase.C.

Referenced by LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::getClassificationEll(), LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::getClassificationEta(), LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::getClassificationLuu(), LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::getClassificationMmean(), LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::getClassificationMscale(), LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::getClassificationVind(), LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::getClassificationXu(), LAROMANCEStressUpdateBaseTempl< is_ad >::getCoefs(), LAROMANCEStressUpdateBaseTempl< is_ad >::getInputLimits(), LAROMANCEStressUpdateBaseTempl< is_ad >::getStrainCutoff(), LAROMANCEStressUpdateBaseTempl< is_ad >::getTransform(), and LAROMANCEStressUpdateBaseTempl< is_ad >::getTransformCoefs().

1394 {
1395  if (!this->isParamValid("model"))
1396  this->paramError("model", "Specify a JSON data filename.");
1397 
1398  const auto model_file_name = this->template getParam<DataFileName>("model");
1399  if (_json.empty())
1400  this->paramError("model", "The specified JSON data file '", model_file_name, "' is empty.");
1401  if (!_json.contains(key))
1402  this->paramError(
1403  "model", "The key '", key, "' is missing from the JSON data file '", model_file_name, "'.");
1404 }
nlohmann::json _json
JSON object constructed from the datafile.
bool isParamValid(const std::string &name) const
void paramError(const std::string &param, Args... args) const

◆ computeDerivative()

template<bool is_ad>
virtual GenericReal<is_ad> LAROMANCEStressUpdateBaseTempl< is_ad >::computeDerivative ( const GenericReal< is_ad > &  ,
const GenericReal< is_ad > &   
)
inlineoverrideprotectedvirtual

Compute the derivative of the residual as a function of the scalar variable.

The residual should be in strain increment units for all models for consistency.

Parameters
effective_trial_stressEffective trial stress
scalarInelastic strain increment magnitude being solved for

Implements SingleVariableReturnMappingSolutionTempl< is_ad >.

Definition at line 59 of file LAROMANCEStressUpdateBase.h.

61  {
62  return _derivative;
63  }
GenericReal< is_ad > _derivative
Container for derivative of creep increment with respect to strain.

◆ computePartitionWeights()

template<bool is_ad>
virtual void LAROMANCEStressUpdateBaseTempl< is_ad >::computePartitionWeights ( std::vector< GenericReal< is_ad >> &  weights,
std::vector< GenericReal< is_ad >> &  dweights_dstress 
)
inlineprotectedvirtual

Compute the weight of the different partitions.

Parameters
weightsWeights for each partition
derivativeOptional flag to return derivative of the sigmoid w.r.t. the input

Reimplemented in LAROMANCEPartitionStressUpdateBaseTempl< is_ad >.

Definition at line 257 of file LAROMANCEStressUpdateBase.h.

259  {
260  if (_num_partitions != 1)
261  mooseError("Internal error: If number of partitions is not one, then computePartitionWeights "
262  "must be defined");
263  weights[0] = 1.0;
264  dweights_dstress[0] = 0.0;
265  }
unsigned int _num_partitions
Number of partitions.
void mooseError(Args &&... args) const

◆ computePolynomial()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::computePolynomial ( const GenericReal< is_ad > &  value,
const unsigned int  degree,
const bool  derivative = false 
)
protected

Calculate the value or derivative of Legendre polynomial up to 3rd order.

Parameters
valueInput to Legendre polynomial
degreeDegree of Legendre polynomial
derivativeOptional flag to return derivative of Legendre polynomial Legendre
Returns
Computed value from Legendre polynomial

Definition at line 1107 of file LAROMANCEStressUpdateBase.C.

1110 {
1111  if (degree == 0)
1112  {
1113  if (derivative)
1114  return 0.0;
1115  return 1.0;
1116  }
1117  else if (degree == 1)
1118  {
1119  if (derivative)
1120  return 1.0;
1121  return value;
1122  }
1123  else if (degree == 2)
1124  {
1125  if (derivative)
1126  return 3.0 * value;
1127  return 1.5 * Utility::pow<2>(value) - 0.5;
1128  }
1129  else
1130  {
1131  if (derivative)
1132  return 7.5 * Utility::pow<2>(value) - 1.5;
1133  return 2.5 * Utility::pow<3>(value) - 1.5 * value;
1134  }
1135 }
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)

◆ computeReferenceResidual()

template<bool is_ad>
Real RadialReturnStressUpdateTempl< is_ad >::computeReferenceResidual ( const GenericReal< is_ad > &  effective_trial_stress,
const GenericReal< is_ad > &  scalar 
)
overridevirtualinherited

Compute a reference quantity to be used for checking relative convergence.

This should be in strain increment units for all models for consistency.

Parameters
effective_trial_stressEffective trial stress
scalarInelastic strain increment magnitude being solved for

Implements SingleVariableReturnMappingSolutionTempl< is_ad >.

Definition at line 468 of file RadialReturnStressUpdate.C.

471 {
472  return MetaPhysicL::raw_value(effective_trial_stress / _three_shear_modulus) -
473  MetaPhysicL::raw_value(scalar_effective_inelastic_strain);
474 }
auto raw_value(const Eigen::Map< T > &in)
GenericReal< is_ad > _three_shear_modulus
3 * shear modulus

◆ computeResidual()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::computeResidual ( const GenericReal< is_ad > &  ,
const GenericReal< is_ad > &   
)
overrideprotectedvirtual

Compute the residual for a predicted value of the scalar.

This residual should be in strain increment units for all models for consistency.

Parameters
effective_trial_stressEffective trial stress
scalarInelastic strain increment magnitude being solved for

Implements SingleVariableReturnMappingSolutionTempl< is_ad >.

Definition at line 775 of file LAROMANCEStressUpdateBase.C.

777 {
778  mooseAssert(std::isfinite(MetaPhysicL::raw_value(effective_trial_stress)),
779  "computeResidual: effective_trial_stress must be finite");
780  mooseAssert(std::isfinite(MetaPhysicL::raw_value(scalar)),
781  "computeResidual: scalar must be finite!");
782  // Update new stress
783  GenericReal<is_ad> trial_stress_mpa = _stress_function
785  : effective_trial_stress * _stress_ucf;
786  GenericReal<is_ad> dtrial_stress_dscalar = 0.0;
787 
788  // Update stress if strain is being applied, i.e. non-testing simulation
789  if (this->_apply_strain)
790  {
791  trial_stress_mpa -= this->_three_shear_modulus * scalar * _stress_ucf;
792  dtrial_stress_dscalar -= this->_three_shear_modulus * _stress_ucf;
793  }
794  _input_values[_stress_input_index] = trial_stress_mpa;
795 
796  // Update weights for each partition with new stress
797  for (unsigned int p = 0; p < _num_partitions; ++p)
800  auto dweights_dstress = _non_stress_weights;
802  dweights_dstress, _input_values[_stress_input_index], _stress_input_index, true);
803 
805 
806  // Save extrapolation as a material property in order quantify adequate tiling range
807  _extrapolation[_qp] = 0.0;
808  for (unsigned int p = 0; p < _num_partitions; ++p)
809  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
811 
812  GenericReal<is_ad> total_rom_effective_strain_inc = 0.0;
813  GenericReal<is_ad> dtotal_rom_effective_strain_inc_dstress = 0.0;
814 
815  // Run ROM if all values are within windows.
816  for (unsigned int p = 0; p < _num_partitions; p++)
817  {
818  if (_partition_weights[p])
819  {
820  // compute weight normalizing factor
821  GenericReal<is_ad> weight_normalizer = 0;
822  unsigned int number_of_active_tiles = 0;
823  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
824  {
825  // count number of active tiles
826  number_of_active_tiles += checkInTile(p, t);
827  if (_weights[p][t])
828  {
829  // tile normalization factor (sum of tile weights)
830  weight_normalizer += _weights[p][t];
831  }
832  }
833 
834  // normalize weights only when 3 tiles overlap
835  if (number_of_active_tiles == 3)
836  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
837  {
838  _weights[p][t] /= weight_normalizer;
839  dweights_dstress[p][t] /= weight_normalizer;
840  }
841 
842  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
843  if (_weights[p][t])
844  {
846  if (rom == std::numeric_limits<float>::infinity())
847  mooseError("In ", _name, ": Output for strain increment reaches infinity: ", rom);
848 
849  total_rom_effective_strain_inc += _partition_weights[p] * _weights[p][t] * rom;
850 
851  dtotal_rom_effective_strain_inc_dstress +=
854  dtotal_rom_effective_strain_inc_dstress +=
855  _dpartition_weight_dstress[p] * _weights[p][t] * rom;
856  if (dweights_dstress[p][t])
857  dtotal_rom_effective_strain_inc_dstress +=
858  _partition_weights[p] * dweights_dstress[p][t] * rom;
859  }
860  }
861  }
862 
863  if (_verbose)
864  {
865  Moose::err << std::setprecision(9);
866  GenericReal<is_ad> environmental = 0.0;
867  if (_environmental)
868  environmental = (*_environmental)[_qp];
869  Moose::err << "Verbose information from " << _name << ": \n";
870  Moose::err << " dt: " << _dt << "\n";
871  Moose::err << " old cell disl: " << _old_input_values[_cell_output_index] << "\n";
872  Moose::err << " old wall disl: " << _old_input_values[_wall_output_index] << "\n";
873  Moose::err << " initial stress (MPa): "
874  << MetaPhysicL::raw_value(effective_trial_stress) * _stress_ucf << "\n";
875  Moose::err << " temperature: " << MetaPhysicL::raw_value(_temperature[_qp]) << "\n";
876  Moose::err << " environmental factor: " << MetaPhysicL::raw_value(environmental) << "\n";
877  Moose::err << " calculated scalar strain value: " << MetaPhysicL::raw_value(scalar) << "\n";
878  Moose::err << " trial stress into rom (MPa): " << MetaPhysicL::raw_value(trial_stress_mpa)
879  << "\n";
880  Moose::err << " old effective strain: " << _old_input_values[_strain_output_index] << "\n";
881  Moose::err << " extrapolation: " << MetaPhysicL::raw_value(_extrapolation[_qp]) << "\n";
882  Moose::err << " partition 2 weight: " << MetaPhysicL::raw_value(_second_partition_weight[_qp])
883  << "\n";
884  Moose::err << " weights by tile, partition 1: ";
885  for (unsigned int t = 0; t < _num_tiles[0]; ++t)
886  Moose::err << " (" << t << ", " << MetaPhysicL::raw_value(_weights[0][t]) << ") ";
887  Moose::err << "\n";
888  if (_num_partitions > 1)
889  {
890  Moose::err << " weights by tile, partition 2: ";
891  for (unsigned int t = 0; t < _num_tiles[1]; ++t)
892  Moose::err << " (" << t << ", " << MetaPhysicL::raw_value(_weights[1][t]) << ") ";
893  }
894  Moose::err << "\n";
895  Moose::err << " nonstress weights by tile, partition 1: ";
896  for (unsigned int t = 0; t < _num_tiles[0]; ++t)
897  Moose::err << " (" << t << ", " << MetaPhysicL::raw_value(_non_stress_weights[0][t]) << ") ";
898  Moose::err << "\n";
899  if (_num_partitions > 1)
900  {
901  Moose::err << " nonstress weights by tile, partition 2: ";
902  for (unsigned int t = 0; t < _num_tiles[1]; ++t)
903  Moose::err << " (" << t << ", " << MetaPhysicL::raw_value(_non_stress_weights[1][t])
904  << ") ";
905  }
906  Moose::err << "\n";
907  Moose::err << " effective strain increment: "
908  << MetaPhysicL::raw_value(total_rom_effective_strain_inc) << std::endl;
909  }
910 
911  _creep_rate[_qp] = total_rom_effective_strain_inc / _dt;
912  _derivative = dtotal_rom_effective_strain_inc_dstress * dtrial_stress_dscalar - 1.0;
913 
914  if (!this->_apply_strain)
915  {
916  if (_verbose)
917  Moose::err << " Strain not applied due to apply_strain input parameter!" << std::endl;
918  _derivative = 1.0;
919  return 0.0;
920  }
921  return total_rom_effective_strain_inc - scalar;
922 }
Moose::GenericType< Real, is_ad > GenericReal
const unsigned int _cell_output_index
Index corresponding to the position for cell dislocations increment in the output vector...
std::vector< GenericReal< is_ad > > _dpartition_weight_dstress
Container for d_parition_weights d_stress.
const GenericMaterialProperty< Real, is_ad > * _environmental
Optionally coupled environmental factor.
const unsigned int _strain_output_index
Index corresponding to the position for strain increment in the output vector.
const Function *const _stress_function
Optiontal effective stress forcing function.
bool checkInTile(const unsigned int p, const unsigned int t) const
Checks if the input combination is in a specific tile.
auto raw_value(const Eigen::Map< T > &in)
const GenericVariableValue< is_ad > & _temperature
Coupled temperature variable.
GenericReal< is_ad > _three_shear_modulus
3 * shear modulus
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
unsigned int _num_partitions
Number of partitions.
GenericMaterialProperty< Real, is_ad > & _second_partition_weight
Material property to store partition weight.
std::vector< Real > _old_input_values
Container for old input values.
std::vector< GenericReal< is_ad > > _partition_weights
Container for weights for each tile as computed for all input values beside stress.
std::vector< std::vector< GenericReal< is_ad > > > _non_stress_weights
Container for weights for each tile as computed for all input values beside stress.
Real & _t
GenericReal< is_ad > _derivative
Container for derivative of creep increment with respect to strain.
const std::string _name
const bool _apply_strain
Debugging option to enable specifying instead of calculating strain.
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
std::vector< unsigned int > _num_tiles
Number of ROM tiles per partition.
GenericReal< is_ad > computeROM(const unsigned int tile, const unsigned int partition, const unsigned out_index, const bool derivative=false)
Computes the ROM calculated increment for a given output and tile.
std::vector< std::vector< GenericReal< is_ad > > > _weights
Container for weights for each tile as computed for all input values beside stress.
const MooseArray< Point > & _q_point
GenericMaterialProperty< Real, is_ad > & _creep_rate
Creep rate material property.
const bool _verbose
Flag to output verbose infromation.
void mooseError(Args &&... args) const
Real _stress_ucf
Unit conversion factors required to convert from the specified unit to MPa.
virtual Real value(Real t, const Point &p) const
void computeTileWeight(std::vector< std::vector< GenericReal< is_ad >>> &weights, GenericReal< is_ad > &input, const unsigned int in_index, const bool derivative=false)
Compute the contribution (weight) of each tile in each partition, based on the input and tile boundar...
virtual void computePartitionWeights(std::vector< GenericReal< is_ad >> &weights, std::vector< GenericReal< is_ad >> &dweights_dstress)
Compute the weight of the different partitions.
const unsigned int _wall_output_index
Index corresponding to the position for wall dislocations increment in the output vector...
MaterialProperty< Real > & _extrapolation
Material property to hold smootherstep applied in order to extrapolate.

◆ computeResidualAndDerivative()

template<bool is_ad>
virtual GenericChainedReal<is_ad> SingleVariableReturnMappingSolutionTempl< is_ad >::computeResidualAndDerivative ( const GenericReal< is_ad > &  ,
const GenericChainedReal< is_ad > &   
)
inlineprotectedvirtualinherited

Compute the residual and the derivative for a predicted value of the scalar.

This residual should be in strain increment units for all models for consistency.

Parameters
effective_trial_stressEffective trial stress
scalarInelastic strain increment magnitude being solved for

Reimplemented in CompositePowerLawCreepStressUpdateTempl< is_ad >, and PowerLawCreepStressUpdateTempl< is_ad >.

Definition at line 97 of file SingleVariableReturnMappingSolution.h.

99  {
100  mooseError("computeResidualAndDerivative has to be implemented if "
101  "automatic_differentiation_return_mapping = true.");
102  return 0;
103  };
void mooseError(Args &&... args)

◆ computeROM()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::computeROM ( const unsigned int  tile,
const unsigned int  partition,
const unsigned  out_index,
const bool  derivative = false 
)
protected

Computes the ROM calculated increment for a given output and tile.

Parameters
tileTile index
partitionPartition index
out_indexOutput index
derivativeOptional flag to return derivative of ROM increment with respect to stress.
Returns
ROM computed increment

Definition at line 956 of file LAROMANCEStressUpdateBase.C.

960 {
961  // Update due to new stress
964  _transform[p][t][out_index][_stress_input_index],
965  _transform_coefs[p][t][out_index][_stress_input_index],
967 
970 
971  // Compute ROM values
972  const GenericReal<is_ad> rom_output =
974 
975  // Return converted output if not derivative
976  if (!derivative)
977  return convertOutput(p, _old_input_values, rom_output, out_index);
978 
979  const GenericReal<is_ad> drom_input =
981  _transform[p][t][out_index][_stress_input_index],
982  _transform_coefs[p][t][out_index][_stress_input_index],
984  derivative);
985 
986  std::vector<GenericReal<is_ad>> dpolynomial_inputs(_degree[p], 0.0);
988  p, _rom_inputs[p][t][_stress_input_index], dpolynomial_inputs, drom_input, derivative);
989 
990  const GenericReal<is_ad> drom_output = computeValues(
991  p, _precomputed_vals[p][t], _polynomial_inputs[p][t], dpolynomial_inputs, derivative);
992  return convertOutput(p, _old_input_values, rom_output, out_index, drom_output, derivative);
993 }
Moose::GenericType< Real, is_ad > GenericReal
void buildPolynomials(const unsigned int p, const GenericReal< is_ad > &rom_input, std::vector< GenericReal< is_ad >> &polynomial_inputs, const GenericReal< is_ad > &drom_input=0, const bool derivative=false)
Assemble the array of Legendre polynomials to be multiplied by the ROM coefficients.
GenericReal< is_ad > normalizeInput(const GenericReal< is_ad > &input, const ROMInputTransform transform, const Real transform_coef, const std::vector< Real > &transformed_limits, const bool derivative=false)
Convert the input variables into the form expected by the ROM Legendre polynomials to have a normaliz...
std::vector< unsigned int > _degree
Legendre polynomial degree for the ROM data set for each partition.
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
std::vector< Real > _old_input_values
Container for old input values.
std::vector< std::vector< std::vector< std::vector< std::vector< Real > > > > > _transformed_normalization_limits
Limits transformed from readabile input to ROM readable limits for normalization. ...
GenericReal< is_ad > computeValues(const unsigned int p, const std::vector< GenericReal< is_ad >> &precomputed, const std::vector< std::vector< GenericReal< is_ad >>> &polynomial_inputs, const std::vector< GenericReal< is_ad >> &dpolynomial_inputs={}, const bool derivative=false)
Arranges the calculated Legendre polynomials into the proper oder and multiplies the Legendre polynom...
virtual GenericReal< is_ad > convertOutput(const unsigned int p, const std::vector< Real > &old_input_values, const GenericReal< is_ad > &rom_output, const unsigned out_index, const GenericReal< is_ad > &drom_output=0.0, const bool derivative=false)
Computes the output variable increments from the ROM predictions by bringing out of the normalized ma...
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _precomputed_vals
Container for ROM precomputed values.
std::vector< std::vector< std::vector< std::vector< GenericReal< is_ad > > > > > _polynomial_inputs
Container for ROM polynomial inputs.
std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > _transform
Transform rules defined by the ROM data set for each partition.
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _rom_inputs
Container for converted rom_inputs.
std::vector< std::vector< std::vector< std::vector< Real > > > > _transform_coefs
Transform coefficients defined by the ROM data set for each partition.

◆ computeStrainEnergyRateDensity()

virtual Real StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::computeStrainEnergyRateDensity ( const GenericMaterialProperty< RankTwoTensor, is_ad > &  ,
const GenericMaterialProperty< RankTwoTensor, is_ad > &   
)
inlinevirtualinherited

Compute the strain energy rate density for this inelastic model for the current step.

Parameters
stressThe stress tensor at the end of the step
strain_rateThe strain rate at the end of the step
Returns
The computed strain energy rate density

Reimplemented in CompositePowerLawCreepStressUpdateTempl< is_ad >, and PowerLawCreepStressUpdateTempl< is_ad >.

Definition at line 180 of file StressUpdateBase.h.

183  {
184  mooseError(
185  "The computation of strain energy rate density needs to be implemented by a child class");
186  return 0.0;
187  }
void mooseError(Args &&... args) const

◆ computeStressDerivative() [1/2]

template<bool is_ad>
Real RadialReturnCreepStressUpdateBaseTempl< is_ad >::computeStressDerivative ( const Real  effective_trial_stress,
const Real  scalar 
)
overrideprotectedvirtualinherited

This method returns the derivative of the creep strain with respect to the von mises stress.

It assumes the stress delta (von mises stress used to determine the creep rate) is calculated as: effective_trial_stress - _three_shear_modulus * scalar

Reimplemented from RadialReturnStressUpdateTempl< is_ad >.

Definition at line 52 of file RadialReturnCreepStressUpdateBase.C.

54 {
55  mooseError("computeStressDerivative called: no stress derivative computation is needed for AD");
56 }
void mooseError(Args &&... args) const

◆ computeStressDerivative() [2/2]

template<>
Real RadialReturnCreepStressUpdateBaseTempl< false >::computeStressDerivative ( const Real  ,
const Real   
)
protectedvirtualinherited

Calculate the derivative of the strain increment with respect to the updated stress.

Parameters
effective_trial_stressEffective trial stress
scalarInelastic strain increment magnitude being solved for

Reimplemented from RadialReturnStressUpdateTempl< is_ad >.

Definition at line 60 of file RadialReturnCreepStressUpdateBase.C.

62 {
63  return -(computeDerivative(effective_trial_stress, scalar) + 1.0) / this->_three_shear_modulus;
64 }
virtual GenericReal< is_ad > computeDerivative(const GenericReal< is_ad > &, const GenericReal< is_ad > &)=0
Compute the derivative of the residual as a function of the scalar variable.
GenericReal< is_ad > _three_shear_modulus
3 * shear modulus

◆ computeStressFinalize()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::computeStressFinalize ( const GenericRankTwoTensor< is_ad > &  )
overrideprotectedvirtual

Perform any necessary steps to finalize state after return mapping iterations.

Parameters
inelasticStrainIncrementInelastic strain increment

Reimplemented from RadialReturnCreepStressUpdateBaseTempl< is_ad >.

Definition at line 1182 of file LAROMANCEStressUpdateBase.C.

1184 {
1188  {
1190  for (unsigned int p = 0; p < _num_partitions; ++p)
1191  if (_partition_weights[p])
1192  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
1193  if (_weights[p][t])
1197  for (unsigned int p = 0; p < _num_partitions; ++p)
1198  if (_partition_weights[p])
1199  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
1200  if (_weights[p][t])
1203  }
1204 
1209 
1210  // For (possibly) substepping.
1211  _plastic_strain_increment += MetaPhysicL::raw_value(plastic_strain_increment);
1212 
1213  // Prevent the ROM from calculating and proceeding with negative dislocations
1214  if (_apply_strain && (_cell_dislocations[_qp] < 0.0 || _wall_dislocations[_qp] < 0.0))
1215  mooseException("In ",
1216  _name,
1217  ": Negative disclocation density calculated for cell (old : ",
1219  " increment: ",
1221  " value: ",
1223  ") or wall (old : ",
1225  " increment: ",
1227  " value: ",
1229  ").");
1230 
1231  if (_verbose)
1232  {
1233  Moose::err << " Finalized ROM output\n";
1234  Moose::err << " effective creep strain increment: "
1235  << std::sqrt(2.0 / 3.0 *
1238  << "\n";
1239  Moose::err << " total effective creep strain: "
1240  << std::sqrt(2.0 / 3.0 *
1241  MetaPhysicL::raw_value(this->_creep_strain[_qp].doubleContraction(
1242  this->_creep_strain[_qp])))
1243  << "\n";
1244  Moose::err << " creep rate: " << MetaPhysicL::raw_value(_creep_rate[_qp]) << "\n";
1245  Moose::err << " cell dislocation rate: " << MetaPhysicL::raw_value(_cell_rate[_qp]) << "\n";
1246  Moose::err << " wall dislocation rate: " << MetaPhysicL::raw_value(_wall_rate[_qp]) << "\n";
1247  Moose::err << " new cell dislocations: " << MetaPhysicL::raw_value(_cell_dislocations[_qp])
1248  << "\n";
1249  Moose::err << " new wall dislocations: " << MetaPhysicL::raw_value(_wall_dislocations[_qp])
1250  << "\n"
1251  << std::endl;
1252  }
1253 
1256 }
const unsigned int _cell_output_index
Index corresponding to the position for cell dislocations increment in the output vector...
GenericMaterialProperty< Real, is_ad > & _cell_dislocations
Material properties for cell (glissile) dislocation densities (1/m^2)
auto raw_value(const Eigen::Map< T > &in)
GenericReal< is_ad > _wall_dislocation_increment
Container for wall dislocation increment.
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
unsigned int _num_partitions
Number of partitions.
RankTwoTensor _plastic_strain_increment
Total plastic strain increment in step (summing substep contributions)
void precomputeROM(const unsigned out_index)
Precompute the ROM strain rate information for all inputs except for strain.
std::vector< Real > _old_input_values
Container for old input values.
std::vector< GenericReal< is_ad > > _partition_weights
Container for weights for each tile as computed for all input values beside stress.
Real doubleContraction(const RankTwoTensorTempl< Real > &a) const
const std::string _name
const bool _apply_strain
Debugging option to enable specifying instead of calculating strain.
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
std::vector< unsigned int > _num_tiles
Number of ROM tiles per partition.
GenericReal< is_ad > computeROM(const unsigned int tile, const unsigned int partition, const unsigned out_index, const bool derivative=false)
Computes the ROM calculated increment for a given output and tile.
std::vector< std::vector< GenericReal< is_ad > > > _weights
Container for weights for each tile as computed for all input values beside stress.
GenericMaterialProperty< Real, is_ad > & _creep_rate
Creep rate material property.
GenericMaterialProperty< RankTwoTensor, is_ad > & _creep_strain
Creep strain material property.
const bool _verbose
Flag to output verbose infromation.
GenericMaterialProperty< Real, is_ad > & _wall_rate
Wall dislocations rate of change.
const unsigned int _wall_output_index
Index corresponding to the position for wall dislocations increment in the output vector...
GenericReal< is_ad > _cell_dislocation_increment
Container for cell dislocation increment.
GenericMaterialProperty< Real, is_ad > & _cell_rate
Cell dislocations rate of change.
virtual void computeStressFinalize(const GenericRankTwoTensor< is_ad > &plastic_strain_increment) override
Perform any necessary steps to finalize state after return mapping iterations.
GenericMaterialProperty< Real, is_ad > & _wall_dislocations
Material properties for wall (locked) dislocation densities (1/m^2)

◆ computeStressInitialize()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::computeStressInitialize ( const GenericReal< is_ad > &  effective_trial_stress,
const GenericRankFourTensor< is_ad > &  elasticity_tensor 
)
overrideprotectedvirtual

Perform any necessary initialization before return mapping iterations.

Parameters
effective_trial_stressEffective trial stress
elasticityTensorElasticity tensor

Reimplemented from RadialReturnStressUpdateTempl< is_ad >.

Definition at line 550 of file LAROMANCEStressUpdateBase.C.

553 {
555  elasticity_tensor);
556  // Previous substep creep strain
557  RankTwoTensor creep_strain_substep = this->_creep_strain_old[_qp] + _plastic_strain_increment;
558 
559  // Prepare old values
572  std::sqrt((creep_strain_substep).doubleContraction(creep_strain_substep) / 1.5));
573 
574  // Prepare input
578  : effective_trial_stress * _stress_ucf;
581  if (_environmental)
582  _input_values[_environmental_input_index] = (*_environmental)[_qp];
583 
584  // Determine tile weight and check if input is in range
585  for (unsigned int p = 0; p < _num_partitions; ++p)
586  std::fill(_non_stress_weights[p].begin(), _non_stress_weights[p].end(), 1.0);
587  for (unsigned int i = 0; i < _num_inputs; i++)
588  if (i != _stress_input_index)
590 
591  // Precompute transformed input and prebuild polynomials for inputs other than strain
593 }
const MaterialProperty< RankTwoTensor > & _creep_strain_old
GenericMaterialProperty< Real, is_ad > & _cell_dislocations_step
const unsigned int _cell_output_index
Index corresponding to the position for cell dislocations increment in the output vector...
const Function *const _wall_function
Optional wall dislocation forcing function.
const Function *const _cell_function
Optional cell dislocation forcing function.
const unsigned int _old_strain_input_index
Index corresponding to the position for the old strain in the input vector.
const GenericMaterialProperty< Real, is_ad > * _environmental
Optionally coupled environmental factor.
const unsigned int _strain_output_index
Index corresponding to the position for strain increment in the output vector.
const Function *const _stress_function
Optiontal effective stress forcing function.
virtual void computeStressInitialize(const GenericReal< is_ad > &effective_trial_stress, const GenericRankFourTensor< is_ad > &elasticity_tensor)
Perform any necessary initialization before return mapping iterations.
auto raw_value(const Eigen::Map< T > &in)
const Function *const _creep_strain_old_forcing_function
Optional old creep strain forcing function.
unsigned int _num_inputs
Number of inputs for the ROM data set.
const GenericVariableValue< is_ad > & _temperature
Coupled temperature variable.
const MaterialProperty< Real > & _wall_dislocations_old
const unsigned int _wall_input_index
Index corresponding to the position for the dislocations within the cell wall in the input vector...
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
unsigned int _num_partitions
Number of partitions.
RankTwoTensor _plastic_strain_increment
Total plastic strain increment in step (summing substep contributions)
void precomputeROM(const unsigned out_index)
Precompute the ROM strain rate information for all inputs except for strain.
std::vector< Real > _old_input_values
Container for old input values.
const unsigned int _temperature_input_index
Index corresponding to the position for the tempeature in the input vector.
std::vector< std::vector< GenericReal< is_ad > > > _non_stress_weights
Container for weights for each tile as computed for all input values beside stress.
GenericMaterialProperty< Real, is_ad > & _wall_dislocations_step
Material properties accumulated at substeps.
const MaterialProperty< Real > & _cell_dislocations_old
Real & _t
const unsigned int _environmental_input_index
Index corresponding to the position for the environmental factor in the input vector.
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
const MooseArray< Point > & _q_point
const unsigned int _cell_input_index
Index corresponding to the position for the dislocations with in the cell in the input vector...
Real _stress_ucf
Unit conversion factors required to convert from the specified unit to MPa.
virtual Real value(Real t, const Point &p) const
void computeTileWeight(std::vector< std::vector< GenericReal< is_ad >>> &weights, GenericReal< is_ad > &input, const unsigned int in_index, const bool derivative=false)
Compute the contribution (weight) of each tile in each partition, based on the input and tile boundar...
const unsigned int _wall_output_index
Index corresponding to the position for wall dislocations increment in the output vector...

◆ computeTangentOperator() [1/3]

template<bool is_ad>
void RadialReturnStressUpdateTempl< is_ad >::computeTangentOperator ( Real  effective_trial_stress,
const RankTwoTensor stress_new,
RankFourTensor tangent_operator 
)
inherited

Calculate the tangent_operator.

Definition at line 185 of file RadialReturnStressUpdate.C.

Referenced by ComputeCreepPlasticityStress::computeTangentOperators().

188 {
189  mooseError("computeTangentOperator called: no tangent computation is needed for AD");
190 }
void mooseError(Args &&... args) const

◆ computeTangentOperator() [2/3]

template<>
void RadialReturnStressUpdateTempl< false >::computeTangentOperator ( Real  effective_trial_stress,
const RankTwoTensor stress_new,
RankFourTensor tangent_operator 
)
inherited

Definition at line 194 of file RadialReturnStressUpdate.C.

197 {
199  {
201  tangent_operator.zero();
202  else
203  {
204  // mu = _three_shear_modulus / 3.0;
205  // norm_dev_stress = ||s_n+1||
206  // effective_trial_stress = von mises trial stress = std::sqrt(3.0 / 2.0) * ||s_n+1^trial||
207  // scalar_effective_inelastic_strain = Delta epsilon^cr_n+1
208  // deriv = derivative of scalar_effective_inelastic_strain w.r.t. von mises stress
209  // deriv = std::sqrt(3.0 / 2.0) partial Delta epsilon^cr_n+1n over partial ||s_n+1^trial||
210 
211  mooseAssert(_three_shear_modulus != 0.0, "Shear modulus is zero");
212 
213  const RankTwoTensor deviatoric_stress = stress_new.deviatoric();
214  const Real norm_dev_stress_squared = deviatoric_stress.doubleContraction(deviatoric_stress);
215  if (MooseUtils::absoluteFuzzyEqual(norm_dev_stress_squared, 0.0))
216  {
217  tangent_operator.zero();
218  return;
219  }
220  const Real norm_dev_stress = std::sqrt(norm_dev_stress_squared);
221 
222  const RankTwoTensor flow_direction = deviatoric_stress / norm_dev_stress;
223  const RankFourTensor flow_direction_dyad = flow_direction.outerProduct(flow_direction);
224  const Real deriv =
227  std::sqrt(1.5) / norm_dev_stress;
228 
229  tangent_operator = scalar_one * _deviatoric_projection_four +
230  (_three_shear_modulus * deriv - scalar_one) * flow_direction_dyad;
231  }
232  }
233 }
RankFourTensorTempl< Real > outerProduct(const RankTwoTensorTempl< Real > &b) const
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
const RankFourTensor _deviatoric_projection_four
Rank four deviatoric projection tensor.
virtual Real computeStressDerivative(const Real, const Real)
Calculate the derivative of the strain increment with respect to the updated stress.
GenericReal< is_ad > _three_shear_modulus
3 * shear modulus
RankTwoTensorTempl< Real > deviatoric() const
virtual TangentCalculationMethod getTangentCalculationMethod()
Real deriv(unsigned n, unsigned alpha, unsigned beta, Real x)
Real doubleContraction(const RankTwoTensorTempl< Real > &a) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
GenericReal< is_ad > _effective_inelastic_strain_increment
Stores the scalar effective inelastic strain increment from Newton iteration.

◆ computeTangentOperator() [3/3]

template<>
void RadialReturnStressUpdateTempl< false >::computeTangentOperator ( Real  effective_trial_stress,
const RankTwoTensor stress_new,
RankFourTensor tangent_operator 
)
inherited

◆ computeTileWeight()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::computeTileWeight ( std::vector< std::vector< GenericReal< is_ad >>> &  weights,
GenericReal< is_ad > &  input,
const unsigned int  in_index,
const bool  derivative = false 
)
protected

Compute the contribution (weight) of each tile in each partition, based on the input and tile boundaries (in terms of input domain).

Parameters
weightsWeights for each tile
inputInput value
in_indexInput index
derivativeOptional flag to return derivative of the sigmoid w.r.t. the input

Definition at line 597 of file LAROMANCEStressUpdateBase.C.

602 {
603  mooseAssert(std::isfinite(MetaPhysicL::raw_value(input)),
604  "computeTileWeight input must be finite");
605 
606  for (unsigned int p = 0; p < _num_partitions; ++p)
607  {
608  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
609  {
610  // If input is within a specfic tile's window of applicability
611  if (input >= _input_limits[p][t][in_index][0] && input <= _input_limits[p][t][in_index][1])
612  {
613  // If there is not more than one tile for this input, set derivative of
614  // weight to zero
615  if (_tiling[p][in_index] == 1)
616  {
617  if (derivative)
618  weights[p][t] = 0.0;
619  }
620  else
621  {
622  // Flag to ensure weights are applied only once
623  bool overlap = false;
624  for (unsigned int tt = 0; tt < _num_tiles[p]; ++tt)
625  {
626  if (!overlap && t != tt)
627  {
628  // If input is within another tile's window of applicability, check to see if inputs
629  // place us in that tile and ensure the two tiles are different in the dimension of
630  // interest
631  if (areTilesNotIdentical(p, t, tt, in_index) && checkInTile(p, tt))
632  {
633  overlap = true;
634 
635  // If current tile is below the second tile's window of applicability
636  if (_input_limits[p][t][in_index][0] < _input_limits[p][tt][in_index][0] &&
637  _input_limits[p][t][in_index][1] > _input_limits[p][tt][in_index][0])
638  {
639  weights[p][t] *= sigmoid(_input_limits[p][tt][in_index][0],
640  _input_limits[p][t][in_index][1],
641  input,
642  derivative);
643  }
644  // If current tile is above the second tile's window of applicability
645  else if (_input_limits[p][t][in_index][0] > _input_limits[p][tt][in_index][0] &&
646  _input_limits[p][t][in_index][0] < _input_limits[p][tt][in_index][1])
647  {
648  if (derivative)
649  weights[p][t] *= -sigmoid(_input_limits[p][t][in_index][0],
650  _input_limits[p][tt][in_index][1],
651  input,
652  derivative);
653  else
654  weights[p][t] *= (1.0 - sigmoid(_input_limits[p][t][in_index][0],
655  _input_limits[p][tt][in_index][1],
656  input));
657  }
658  }
659  }
660  }
661 
662  // If not overlapping, weight is not updated, and the derivative of tile weight is set to
663  // zero
664  if (!overlap && derivative)
665  weights[p][t] = 0.0;
666  }
667  }
668  // If input is below the lower tile limit
669  else if (input < _input_limits[p][t][in_index][0])
670  {
671  // If the lower tile limit equals the lower global limit
672  if (_input_limits[p][t][in_index][0] == _global_limits[in_index].first)
673  {
674  if (_window_failure[in_index].first == WindowFailure::EXTRAPOLATE)
675  {
676  if (derivative)
677  weights[p][t] *= -sigmoid(0.0, _input_limits[p][t][in_index][0], input, derivative);
678  else
679  weights[p][t] *= (1.0 - sigmoid(0.0, _input_limits[p][t][in_index][0], input));
680  input = _input_limits[p][t][in_index][0];
681  }
682  else if (_window_failure[in_index].first == WindowFailure::USELIMIT)
683  input = _input_limits[p][t][in_index][0];
684  else
685  {
686  weights[p][t] = 0.0;
687  std::stringstream msg;
688  msg << "In " << _name << ": " << _index_name[in_index]
689  << " input parameter with value (" << MetaPhysicL::raw_value(input)
690  << ") is out of lower global range (" << _input_limits[p][t][in_index][0] << ")";
691 
692  // Set input to edge of limit so it is found later in computePartitionWeights
693  input = _input_limits[p][t][in_index][0];
694 
695  if (_window_failure[in_index].first == WindowFailure::WARN)
696  mooseWarning(msg.str());
697  else if (_window_failure[in_index].first == WindowFailure::ERROR)
698  mooseError(msg.str());
699  else if (_window_failure[in_index].first == WindowFailure::EXCEPTION)
700  mooseException(msg.str());
701  // if (_window_failure[in_index].first == WindowFailure::DONOTHING) <- nothing is done
702  }
703  }
704  // if input below tile limit, update weight of tile to be zero
705  else
706  weights[p][t] = 0.0;
707  }
708  // If input is above the upper tile limit
709  else if (input > _input_limits[p][t][in_index][1])
710  {
711  if (_input_limits[p][t][in_index][1] == _global_limits[in_index].second)
712  {
713  if (_window_failure[in_index].second == WindowFailure::EXTRAPOLATE)
714  mooseError("Internal error. Extrapolate not appropriate for upper bound");
715  else if (_window_failure[in_index].second == WindowFailure::USELIMIT)
716  input = _input_limits[p][t][in_index][1];
717  else
718  {
719  weights[p][t] = 0.0;
720  std::stringstream msg;
721  msg << "In " << _name << ": " << _index_name[in_index]
722  << " input parameter with value (" << MetaPhysicL::raw_value(input)
723  << ") is out of upper global range (" << _input_limits[p][t][in_index][1] << ")";
724 
725  // Set input to edge of limit so it is found later in computePartitionWeights
726  input = _input_limits[p][t][in_index][1];
727 
728  if (_window_failure[in_index].second == WindowFailure::WARN)
729  mooseWarning(msg.str());
730  else if (_window_failure[in_index].second == WindowFailure::ERROR)
731  mooseError(msg.str());
732  else if (_window_failure[in_index].second == WindowFailure::EXCEPTION)
733  mooseException(msg.str());
734  // if (_window_failure[in_index].second == WindowFailure::DONOTHING) <- nothing is done
735  }
736  }
737  // if input above tile limit, update weight of tile to be zero
738  else
739  weights[p][t] = 0.0;
740  }
741  // If input is outside window of applicability, weight is zero
742  else
743  mooseError("In ", _name, ": Internal error. Outside input limits, input=", input);
744  }
745  }
746 }
bool checkInTile(const unsigned int p, const unsigned int t) const
Checks if the input combination is in a specific tile.
GenericReal< is_ad > sigmoid(const Real lower, const Real upper, const GenericReal< is_ad > &val, const bool derivative=false)
Calculate the sigmoid function weighting for the input based on the limits.
auto raw_value(const Eigen::Map< T > &in)
std::vector< std::pair< Real, Real > > _global_limits
Container for global limits.
void mooseWarning(Args &&... args) const
unsigned int _num_partitions
Number of partitions.
std::vector< std::pair< WindowFailure, WindowFailure > > _window_failure
std::vector< std::string > _index_name
index names for error output
const std::string _name
std::vector< unsigned int > _num_tiles
Number of ROM tiles per partition.
void mooseError(Args &&... args) const
std::vector< std::vector< std::vector< std::vector< Real > > > > _input_limits
Input limits defined by the ROM data set for each partition.
bool areTilesNotIdentical(const unsigned int p, const unsigned int t, const unsigned int tt, const unsigned int in_index)
Checks if two tile domains are equal.
std::vector< std::vector< unsigned int > > _tiling
Container for tiling orientations.

◆ computeTimeStepLimit()

template<bool is_ad>
Real LAROMANCEStressUpdateBaseTempl< is_ad >::computeTimeStepLimit ( )
overrideprotectedvirtual

Compute the limiting value of the time step for this material.

Returns
Limiting time step

Reimplemented from RadialReturnStressUpdateTempl< is_ad >.

Definition at line 1260 of file LAROMANCEStressUpdateBase.C.

1261 {
1263 
1264  Real cell_strain_inc = std::abs(MetaPhysicL::raw_value(_cell_dislocation_increment));
1265  if (cell_strain_inc && _old_input_values[_cell_output_index])
1266  limited_dt = std::min(limited_dt,
1268  cell_strain_inc);
1269  Real wall_strain_inc = std::abs(MetaPhysicL::raw_value(_wall_dislocation_increment));
1270  if (wall_strain_inc && _old_input_values[_wall_output_index])
1271  limited_dt = std::min(limited_dt,
1273  wall_strain_inc);
1274 
1275  return limited_dt;
1276 }
const unsigned int _cell_output_index
Index corresponding to the position for cell dislocations increment in the output vector...
auto raw_value(const Eigen::Map< T > &in)
GenericReal< is_ad > _wall_dislocation_increment
Container for wall dislocation increment.
std::vector< Real > _old_input_values
Container for old input values.
const Real _max_wall_increment
Maximum wall dislocation increment.
virtual Real computeTimeStepLimit() override
Compute the limiting value of the time step for this material.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const unsigned int _wall_output_index
Index corresponding to the position for wall dislocations increment in the output vector...
const Real _max_cell_increment
Maximum cell dislocation increment.
GenericReal< is_ad > _cell_dislocation_increment
Container for cell dislocation increment.

◆ computeValues()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::computeValues ( const unsigned int  p,
const std::vector< GenericReal< is_ad >> &  precomputed,
const std::vector< std::vector< GenericReal< is_ad >>> &  polynomial_inputs,
const std::vector< GenericReal< is_ad >> &  dpolynomial_inputs = {},
const bool  derivative = false 
)
protected

Arranges the calculated Legendre polynomials into the proper oder and multiplies the Legendre polynomials by the ROM coefficients to compute the predicted output values.

This method only manipulates the stress input, with all others handled in precomputeValues

Parameters
pPartition index
precomputedPrecomputed multiplication of polynomials
polynomial_inputsVector of Legendre polynomial transformation
dpolynomial_inputsVector of derivative of Legendre polynomial transformation with respect to stress
derivativeOptional flag to return derivative of converted computed values with respect to stress.
Returns
ROM output

Definition at line 1050 of file LAROMANCEStressUpdateBase.C.

1056 {
1057  GenericReal<is_ad> rom_output = 0.0;
1058  for (unsigned int c = 0; c < _num_coefs[p]; ++c)
1059  {
1060  if (!derivative)
1061  rom_output +=
1062  precomputed[c] *
1063  polynomial_inputs[_stress_input_index]
1065 
1066  else
1067  rom_output +=
1068  precomputed[c] *
1069  dpolynomial_inputs[_makeframe_helper[p][c + _num_coefs[p] * _stress_input_index]];
1070  }
1071  return rom_output;
1072 }
std::vector< unsigned int > _num_coefs
Total number of Legendre polynomial coefficients for the ROM data set in each parition.
Moose::GenericType< Real, is_ad > GenericReal
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
std::vector< std::vector< unsigned int > > _makeframe_helper
Helper container defined by the ROM data set.

◆ converged()

template<bool is_ad>
bool SingleVariableReturnMappingSolutionTempl< is_ad >::converged ( const GenericReal< is_ad > &  residual,
const Real  reference 
)
protectedinherited

Check to see whether the residual is within the convergence limits.

Parameters
residualCurrent value of the residual
referenceCurrent value of the reference quantity
Returns
Whether the model converged

Definition at line 326 of file SingleVariableReturnMappingSolution.C.

328 {
329  const Real residual = MetaPhysicL::raw_value(ad_residual);
330  return (std::abs(residual) <= _absolute_tolerance ||
331  std::abs(residual / reference) <= _relative_tolerance);
332 }
auto raw_value(const Eigen::Map< T > &in)
Real _relative_tolerance
Relative convergence tolerance.
Real _absolute_tolerance
Absolute convergence tolerance.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ convertOutput()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::convertOutput ( const unsigned int  p,
const std::vector< Real > &  old_input_values,
const GenericReal< is_ad > &  rom_output,
const unsigned  out_index,
const GenericReal< is_ad > &  drom_output = 0.0,
const bool  derivative = false 
)
protectedvirtual

Computes the output variable increments from the ROM predictions by bringing out of the normalized map to the actual physical values.

Parameters
pPartition index
old_input_valuesPrevious timestep values of ROM inputs
rom_outputOutputs from ROM
out_indexOutput index
drom_outputDerivative of output with respect to stress
derivativeOptional flag to return derivative of output with respect to stress.
Returns
Converted ROM output

Definition at line 1076 of file LAROMANCEStressUpdateBase.C.

1082 {
1083  if (out_index == _strain_output_index)
1084  {
1085  if (derivative)
1086  return std::exp(rom_output) * _dt * drom_output;
1087  else
1088  return std::exp(rom_output) * _dt;
1089  }
1090 
1091  if (derivative)
1092  return 0.0;
1093 
1094  GenericReal<is_ad> expout = std::exp(rom_output);
1095  mooseAssert(expout > 0.0, "ROM calculated strain increment must be positive");
1096 
1097  if (expout > _cutoff[p])
1098  expout -= _cutoff[p];
1099  else
1100  expout = -_cutoff[p] * _cutoff[p] / expout + _cutoff[p];
1101 
1102  return -expout * old_input_values[out_index] * _dt;
1103 }
Moose::GenericType< Real, is_ad > GenericReal
const unsigned int _strain_output_index
Index corresponding to the position for strain increment in the output vector.
std::vector< Real > _cutoff
Container for strain cutoff.

◆ convertValue()

template<bool is_ad>
template<typename T >
void LAROMANCEStressUpdateBaseTempl< is_ad >::convertValue ( T &  x,
const ROMInputTransform  transform,
const Real  coef,
const bool  derivative = false 
)
inlineprotected

Convert input based on the transform type.

Parameters
xInput value
transformEnum declaring transform to be performed
coefCoefficient applied during transformation
derivativeOptional flag to return derivative of the sigmoid w.r.t. the input

Definition at line 275 of file LAROMANCEStressUpdateBase.h.

279  {
280  if (transform == ROMInputTransform::EXP)
281  {
282  mooseAssert(coef != 0, "Coefficient must not be zero.");
283  if (derivative)
284  x = std::exp(x / coef) / coef;
285  else
286  x = std::exp(x / coef);
287  }
288  else if (transform == ROMInputTransform::LOG)
289  {
290  mooseAssert(x + coef > 0, "Sum must be greater than 0.");
291  if (derivative)
292  x = 1.0 / (x + coef);
293  else
294  x = std::log(x + coef);
295  }
296  else if (transform == ROMInputTransform::LINEAR)
297  {
298  mooseAssert(coef == 0.0, "Coefficient cannot be supplied with linear transformation");
299  if (derivative)
300  x = 1.0;
301  }
302  }
const std::vector< double > x

◆ coupledGenericValue() [1/3]

template<bool is_ad>
const GenericVariableValue< is_ad > & Material::coupledGenericValue
protected

◆ coupledGenericValue() [2/3]

template<bool is_ad>
const GenericVariableValue< false > & Material::coupledGenericValue
protected

◆ coupledGenericValue() [3/3]

template<bool is_ad>
const GenericVariableValue< true > & Material::coupledGenericValue
protected

◆ effectiveInelasticStrainIncrement()

template<bool is_ad>
const GenericReal<is_ad>& RadialReturnStressUpdateTempl< is_ad >::effectiveInelasticStrainIncrement ( ) const
inlineinherited

Current value of scalar inelastic strain.

Definition at line 151 of file RadialReturnStressUpdate.h.

Referenced by ComputeCreepPlasticityStress::updateQpState().

152  {
154  }
GenericReal< is_ad > _effective_inelastic_strain_increment
Stores the scalar effective inelastic strain increment from Newton iteration.

◆ exportJSON()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::exportJSON ( )
protectedvirtual

Reimplemented in LAROMANCEPartitionStressUpdateBaseTempl< is_ad >.

Definition at line 283 of file LAROMANCEStressUpdateBase.C.

Referenced by LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::exportJSON().

284 {
285  _json["strain_cutoff"] = getStrainCutoff();
286  _json["transform"] = getTransform();
287  _json["transform_coefs"] = getTransformCoefs();
288  _json["input_limits"] = getInputLimits();
289  _json["normalization_limits"] = getNormalizationLimits();
290  _json["coefs"] = getCoefs();
291  _json["tiling"] = getTilings();
292  _json["cutoff"] = getStrainCutoff();
293 }
nlohmann::json _json
JSON object constructed from the datafile.
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getNormalizationLimits()
virtual std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > getTransform()
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getInputLimits()
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getTransformCoefs()
virtual std::vector< Real > getStrainCutoff()
virtual std::vector< std::vector< unsigned int > > getTilings()
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getCoefs()

◆ getCoefs()

template<bool is_ad>
virtual std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::getCoefs ( )
inlineprotectedvirtual

Reimplemented in LAROMANCE3TileTestTempl< is_ad >, and SS316HLAROMANCEStressUpdateTestTempl< is_ad >.

Definition at line 423 of file LAROMANCEStressUpdateBase.h.

424  {
425  checkJSONKey("coefs");
426  return _json["coefs"].template get<std::vector<std::vector<std::vector<std::vector<Real>>>>>();
427  }
nlohmann::json _json
JSON object constructed from the datafile.
void checkJSONKey(const std::string &key)
check if a JSON file was loaded and if the specified key exists

◆ getInputLimits()

template<bool is_ad>
virtual std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::getInputLimits ( )
inlineprotectedvirtual

Reimplemented in LAROMANCE3TileTestTempl< is_ad >, and SS316HLAROMANCEStressUpdateTestTempl< is_ad >.

Definition at line 411 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::getNormalizationLimits().

412  {
413  checkJSONKey("input_limits");
414  return _json["input_limits"]
415  .template get<std::vector<std::vector<std::vector<std::vector<Real>>>>>();
416  }
nlohmann::json _json
JSON object constructed from the datafile.
void checkJSONKey(const std::string &key)
check if a JSON file was loaded and if the specified key exists

◆ getMakeFrameHelper()

template<bool is_ad>
std::vector< unsigned int > LAROMANCEStressUpdateBaseTempl< is_ad >::getMakeFrameHelper ( const unsigned int  p) const
protected

Definition at line 1168 of file LAROMANCEStressUpdateBase.C.

1169 {
1170  std::vector<unsigned int> v(_num_coefs[p] * _num_inputs);
1171 
1172  for (unsigned int numcoeffs = 0; numcoeffs < _num_coefs[p]; ++numcoeffs)
1173  for (unsigned int invar = 0; invar < _num_inputs; ++invar)
1174  v[numcoeffs + _num_coefs[p] * invar] =
1175  numcoeffs / MathUtils::pow(_degree[p], invar) % _degree[p];
1176 
1177  return v;
1178 }
std::vector< unsigned int > _num_coefs
Total number of Legendre polynomial coefficients for the ROM data set in each parition.
std::vector< unsigned int > _degree
Legendre polynomial degree for the ROM data set for each partition.
unsigned int _num_inputs
Number of inputs for the ROM data set.
static const std::string v
Definition: NS.h:84
T pow(T x, int e)

◆ getNormalizationLimits()

template<bool is_ad>
virtual std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::getNormalizationLimits ( )
inlineprotectedvirtual

Reimplemented in LAROMANCE3TileTestTempl< is_ad >.

Definition at line 391 of file LAROMANCEStressUpdateBase.h.

392  {
393  if (_json.contains("normalization_limits"))
394  return _json["normalization_limits"]
395  .template get<std::vector<std::vector<std::vector<std::vector<Real>>>>>();
396 
397  return getInputLimits();
398  }
nlohmann::json _json
JSON object constructed from the datafile.
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getInputLimits()

◆ getStrainCutoff()

template<bool is_ad>
virtual std::vector<Real> LAROMANCEStressUpdateBaseTempl< is_ad >::getStrainCutoff ( )
inlineprotectedvirtual

Reimplemented in LAROMANCE3TileTestTempl< is_ad >, and SS316HLAROMANCEStressUpdateTestTempl< is_ad >.

Definition at line 449 of file LAROMANCEStressUpdateBase.h.

450  {
451  checkJSONKey("cutoff");
452  return _json["cutoff"].template get<std::vector<Real>>();
453  }
nlohmann::json _json
JSON object constructed from the datafile.
void checkJSONKey(const std::string &key)
check if a JSON file was loaded and if the specified key exists

◆ getTangentCalculationMethod()

template<bool is_ad>
virtual TangentCalculationMethod RadialReturnCreepStressUpdateBaseTempl< is_ad >::getTangentCalculationMethod ( )
inlineoverrideprotectedvirtualinherited

◆ getTilings()

template<bool is_ad>
virtual std::vector<std::vector<unsigned int> > LAROMANCEStressUpdateBaseTempl< is_ad >::getTilings ( )
inlineprotectedvirtual

Reimplemented in LAROMANCE3TileTestTempl< is_ad >.

Definition at line 434 of file LAROMANCEStressUpdateBase.h.

435  {
436  if (_json.contains("tiling"))
437  return _json["tiling"].template get<std::vector<std::vector<unsigned int>>>();
438 
439  if (_environmental)
440  return {{1, 1, 1, 1, 1, 1}};
441  return {{1, 1, 1, 1, 1}};
442  };
nlohmann::json _json
JSON object constructed from the datafile.
const GenericMaterialProperty< Real, is_ad > * _environmental
Optionally coupled environmental factor.

◆ getTransform()

template<bool is_ad>
virtual std::vector<std::vector<std::vector<std::vector<ROMInputTransform> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::getTransform ( )
inlineprotectedvirtual

Reimplemented in LAROMANCE3TileTestTempl< is_ad >, and SS316HLAROMANCEStressUpdateTestTempl< is_ad >.

Definition at line 349 of file LAROMANCEStressUpdateBase.h.

350  {
351  checkJSONKey("transform");
352  return _json["transform"]
353  .template get<std::vector<std::vector<std::vector<std::vector<ROMInputTransform>>>>>();
354  }
nlohmann::json _json
JSON object constructed from the datafile.
void checkJSONKey(const std::string &key)
check if a JSON file was loaded and if the specified key exists

◆ getTransformCoefs()

template<bool is_ad>
virtual std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::getTransformCoefs ( )
inlineprotectedvirtual

Reimplemented in LAROMANCE3TileTestTempl< is_ad >, and SS316HLAROMANCEStressUpdateTestTempl< is_ad >.

Definition at line 372 of file LAROMANCEStressUpdateBase.h.

373  {
374  checkJSONKey("transform_coefs");
375  return _json["transform_coefs"]
376  .template get<std::vector<std::vector<std::vector<std::vector<Real>>>>>();
377  }
nlohmann::json _json
JSON object constructed from the datafile.
void checkJSONKey(const std::string &key)
check if a JSON file was loaded and if the specified key exists

◆ getTransformedLimits()

template<bool is_ad>
std::vector< std::vector< std::vector< std::vector< Real > > > > LAROMANCEStressUpdateBaseTempl< is_ad >::getTransformedLimits ( const unsigned int  p,
const std::vector< std::vector< std::vector< Real >>>  limits 
)
protected

Definition at line 1139 of file LAROMANCEStressUpdateBase.C.

1141 {
1142  std::vector<std::vector<std::vector<std::vector<Real>>>> transformed_limits(
1143  _num_tiles[p],
1144  std::vector<std::vector<std::vector<Real>>>(
1145  _num_outputs, std::vector<std::vector<Real>>(_num_inputs, std::vector<Real>(3))));
1146  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
1147  {
1148  for (unsigned int o = 0; o < _num_outputs; ++o)
1149  {
1150  for (unsigned int i = 0; i < _num_inputs; ++i)
1151  {
1152  for (unsigned int k = 0; k < 2; ++k)
1153  {
1154  transformed_limits[t][o][i][k] = limits[t][i][k];
1155  convertValue(
1156  transformed_limits[t][o][i][k], _transform[p][t][o][i], _transform_coefs[p][t][o][i]);
1157  }
1158  transformed_limits[t][o][i][2] =
1159  (transformed_limits[t][o][i][1] - transformed_limits[t][o][i][0]) / 2.0;
1160  }
1161  }
1162  }
1163  return transformed_limits;
1164 }
void convertValue(T &x, const ROMInputTransform transform, const Real coef, const bool derivative=false)
Convert input based on the transform type.
unsigned int _num_outputs
Number of inputs to the ROM data set.
unsigned int _num_inputs
Number of inputs for the ROM data set.
std::vector< unsigned int > _num_tiles
Number of ROM tiles per partition.
std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > _transform
Transform rules defined by the ROM data set for each partition.
static const std::string k
Definition: NS.h:130
std::vector< std::vector< std::vector< std::vector< Real > > > > _transform_coefs
Transform coefficients defined by the ROM data set for each partition.

◆ initialGuess()

template<bool is_ad>
virtual GenericReal<is_ad> SingleVariableReturnMappingSolutionTempl< is_ad >::initialGuess ( const GenericReal< is_ad > &  )
inlineprotectedvirtualinherited

Compute an initial guess for the value of the scalar.

For some cases, an intellegent starting point can provide enhanced robustness in the Newton iterations. This is also an opportunity for classes that derive from this to perform initialization tasks.

Parameters
effective_trial_stressEffective trial stress

Reimplemented in PowerLawCreepTestTempl< is_ad >.

Definition at line 66 of file SingleVariableReturnMappingSolution.h.

67  {
68  return 0.0;
69  }

◆ initialSetup()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::initialSetup ( )
overrideprotectedvirtual

Reimplemented from Material.

Reimplemented in LAROMANCEPartitionStressUpdateBaseTempl< is_ad >.

Definition at line 315 of file LAROMANCEStressUpdateBase.C.

Referenced by LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::initialSetup().

316 {
317  // export models that are compiled in
318  if (this->isParamValid("export_model"))
319  {
320  exportJSON();
321  std::ofstream out(this->template getParam<FileName>("export_model").c_str());
322  out << _json;
323  }
324 
325  // Pull in relevant ROM information and do sanity checks
330  _coefs = getCoefs();
331  _tiling = getTilings();
333  // resize containers to be filled later based on partition dimension
334  // and immediately run some sanity checks
335  _num_partitions = _transform.size();
336  if (_num_partitions < 1 || _num_partitions > 2)
337  mooseError(
338  "In ", _name, ": First dimension of getTransform must be either size one or size two");
339  if (_transform[0].size() < 1)
340  mooseError("In ", _name, ": Transform is not the correct shape");
341  _num_outputs = _transform[0][0].size();
342  if (_num_outputs != 3)
343  mooseError("In ",
344  _name,
345  ": ",
346  _num_outputs,
347  " outputs detected. Three and only three outputs are currently supported.");
348 
349  _num_inputs = _transform[0][0][0].size();
350  if (_num_inputs != 5 && _num_inputs != 6)
351  mooseError("In ",
352  _name,
353  ": ",
354  _num_inputs,
355  " inputs detected. Only five or six inputs currently supported.");
356  if (_num_inputs == 6 && !_environmental)
357  this->paramError(
358  "environmental_factor",
359  "Number of ROM inputs indicate environmental factor is required to be coupled.");
360  if (_num_inputs != 6 && _environmental)
361  this->paramError("environmental_factor",
362  "Number of ROM inputs indicate environmental factor is not implemented, but "
363  "environmental factor coupled.");
364  _num_tiles.resize(_num_partitions);
365  _num_coefs.resize(_num_partitions);
366  _degree.resize(_num_partitions);
371  _weights.resize(_num_partitions);
376  _global_limits.resize(_num_inputs);
377  // temporarily fill global limits with extreme numerical values, to later update
378  for (unsigned int i = 0; i < _num_inputs; ++i)
379  _global_limits[i] = {std::numeric_limits<Real>::max(), 0.0};
380 
381  // start loop over partitions to perform sanity checks, set global limits,
382  // and print global configurations
383  if (_transform.size() != _num_partitions || _transform_coefs.size() != _num_partitions ||
385  _coefs.size() != _num_partitions || _tiling.size() != _num_partitions ||
386  _cutoff.size() != _num_partitions)
387  mooseError(
388  "In ", _name, ": one of the ROM inputs does not have the correct number of partitions");
389 
390  for (unsigned int p = 0; p < _num_partitions; ++p)
391  {
392  _num_tiles[p] = _transform[p].size();
393  if (!_num_tiles[p])
394  mooseError("In ", _name, ": No tiles detected. Double check your ROM input");
395 
396  bool correct_shape = true;
397  if (_transform[p].size() != _num_tiles[p] || _transform_coefs[p].size() != _num_tiles[p] ||
398  _input_limits[p].size() != _num_tiles[p] ||
399  _normalization_limits[p].size() != _num_tiles[p] || _coefs[p].size() != _num_tiles[p])
400  correct_shape = false;
401  if (_tiling[p].size() != _num_inputs)
402  correct_shape = false;
403  if (_coefs[p][0].size() == 0)
404  correct_shape = false;
405  _num_coefs[p] = _coefs[p][0][0].size();
406 
407  // start loop over tiles to perform sanity checks.
408  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
409  {
410  if (_transform[p][t].size() != _num_outputs ||
411  _transform_coefs[p][t].size() != _num_outputs || _coefs[p][t].size() != _num_outputs)
412  correct_shape = false;
413  for (unsigned int o = 0; o < _num_outputs; ++o)
414  if (_transform[p][t][o].size() != _num_inputs ||
415  _transform_coefs[p][t][o].size() != _num_inputs ||
416  _coefs[p][t][o].size() != _num_coefs[p])
417  correct_shape = false;
418  if (_input_limits[p][t].size() != _num_inputs ||
419  _normalization_limits[p][t].size() != _num_inputs)
420  correct_shape = false;
421  for (unsigned int i = 0; i < _num_inputs; ++i)
422  if (_input_limits[p][t][i].size() != 2 || _normalization_limits[p][t][i].size() != 2)
423  correct_shape = false;
424  }
425 
426  if (!correct_shape)
427  mooseError("In ", _name, ": ROM data is not the right shape.");
428 
429  _degree[p] = std::pow(_num_coefs[p], 1.0 / _num_inputs);
430  if (!_degree[p] || _degree[p] > 4)
431  mooseError("In ", _name, ": degree must be 1, 2, 3 or 4.");
432 
433  // Check input limits and find global limits of all partitions. Note that this will return the
434  // extremes of the model! If the model is not flat along one input limit, then global limits
435  // will not truely capture the mutli-dimensionality of the problem. Consequently, the user may
436  // find input values that result in errors in the partition weight computation.
437  for (unsigned int i = 0; i < _num_inputs; ++i)
438  {
439  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
440  {
441  if (_input_limits[p][t][i][0] >= _input_limits[p][t][i][1])
442  mooseError("In ", _name, ": Input limits are ordered incorrectly");
443  _global_limits[i].first = std::min(_global_limits[i].first, _input_limits[p][t][i][0]);
444  _global_limits[i].second = std::max(_global_limits[i].second, _input_limits[p][t][i][1]);
445  }
446  }
447 
448  // Precompute helper containers
451 
452  // Prepare containers for each partition
453  _precomputed_vals[p].resize(_num_tiles[p], std::vector<GenericReal<is_ad>>(_num_coefs[p]));
454  _rom_inputs[p].resize(_num_tiles[p], std::vector<GenericReal<is_ad>>(_num_inputs));
455  _polynomial_inputs[p].resize(_num_tiles[p],
456  std::vector<std::vector<GenericReal<is_ad>>>(
457  _num_inputs, std::vector<GenericReal<is_ad>>(_degree[p])));
458  _non_stress_weights[p].resize(_num_tiles[p]);
459  _weights[p].resize(_num_tiles[p], 0);
460  }
461  // Prepare containers independent of partition
462  _input_values.resize(_num_inputs);
463 
464  if (_verbose)
465  {
466  Moose::err << "ROM model info: " << _name << "\n";
467  Moose::err << " number of tiles, partition 1: " << _num_tiles[0] << "\n";
468  if (_num_partitions > 1)
469  Moose::err << " number of tiles, partition 2: " << _num_tiles[1] << "\n";
470  Moose::err << " number of outputs: " << _num_outputs << "\n";
471  Moose::err << " number of inputs: " << _num_inputs << "\n";
472  Moose::err << " degree (max Legendre degree + constant), partition 1: " << _degree[0] << "\n";
473  if (_num_partitions > 1)
474  Moose::err << " degree (max Legendre degree + constant), partition 2: " << _degree[1] << "\n";
475  Moose::err << " number of coefficients, partition 1: " << _num_coefs[0] << "\n";
476  if (_num_partitions > 1)
477  Moose::err << " number of coefficients, partition 2: " << _num_coefs[1] << "\n";
478  Moose::err << " Global limits:\n cell dislocations ("
479  << _global_limits[_cell_input_index].first << " - "
480  << _global_limits[_cell_input_index].second << ")\n";
481  Moose::err << " wall dislocations (" << _global_limits[_wall_input_index].first << " - "
482  << _global_limits[_wall_input_index].second << ")\n";
483  Moose::err << " Stress (" << _global_limits[_stress_input_index].first << " - "
484  << _global_limits[_stress_input_index].second << ")\n";
485  Moose::err << " Old strain (" << _global_limits[_old_strain_input_index].first << " - "
486  << _global_limits[_old_strain_input_index].second << ")\n";
487  Moose::err << " Temperature (" << _global_limits[_temperature_input_index].first << " - "
488  << _global_limits[_temperature_input_index].second << ")\n";
489  if (_environmental)
490  Moose::err << " Environmental factor (" << _global_limits[_environmental_input_index].first
491  << " - " << _global_limits[_environmental_input_index].second << ")\n";
492  Moose::err << std::endl;
493  }
494 }
nlohmann::json _json
JSON object constructed from the datafile.
std::vector< unsigned int > _num_coefs
Total number of Legendre polynomial coefficients for the ROM data set in each parition.
Moose::GenericType< Real, is_ad > GenericReal
std::vector< GenericReal< is_ad > > _dpartition_weight_dstress
Container for d_parition_weights d_stress.
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getNormalizationLimits()
const unsigned int _old_strain_input_index
Index corresponding to the position for the old strain in the input vector.
const GenericMaterialProperty< Real, is_ad > * _environmental
Optionally coupled environmental factor.
unsigned int _num_outputs
Number of inputs to the ROM data set.
std::vector< unsigned int > _degree
Legendre polynomial degree for the ROM data set for each partition.
std::vector< unsigned int > getMakeFrameHelper(const unsigned int p) const
virtual std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > getTransform()
std::vector< std::vector< std::vector< std::vector< Real > > > > _coefs
Coefficients used with Legendre polynomials defined by the ROM data set for each partition.
unsigned int _num_inputs
Number of inputs for the ROM data set.
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getInputLimits()
std::vector< std::pair< Real, Real > > _global_limits
Container for global limits.
const unsigned int _wall_input_index
Index corresponding to the position for the dislocations within the cell wall in the input vector...
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
unsigned int _num_partitions
Number of partitions.
bool isParamValid(const std::string &name) const
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getTransformCoefs()
std::vector< std::vector< unsigned int > > _makeframe_helper
Helper container defined by the ROM data set.
std::vector< std::vector< std::vector< std::vector< Real > > > > _normalization_limits
Normalization limits defined by the ROM data set for each partition.
std::vector< std::vector< std::vector< std::vector< std::vector< Real > > > > > _transformed_normalization_limits
Limits transformed from readabile input to ROM readable limits for normalization. ...
std::vector< GenericReal< is_ad > > _partition_weights
Container for weights for each tile as computed for all input values beside stress.
std::vector< std::vector< std::vector< std::vector< Real > > > > getTransformedLimits(const unsigned int p, const std::vector< std::vector< std::vector< Real >>> limits)
const unsigned int _temperature_input_index
Index corresponding to the position for the tempeature in the input vector.
std::vector< std::vector< GenericReal< is_ad > > > _non_stress_weights
Container for weights for each tile as computed for all input values beside stress.
const unsigned int _environmental_input_index
Index corresponding to the position for the environmental factor in the input vector.
void paramError(const std::string &param, Args... args) const
const std::string _name
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
std::vector< unsigned int > _num_tiles
Number of ROM tiles per partition.
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _precomputed_vals
Container for ROM precomputed values.
std::vector< std::vector< GenericReal< is_ad > > > _weights
Container for weights for each tile as computed for all input values beside stress.
virtual std::vector< Real > getStrainCutoff()
std::vector< std::vector< std::vector< std::vector< GenericReal< is_ad > > > > > _polynomial_inputs
Container for ROM polynomial inputs.
OStreamProxy out
const bool _verbose
Flag to output verbose infromation.
std::vector< Real > _cutoff
Container for strain cutoff.
virtual std::vector< std::vector< unsigned int > > getTilings()
void mooseError(Args &&... args) const
const unsigned int _cell_input_index
Index corresponding to the position for the dislocations with in the cell in the input vector...
std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > _transform
Transform rules defined by the ROM data set for each partition.
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _rom_inputs
Container for converted rom_inputs.
MooseUnits pow(const MooseUnits &, int)
virtual std::vector< std::vector< std::vector< std::vector< Real > > > > getCoefs()
std::vector< std::vector< std::vector< std::vector< Real > > > > _input_limits
Input limits defined by the ROM data set for each partition.
std::vector< std::vector< unsigned int > > _tiling
Container for tiling orientations.
std::vector< std::vector< std::vector< std::vector< Real > > > > _transform_coefs
Transform coefficients defined by the ROM data set for each partition.

◆ initQpStatefulProperties()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::initQpStatefulProperties ( )
overrideprotectedvirtual

Reimplemented from RadialReturnCreepStressUpdateBaseTempl< is_ad >.

Definition at line 498 of file LAROMANCEStressUpdateBase.C.

499 {
500  MooseRandom rng;
501  rng.seed(0, this->template getParam<unsigned int>("seed"));
502 
504  this->template getParam<Real>("initial_cell_dislocation_density"),
505  this->template getParam<Real>("initial_cell_dislocation_density") *
506  this->template getParam<Real>("cell_dislocations_normal_distribution_width"));
508  this->template getParam<Real>("initial_wall_dislocation_density"),
509  this->template getParam<Real>("initial_wall_dislocation_density") *
510  this->template getParam<Real>("wall_dislocations_normal_distribution_width"));
511 
513 }
GenericMaterialProperty< Real, is_ad > & _cell_dislocations
Material properties for cell (glissile) dislocation densities (1/m^2)
void seed(std::size_t i, unsigned int seed)
Real randNormal(std::size_t i, Real mean, Real sigma)
GenericMaterialProperty< Real, is_ad > & _wall_dislocations
Material properties for wall (locked) dislocation densities (1/m^2)

◆ isIsotropic()

template<bool is_ad>
bool RadialReturnStressUpdateTempl< is_ad >::isIsotropic ( )
inlineoverridevirtualinherited

Radial return mapped models should be isotropic by default!

Reimplemented from StressUpdateBaseTempl< is_ad >.

Definition at line 128 of file RadialReturnStressUpdate.h.

128 { return true; };

◆ iterationFinalize()

template<bool is_ad>
virtual void SingleVariableReturnMappingSolutionTempl< is_ad >::iterationFinalize ( const GenericReal< is_ad > &  )
inlineprotectedvirtualinherited

Finalize internal state variables for a model for a given iteration.

Parameters
scalarInelastic strain increment magnitude being solved for

Reimplemented in IsotropicPlasticityStressUpdateTempl< is_ad >, and CombinedNonlinearHardeningPlasticityTempl< is_ad >.

Definition at line 128 of file SingleVariableReturnMappingSolution.h.

128 {}

◆ maximumPermissibleValue()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::maximumPermissibleValue ( const GenericReal< is_ad > &  effective_trial_stress) const
overrideprotectedvirtual

Compute the maximum permissible value of the scalar.

For some models, the magnitude of this may be known.

Parameters
effective_trial_stressEffective trial stress

Reimplemented from RadialReturnStressUpdateTempl< is_ad >.

Definition at line 517 of file LAROMANCEStressUpdateBase.C.

519 {
520  // Make maximum allowed scalar a little bit less than the deformation that would reduce the
521  // trial stress to zero. This prevents negative trial stresses.
522  return effective_trial_stress / this->_three_shear_modulus * 0.999999;
523 }
GenericReal< is_ad > _three_shear_modulus
3 * shear modulus

◆ minimumPermissibleValue()

template<bool is_ad>
virtual GenericReal<is_ad> RadialReturnStressUpdateTempl< is_ad >::minimumPermissibleValue ( const GenericReal< is_ad > &  effective_trial_stress) const
inlineoverridevirtualinherited

Compute the minimum permissible value of the scalar.

For some models, the magnitude of this may be known.

Parameters
effective_trial_stressEffective trial stress

Reimplemented from SingleVariableReturnMappingSolutionTempl< is_ad >.

Reimplemented in PowerLawCreepTestTempl< is_ad >.

Definition at line 106 of file RadialReturnStressUpdate.h.

107  {
108  return 0.0;
109  }

◆ normalizeInput()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::normalizeInput ( const GenericReal< is_ad > &  input,
const ROMInputTransform  transform,
const Real  transform_coef,
const std::vector< Real > &  transformed_limits,
const bool  derivative = false 
)
protected

Convert the input variables into the form expected by the ROM Legendre polynomials to have a normalized space from [-1, 1] so that every variable has equal weight.

Parameters
inputInput value
transformROMInputTransform enum indicating how the input is to be transformed
transform_coefTransform coefficient for the given input
transformed_limitsTransformed limits for the given input
derivativeOptional flag to return derivative of converted input with respect to stress.
Returns
Converted input

Definition at line 997 of file LAROMANCEStressUpdateBase.C.

1002 {
1003  GenericReal<is_ad> x = input;
1004  convertValue(x, transform, transform_coef, derivative);
1005 
1006  // transformed_limits[2] = transformed_limits[1] - transformed_limits[0]
1007  if (derivative)
1008  return x / transformed_limits[2];
1009  else
1010  return (x - transformed_limits[0]) / transformed_limits[2] - 1.0;
1011 }
Moose::GenericType< Real, is_ad > GenericReal
void convertValue(T &x, const ROMInputTransform transform, const Real coef, const bool derivative=false)
Convert input based on the transform type.
const std::vector< double > x

◆ outputIterationStep()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::outputIterationStep ( std::stringstream *  iter_output,
const GenericReal< is_ad > &  effective_trial_stress,
const GenericReal< is_ad > &  scalar,
const Real  reference_residual 
)
overrideprotectedvirtual

Output information for a single iteration step to build the convergence history of the model.

Parameters
iter_outputOutput stream
effective_trial_stressEffective trial stress
residualCurrent value of the residual
referenceCurrent value of the reference quantity

Reimplemented from SingleVariableReturnMappingSolutionTempl< is_ad >.

Definition at line 1377 of file LAROMANCEStressUpdateBase.C.

1382 {
1384  iter_output, effective_trial_stress, scalar, reference_residual);
1385  if (iter_output)
1386  *iter_output << " derivative: "
1387  << MetaPhysicL::raw_value(computeDerivative(effective_trial_stress, scalar))
1388  << std::endl;
1389 }
virtual void outputIterationStep(std::stringstream *iter_output, const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar, const Real reference_residual)
Output information for a single iteration step to build the convergence history of the model...
auto raw_value(const Eigen::Map< T > &in)
virtual GenericReal< is_ad > computeDerivative(const GenericReal< is_ad > &, const GenericReal< is_ad > &) override
Compute the derivative of the residual as a function of the scalar variable.

◆ outputIterationSummary()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::outputIterationSummary ( std::stringstream *  iter_output,
const unsigned int  total_it 
)
overrideprotectedvirtual

Output summary information for the convergence history of the model.

Parameters
iter_outputOutput stream
total_itTotal iteration count

Reimplemented from SingleVariableReturnMappingSolutionTempl< is_ad >.

Definition at line 1331 of file LAROMANCEStressUpdateBase.C.

1333 {
1334  if (iter_output)
1335  {
1336  *iter_output << "At element " << this->_current_elem->id() << " _qp=" << _qp << " Coordinates "
1337  << _q_point[_qp] << " block=" << this->_current_elem->subdomain_id() << '\n';
1338  *iter_output << " dt " << _dt << " old cell disl: " << _old_input_values[_cell_output_index]
1339  << " old wall disl: " << _old_input_values[_wall_output_index]
1340  << " old effective strain: " << _old_input_values[_strain_output_index] << "\n";
1341 
1342  *iter_output << " temp: " << MetaPhysicL::raw_value(_temperature[_qp]) << " environmental: "
1344  << " trial stress into rom (MPa): "
1348  << " old strain: "
1350  *iter_output << " partition 2 weight: "
1352  *iter_output << " weights by tile, partition 1: ";
1353  for (unsigned int t = 0; t < _num_tiles[0]; ++t)
1354  *iter_output << " (" << t << ", " << MetaPhysicL::raw_value(_weights[0][t]) << ") ";
1355  *iter_output << "\n";
1356  *iter_output << " weights by tile, partition 2: ";
1357  for (unsigned int t = 0; t < _num_tiles[1]; ++t)
1358  *iter_output << " (" << t << ", " << MetaPhysicL::raw_value(_weights[1][t]) << ") ";
1359  *iter_output << "\n";
1360  *iter_output << " nonstress weights by tile, partition 1: ";
1361  for (unsigned int t = 0; t < _num_tiles[0]; ++t)
1362  *iter_output << " (" << t << ", " << MetaPhysicL::raw_value(_non_stress_weights[0][t])
1363  << ") ";
1364  *iter_output << "\n";
1365  *iter_output << " nonstress weights by tile, partition 2: ";
1366  for (unsigned int t = 0; t < _num_tiles[1]; ++t)
1367  *iter_output << " (" << t << ", " << MetaPhysicL::raw_value(_non_stress_weights[1][t])
1368  << ") ";
1369  *iter_output << "\n";
1370  }
1371 
1373 }
const unsigned int _cell_output_index
Index corresponding to the position for cell dislocations increment in the output vector...
const unsigned int _old_strain_input_index
Index corresponding to the position for the old strain in the input vector.
const GenericMaterialProperty< Real, is_ad > * _environmental
Optionally coupled environmental factor.
const unsigned int _strain_output_index
Index corresponding to the position for strain increment in the output vector.
auto raw_value(const Eigen::Map< T > &in)
const GenericVariableValue< is_ad > & _temperature
Coupled temperature variable.
const unsigned int _wall_input_index
Index corresponding to the position for the dislocations within the cell wall in the input vector...
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
GenericMaterialProperty< Real, is_ad > & _second_partition_weight
Material property to store partition weight.
std::vector< Real > _old_input_values
Container for old input values.
std::vector< std::vector< GenericReal< is_ad > > > _non_stress_weights
Container for weights for each tile as computed for all input values beside stress.
virtual void outputIterationSummary(std::stringstream *iter_output, const unsigned int total_it)
Output summary information for the convergence history of the model.
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
std::vector< unsigned int > _num_tiles
Number of ROM tiles per partition.
std::vector< std::vector< GenericReal< is_ad > > > _weights
Container for weights for each tile as computed for all input values beside stress.
const Elem *const & _current_elem
const MooseArray< Point > & _q_point
const unsigned int _cell_input_index
Index corresponding to the position for the dislocations with in the cell in the input vector...
const unsigned int _wall_output_index
Index corresponding to the position for wall dislocations increment in the output vector...

◆ precomputeROM()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::precomputeROM ( const unsigned  out_index)
protected

Precompute the ROM strain rate information for all inputs except for strain.

Strain will be computed in the radial return algorithm several times, while the remainder of the inputs remain constant.

Parameters
out_indexOutput index

Definition at line 926 of file LAROMANCEStressUpdateBase.C.

927 {
928  for (unsigned int p = 0; p < _num_partitions; ++p)
929  {
930  for (unsigned int t = 0; t < _num_tiles[p]; ++t)
931  {
932  // Only precompute for tiles that don't have zero weight
933  if (_non_stress_weights[p][t])
934  {
935  for (unsigned int i = 0; i < _num_inputs; ++i)
936  {
937  if (i != _stress_input_index)
938  {
939  _rom_inputs[p][t][i] =
941  _transform[p][t][out_index][i],
942  _transform_coefs[p][t][out_index][i],
943  _transformed_normalization_limits[p][t][out_index][i]);
944  buildPolynomials(p, _rom_inputs[p][t][i], _polynomial_inputs[p][t][i]);
945  }
946  }
948  p, _coefs[p][t][out_index], _polynomial_inputs[p][t], _precomputed_vals[p][t]);
949  }
950  }
951  }
952 }
void buildPolynomials(const unsigned int p, const GenericReal< is_ad > &rom_input, std::vector< GenericReal< is_ad >> &polynomial_inputs, const GenericReal< is_ad > &drom_input=0, const bool derivative=false)
Assemble the array of Legendre polynomials to be multiplied by the ROM coefficients.
GenericReal< is_ad > normalizeInput(const GenericReal< is_ad > &input, const ROMInputTransform transform, const Real transform_coef, const std::vector< Real > &transformed_limits, const bool derivative=false)
Convert the input variables into the form expected by the ROM Legendre polynomials to have a normaliz...
std::vector< std::vector< std::vector< std::vector< Real > > > > _coefs
Coefficients used with Legendre polynomials defined by the ROM data set for each partition.
unsigned int _num_inputs
Number of inputs for the ROM data set.
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
unsigned int _num_partitions
Number of partitions.
std::vector< std::vector< std::vector< std::vector< std::vector< Real > > > > > _transformed_normalization_limits
Limits transformed from readabile input to ROM readable limits for normalization. ...
std::vector< std::vector< GenericReal< is_ad > > > _non_stress_weights
Container for weights for each tile as computed for all input values beside stress.
std::vector< GenericReal< is_ad > > _input_values
Container for input values.
std::vector< unsigned int > _num_tiles
Number of ROM tiles per partition.
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _precomputed_vals
Container for ROM precomputed values.
std::vector< std::vector< std::vector< std::vector< GenericReal< is_ad > > > > > _polynomial_inputs
Container for ROM polynomial inputs.
std::vector< std::vector< std::vector< std::vector< ROMInputTransform > > > > _transform
Transform rules defined by the ROM data set for each partition.
std::vector< std::vector< std::vector< GenericReal< is_ad > > > > _rom_inputs
Container for converted rom_inputs.
void precomputeValues(const unsigned int p, const std::vector< Real > &coefs, const std::vector< std::vector< GenericReal< is_ad >>> &polynomial_inputs, std::vector< GenericReal< is_ad >> &precomputed)
Arranges the calculated Legendre polynomials into the proper oder and multiplies the Legendre polynom...
std::vector< std::vector< std::vector< std::vector< Real > > > > _transform_coefs
Transform coefficients defined by the ROM data set for each partition.

◆ precomputeValues()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::precomputeValues ( const unsigned int  p,
const std::vector< Real > &  coefs,
const std::vector< std::vector< GenericReal< is_ad >>> &  polynomial_inputs,
std::vector< GenericReal< is_ad >> &  precomputed 
)
protected

Arranges the calculated Legendre polynomials into the proper oder and multiplies the Legendre polynomials by the ROM coefficients to compute the predicted output values.

This method works with all inputs besides stress, while stress is handled by computeValues

Parameters
pPartition index
coefsLegendre polynomial coefficients
polynomial_inputsVector of transformed Legendre polynomial
precomputedVector that holds the precomputed ROM values

Definition at line 1033 of file LAROMANCEStressUpdateBase.C.

1038 {
1039  for (unsigned int c = 0; c < _num_coefs[p]; ++c)
1040  {
1041  precomputed[c] = coefs[c];
1042  for (unsigned int i = 0; i < _num_inputs; ++i)
1043  if (i != _stress_input_index)
1044  precomputed[c] *= polynomial_inputs[i][_makeframe_helper[p][c + _num_coefs[p] * i]];
1045  }
1046 }
std::vector< unsigned int > _num_coefs
Total number of Legendre polynomial coefficients for the ROM data set in each parition.
unsigned int _num_inputs
Number of inputs for the ROM data set.
const unsigned int _stress_input_index
Index corresponding to the position for the stress in the input vector.
std::vector< std::vector< unsigned int > > _makeframe_helper
Helper container defined by the ROM data set.

◆ preStep()

template<bool is_ad>
virtual void SingleVariableReturnMappingSolutionTempl< is_ad >::preStep ( const GenericReal< is_ad > &  ,
const GenericReal< is_ad > &  ,
const GenericReal< is_ad > &   
)
inlineprotectedvirtualinherited

This method is called before taking a step in the return mapping algorithm.

A typical use case is to accumulate the exact algorithmic tangent during return mapping.

Definition at line 118 of file SingleVariableReturnMappingSolution.h.

121  {
122  }

◆ propagateQpStatefulProperties()

template<bool is_ad>
void RadialReturnCreepStressUpdateBaseTempl< is_ad >::propagateQpStatefulProperties ( )
overrideprotectedvirtualinherited

If updateState is not called during a timestep, this will be.

This method allows derived classes to set internal parameters from their Old values, for instance

Reimplemented from StressUpdateBaseTempl< is_ad >.

Definition at line 43 of file RadialReturnCreepStressUpdateBase.C.

44 {
46 
48 }
const MaterialProperty< RankTwoTensor > & _creep_strain_old
void propagateQpStatefulPropertiesRadialReturn()
Propagate the properties pertaining to this intermediate class.
GenericMaterialProperty< RankTwoTensor, is_ad > & _creep_strain
Creep strain material property.

◆ propagateQpStatefulPropertiesRadialReturn()

template<bool is_ad>
void RadialReturnStressUpdateTempl< is_ad >::propagateQpStatefulPropertiesRadialReturn ( )
protectedinherited

Propagate the properties pertaining to this intermediate class.

This is intended to be called from propagateQpStatefulProperties() in classes that inherit from this one. This is intentionally named uniquely because almost all models that derive from this class have their own stateful properties, and this forces them to define their own implementations of propagateQpStatefulProperties().

Definition at line 143 of file RadialReturnStressUpdate.C.

Referenced by CombinedNonlinearHardeningPlasticityTempl< is_ad >::propagateQpStatefulProperties(), and IsotropicPlasticityStressUpdateTempl< is_ad >::propagateQpStatefulProperties().

144 {
146 }
GenericMaterialProperty< Real, is_ad > & _effective_inelastic_strain
const MaterialProperty< Real > & _effective_inelastic_strain_old

◆ requiresIsotropicTensor()

template<bool is_ad>
bool RadialReturnStressUpdateTempl< is_ad >::requiresIsotropicTensor ( )
inlineoverridevirtualinherited

Does the model require the elasticity tensor to be isotropic?

Implements StressUpdateBaseTempl< is_ad >.

Definition at line 123 of file RadialReturnStressUpdate.h.

123 { return true; }

◆ resetIncrementalMaterialProperties()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::resetIncrementalMaterialProperties ( )
overridevirtual

Reset material properties.

Useful for substepping with inelastic models.

Reimplemented from StressUpdateBaseTempl< is_ad >.

Definition at line 527 of file LAROMANCEStressUpdateBase.C.

528 {
531 
533 
536 }
GenericMaterialProperty< Real, is_ad > & _cell_dislocations_step
GenericReal< is_ad > _wall_dislocation_increment
Container for wall dislocation increment.
RankTwoTensor _plastic_strain_increment
Total plastic strain increment in step (summing substep contributions)
GenericMaterialProperty< Real, is_ad > & _wall_dislocations_step
Material properties accumulated at substeps.
GenericReal< is_ad > _cell_dislocation_increment
Container for cell dislocation increment.

◆ resetProperties()

void StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::resetProperties ( )
inlinefinalvirtualinherited

Reimplemented from Material.

Definition at line 138 of file StressUpdateBase.h.

138 {}

◆ resetQpProperties()

void StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::resetQpProperties ( )
inlinefinalvirtualinherited

Retained as empty methods to avoid a warning from Material.C in framework. These methods are unused in all inheriting classes and should not be overwritten.

Reimplemented from Material.

Definition at line 137 of file StressUpdateBase.h.

137 {}

◆ returnMappingSolve()

template<bool is_ad>
void SingleVariableReturnMappingSolutionTempl< is_ad >::returnMappingSolve ( const GenericReal< is_ad > &  effective_trial_stress,
GenericReal< is_ad > &  scalar,
const ConsoleStream console 
)
protectedinherited

Perform the return mapping iterations.

Parameters
effective_trial_stressEffective trial stress
scalarInelastic strain increment magnitude being solved for
consoleConsole output

Definition at line 100 of file SingleVariableReturnMappingSolution.C.

Referenced by ADViscoplasticityStressUpdate::computeInelasticStrainIncrement(), and ComputeSimoHughesJ2PlasticityStress::computeQpPK1Stress().

104 {
105  // construct the stringstream here only if the debug level is set to ALL
106  std::unique_ptr<std::stringstream> iter_output =
108  ? std::make_unique<std::stringstream>()
109  : nullptr;
110 
111  // do the internal solve and capture iteration info during the first round
112  // iff full history output is requested regardless of whether the solve failed or succeeded
113  auto solve_state =
114  internalSolve(effective_trial_stress,
115  scalar,
116  _internal_solve_full_iteration_history ? iter_output.get() : nullptr);
117  if (solve_state != SolveState::SUCCESS &&
119  {
120  // output suppressed by user, throw immediately
122  mooseException("");
123 
124  // user expects some kind of output, if necessary setup output stream now
125  if (!iter_output)
126  iter_output = std::make_unique<std::stringstream>();
127 
128  // add the appropriate error message to the output
129  switch (solve_state)
130  {
131  case SolveState::NAN_INF:
132  *iter_output << "Encountered inf or nan in material return mapping iterations.\n";
133  break;
134 
136  *iter_output << "Exceeded maximum iterations in material return mapping iterations.\n";
137  break;
138 
139  default:
140  mooseError("Unhandled solver state");
141  }
142 
143  // if full history output is only requested for failed solves we have to repeat
144  // the solve a second time
146  internalSolve(effective_trial_stress, scalar, iter_output.get());
147 
148  // Append summary and throw exception
149  outputIterationSummary(iter_output.get(), _iteration);
150  mooseException(iter_output->str());
151  }
152 
154  {
155  // the solve did not fail but the user requested debug output anyways
156  outputIterationSummary(iter_output.get(), _iteration);
157  console << iter_output->str() << std::flush;
158  }
159 }
void mooseError(Args &&... args)
SolveState internalSolve(const GenericReal< is_ad > effective_trial_stress, GenericReal< is_ad > &scalar, std::stringstream *iter_output=nullptr)
Method called from within this class to perform the actual return mappping iterations.
const bool _internal_solve_full_iteration_history
Whether to output iteration information all the time (regardless of whether iterations converge) ...
virtual void outputIterationSummary(std::stringstream *iter_output, const unsigned int total_it)
Output summary information for the convergence history of the model.
enum SingleVariableReturnMappingSolutionTempl::InternalSolveOutput _internal_solve_output_on

◆ setQp()

void StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::setQp ( unsigned int  qp)
inherited

Sets the value of the global variable _qp for inheriting classes.

Definition at line 46 of file StressUpdateBase.C.

47 {
48  _qp = qp;
49 }

◆ setupUnitConversionFactors()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::setupUnitConversionFactors ( const InputParameters parameters)
protectedvirtual

Definition at line 304 of file LAROMANCEStressUpdateBase.C.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

306 {
307  // Stress unit conversion factor
308  const MooseUnits stress_unit_to("MPa");
309  const MooseUnits stress_unit_from(parameters.get<std::string>("stress_unit"));
310  _stress_ucf = stress_unit_to.convert(1, stress_unit_from);
311 }
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
const InputParameters & parameters() const
Real _stress_ucf
Unit conversion factors required to convert from the specified unit to MPa.

◆ sigmoid()

template<bool is_ad>
GenericReal< is_ad > LAROMANCEStressUpdateBaseTempl< is_ad >::sigmoid ( const Real  lower,
const Real  upper,
const GenericReal< is_ad > &  val,
const bool  derivative = false 
)
protected

Calculate the sigmoid function weighting for the input based on the limits.

Parameters
lowerLower limit
upperUpper limit
valInput value
derivativeOptional flag to return derivative of the sigmoid w.r.t. the input
Returns
weight

Definition at line 1280 of file LAROMANCEStressUpdateBase.C.

1284 {
1285  mooseAssert(std::isfinite(MetaPhysicL::raw_value(val)), "Sigmoid value should must be infinite");
1286  mooseAssert(MetaPhysicL::raw_value(val) >= lower, "Input value must be greater than lower limit");
1287  mooseAssert(MetaPhysicL::raw_value(val) <= upper, "Input value must be greater than upper limit");
1288 
1289  // normalize val between 0 and 1, then shift between -1 and 1
1290  const GenericReal<is_ad> x = 2.0 * (val - lower) / (upper - lower) - 1.0;
1291 
1292  if (x == -1.0)
1293  {
1294  if (derivative)
1295  return 0.0;
1296  else
1297  return 1.0;
1298  }
1299  else if (x == 1.0)
1300  {
1301  if (derivative)
1302  return 0.0;
1303  else
1304  return 0.0;
1305  }
1306  else if (x < 1.0 && x > -1.0)
1307  {
1308  const GenericReal<is_ad> plus = std::exp(-2.0 / (1.0 + x));
1309  const GenericReal<is_ad> minus = std::exp(-2.0 / (1.0 - x));
1310 
1311  if (!derivative)
1312  return 1.0 - plus / (plus + minus);
1313 
1314  const GenericReal<is_ad> dplus_dx = plus * 2.0 / Utility::pow<2>(1.0 + x);
1315  const GenericReal<is_ad> dminus_dx = -minus * 2.0 / Utility::pow<2>(1.0 - x);
1316 
1317  return (plus * dminus_dx - dplus_dx * minus) / Utility::pow<2>(plus + minus) * 2.0 /
1318  (upper - lower);
1319  }
1320  else
1321  mooseError("Internal error: Sigmoid, value: x is out of bounds. val=",
1322  val,
1323  " low=",
1324  lower,
1325  " high=",
1326  upper);
1327 }
Moose::GenericType< Real, is_ad > GenericReal
auto raw_value(const Eigen::Map< T > &in)
const std::vector< double > x
void mooseError(Args &&... args) const

◆ storeIncrementalMaterialProperties()

template<bool is_ad>
void LAROMANCEStressUpdateBaseTempl< is_ad >::storeIncrementalMaterialProperties ( const unsigned int  )
overridevirtual

Properly set up the incremental calculation storage of the stateful material properties in the inheriting classes.

Reimplemented from StressUpdateBaseTempl< is_ad >.

Definition at line 540 of file LAROMANCEStressUpdateBase.C.

542 {
545  _number_of_substeps[_qp] = total_number_of_substeps;
546 }
GenericMaterialProperty< Real, is_ad > & _cell_dislocations_step
GenericReal< is_ad > _wall_dislocation_increment
Container for wall dislocation increment.
GenericMaterialProperty< Real, is_ad > & _wall_dislocations_step
Material properties accumulated at substeps.
MaterialProperty< Real > & _number_of_substeps
Material property capturing number of substeps for output purposes (defaults to one if substepping is...
GenericReal< is_ad > _cell_dislocation_increment
Container for cell dislocation increment.

◆ substeppingCapabilityEnabled()

template<bool is_ad>
bool LAROMANCEStressUpdateBaseTempl< is_ad >::substeppingCapabilityEnabled ( )
overrideprotectedvirtual

Does the model include the infrastructure for substep decomposition of the elastic strain initially used to calculate the trial stress guess Inheriting classes which wish to use the substepping capability should overwrite this method and set it to return true.

Reimplemented from StressUpdateBaseTempl< is_ad >.

Definition at line 297 of file LAROMANCEStressUpdateBase.C.

298 {
300 }
SubsteppingType _use_substepping
Whether user has requested the use of substepping technique to improve convergence [make const later]...
RadialReturnStressUpdate computes the radial return stress increment for an isotropic elastic-viscopl...

◆ substeppingCapabilityRequested()

template<bool is_ad>
virtual bool RadialReturnStressUpdateTempl< is_ad >::substeppingCapabilityRequested ( )
inlineoverridevirtualinherited

Has the user requested usage of (possibly) implemented substepping capability for inelastic models.

Parent classes set this to false, but RadialReturn inelastic models have the ability to implement substepping.

Reimplemented from StressUpdateBaseTempl< is_ad >.

Definition at line 145 of file RadialReturnStressUpdate.h.

146  {
148  }
SubsteppingType _use_substepping
Whether user has requested the use of substepping technique to improve convergence [make const later]...

◆ updateEffectiveInelasticStrain()

template<bool is_ad>
void RadialReturnStressUpdateTempl< is_ad >::updateEffectiveInelasticStrain ( const GenericReal< is_ad > &  increment)
inlineinherited

Definition at line 161 of file RadialReturnStressUpdate.h.

Referenced by ComputeCreepPlasticityStress::finalizeConstitutiveModels().

162  {
164  }
constexpr auto increment(std::index_sequence< first, tail... >)
GenericMaterialProperty< Real, is_ad > & _effective_inelastic_strain
const MaterialProperty< Real > & _effective_inelastic_strain_old

◆ updateEffectiveInelasticStrainIncrement()

template<bool is_ad>
void RadialReturnStressUpdateTempl< is_ad >::updateEffectiveInelasticStrainIncrement ( const GenericReal< is_ad > &  eisi)
inlineinherited

Definition at line 156 of file RadialReturnStressUpdate.h.

Referenced by ComputeCreepPlasticityStress::finalizeConstitutiveModels().

157  {
159  }
GenericReal< is_ad > _effective_inelastic_strain_increment
Stores the scalar effective inelastic strain increment from Newton iteration.

◆ updateState() [1/2]

template<bool is_ad>
void RadialReturnStressUpdateTempl< is_ad >::updateState ( GenericRankTwoTensor< is_ad > &  strain_increment,
GenericRankTwoTensor< is_ad > &  inelastic_strain_increment,
const GenericRankTwoTensor< is_ad > &  rotation_increment,
GenericRankTwoTensor< is_ad > &  stress_new,
const RankTwoTensor stress_old,
const GenericRankFourTensor< is_ad > &  elasticity_tensor,
const RankTwoTensor elastic_strain_old,
bool  compute_full_tangent_operator = false,
RankFourTensor tangent_operator = StressUpdateBaseTempl<is_ad>::_identityTensor 
)
overridevirtualinherited

A radial return (J2) mapping method is performed with return mapping iterations.

Parameters
strain_incrementSum of elastic and inelastic strain increments
inelastic_strain_incrementInelastic strain increment calculated by this class
rotationincrement Not used by this class
stress_newNew trial stress from pure elastic calculation
stress_oldOld state of stress
elasticity_tensorRank 4 C_{ijkl}, must be isotropic
elastic_strain_oldOld state of total elastic strain
compute_full_tangent_operatorFlag currently unused by this class
tangent_operatorCurrently a copy of the elasticity tensor in this class

Reimplemented in RadialReturnBackstressStressUpdateBaseTempl< is_ad >.

Definition at line 237 of file RadialReturnStressUpdate.C.

Referenced by RadialReturnBackstressStressUpdateBaseTempl< is_ad >::updateState().

247 {
248 
249  // compute the deviatoric trial stress and trial strain from the current intermediate
250  // configuration
251  GenericRankTwoTensor<is_ad> deviatoric_trial_stress = stress_new.deviatoric();
252 
253  // compute the effective trial stress
254  GenericReal<is_ad> dev_trial_stress_squared =
255  deviatoric_trial_stress.doubleContraction(deviatoric_trial_stress);
256  GenericReal<is_ad> effective_trial_stress = MetaPhysicL::raw_value(dev_trial_stress_squared)
257  ? std::sqrt(3.0 / 2.0 * dev_trial_stress_squared)
258  : 0.0;
259 
260  computeStressInitialize(effective_trial_stress, elasticity_tensor);
261 
262  mooseAssert(
263  _three_shear_modulus != 0.0,
264  "Shear modulus is zero. Ensure that the base class computeStressInitialize() is called.");
265 
266  // Use Newton iteration to determine the scalar effective inelastic strain increment
268  if (!MooseUtils::absoluteFuzzyEqual(effective_trial_stress, 0.0))
269  {
270  this->returnMappingSolve(
271  effective_trial_stress, _effective_inelastic_strain_increment, this->_console);
273  inelastic_strain_increment =
274  deviatoric_trial_stress *
275  (1.5 * _effective_inelastic_strain_increment / effective_trial_stress);
276  else
277  inelastic_strain_increment.zero();
278  }
279  else
280  inelastic_strain_increment.zero();
281 
282  if (_apply_strain)
283  {
284  strain_increment -= inelastic_strain_increment;
286 
287  // Use the old elastic strain here because we require tensors used by this class
288  // to be isotropic and this method natively allows for changing in time
289  // elasticity tensors
290  stress_new = elasticity_tensor * (strain_increment + elastic_strain_old);
291  }
292 
293  computeStressFinalize(inelastic_strain_increment);
294 
295  if constexpr (!is_ad)
296  {
297  if (compute_full_tangent_operator)
298  computeTangentOperator(effective_trial_stress, stress_new, tangent_operator);
299  }
300  else
301  {
302  libmesh_ignore(compute_full_tangent_operator);
303  libmesh_ignore(tangent_operator);
304  }
305 }
Moose::GenericType< Real, is_ad > GenericReal
virtual void computeStressFinalize(const GenericRankTwoTensor< is_ad > &)
Perform any necessary steps to finalize state after return mapping iterations.
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
virtual void computeStressInitialize(const GenericReal< is_ad > &effective_trial_stress, const GenericRankFourTensor< is_ad > &elasticity_tensor)
Perform any necessary initialization before return mapping iterations.
auto raw_value(const Eigen::Map< T > &in)
GenericReal< is_ad > _three_shear_modulus
3 * shear modulus
void updateEffectiveInelasticStrain(const GenericReal< is_ad > &increment)
Real elasticity_tensor(unsigned int i, unsigned int j, unsigned int k, unsigned int l)
void libmesh_ignore(const Args &...)
void returnMappingSolve(const GenericReal< is_ad > &effective_trial_stress, GenericReal< is_ad > &scalar, const ConsoleStream &console)
Perform the return mapping iterations.
const bool _apply_strain
Debugging option to enable specifying instead of calculating strain.
void computeTangentOperator(Real effective_trial_stress, const RankTwoTensor &stress_new, RankFourTensor &tangent_operator)
Calculate the tangent_operator.
GenericReal< is_ad > _effective_inelastic_strain_increment
Stores the scalar effective inelastic strain increment from Newton iteration.
const ConsoleStream _console
Moose::GenericType< RankTwoTensor, is_ad > GenericRankTwoTensor

◆ updateState() [2/2]

void StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::updateState ( GR2 strain_increment,
GR2 inelastic_strain_increment,
const GR2 rotation_increment,
GR2 stress_new,
const RankTwoTensor stress_old,
const GR4 elasticity_tensor,
const RankTwoTensor elastic_strain_old,
bool  compute_full_tangent_operator = false,
RankFourTensor tangent_operator = StressUpdateBaseTempl<is_ad>::_identityTensor 
)
virtualinherited

Given a strain increment that results in a trial stress, perform some procedure (such as an iterative return-mapping process) to produce an admissible stress, an elastic strain increment and an inelastic strain increment.

If _fe_problem.currentlyComputingJacobian() = true, then updateState also computes d(stress)/d(strain) (or some approximation to it).

This method is called by ComputeMultipleInelasticStress. This method is pure virutal: all inheriting classes must overwrite this method.

Parameters
strain_incrementUpon input: the strain increment. Upon output: the elastic strain increment
inelastic_strain_incrementThe inelastic_strain resulting from the interative procedure
rotation_incrementThe finite-strain rotation increment
stress_newUpon input: the trial stress that results from applying strain_increment as an elastic strain. Upon output: the admissible stress
stress_oldThe old value of stress
elasticity_tensorThe elasticity tensor
compute_full_tangent_operatorThe calling routine would like the full consistent tangent operator to be placed in tangent_operator, if possible. This is irrelevant if _fe_problem.currentlyComputingJacobian() = false
tangent_operatord(stress)/d(strain), or some approximation to it If compute_full_tangent_operator=false, then tangent_operator=elasticity_tensor is an appropriate choice. tangent_operator is only computed if _fe_problem.currentlyComputingJacobian() = true

Definition at line 68 of file StressUpdateBase.C.

78 {
79  mooseError("updateState called: it needs to be implemented by your inelastic model");
80 }
void mooseError(Args &&... args) const

◆ updateStateSubstep() [1/2]

template<bool is_ad>
void RadialReturnStressUpdateTempl< is_ad >::updateStateSubstep ( GenericRankTwoTensor< is_ad > &  strain_increment,
GenericRankTwoTensor< is_ad > &  inelastic_strain_increment,
const GenericRankTwoTensor< is_ad > &  rotation_increment,
GenericRankTwoTensor< is_ad > &  stress_new,
const RankTwoTensor stress_old,
const GenericRankFourTensor< is_ad > &  elasticity_tensor,
const RankTwoTensor elastic_strain_old,
bool  compute_full_tangent_operator = false,
RankFourTensor tangent_operator = StressUpdateBaseTempl<is_ad>::_identityTensor 
)
overridevirtualinherited

Similar to the updateState function, this method updates the strain and stress for one substep.

Definition at line 412 of file RadialReturnStressUpdate.C.

422 {
423  unsigned int num_substeps = calculateNumberSubsteps(strain_increment);
424  _dt_original = _dt;
425  while (true)
426  {
427  try
428  {
429  updateStateSubstepInternal(strain_increment,
430  inelastic_strain_increment,
431  rotation_increment,
432  stress_new,
433  stress_old,
434  elasticity_tensor,
435  elastic_strain_old,
436  num_substeps,
437  compute_full_tangent_operator,
438  tangent_operator);
439  }
440  catch (MooseException & e)
441  {
442  // if we are not using adaptive substepping we just rethrow the exception
444  throw e;
445 
446  // otherwise we double the number of substeps and try again
447  num_substeps *= 2;
448  if (num_substeps <= _maximum_number_substeps)
449  continue;
450 
451  // too meany substeps, break out of the loop
452  break;
453  }
454 
455  // updateStateSubstepInternal was successful (didn't throw)
456  _dt = _dt_original;
457  return;
458  }
459 
460  // recover the original timestep
461  _dt = _dt_original;
462 
463  mooseException("Adaptive substepping failed. Maximum number of substeps exceeded.");
464 }
Real _dt_original
original timestep (to be restored after substepping is completed)
virtual int calculateNumberSubsteps(const GenericRankTwoTensor< is_ad > &strain_increment) override
If substepping is enabled, calculate the number of substeps as a function of the elastic strain incre...
virtual void updateStateSubstepInternal(GenericRankTwoTensor< is_ad > &, GenericRankTwoTensor< is_ad > &, const GenericRankTwoTensor< is_ad > &, GenericRankTwoTensor< is_ad > &, const RankTwoTensor &, const GenericRankFourTensor< is_ad > &, const RankTwoTensor &, unsigned int total_number_substeps, bool compute_full_tangent_operator=false, RankFourTensor &tangent_operator=StressUpdateBaseTempl< is_ad >::_identityTensor)
const unsigned int _maximum_number_substeps
Maximum number of substeps. If the calculation results in a larger number, cut overall time step...
const bool _adaptive_substepping
Use adaptive substepping, cutting substep sizes until convergence is achieved.

◆ updateStateSubstep() [2/2]

void StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::updateStateSubstep ( GR2 ,
GR2 ,
const GR2 ,
GR2 ,
const RankTwoTensor ,
const GR4 ,
const RankTwoTensor ,
bool  compute_full_tangent_operator = false,
RankFourTensor tangent_operator = StressUpdateBaseTempl<is_ad>::_identityTensor 
)
virtualinherited

Similar to the updateState function, this method updates the strain and stress for one substep.

Definition at line 84 of file StressUpdateBase.C.

94 {
95  this->paramError("use_substep",
96  "updateStateSubstep called: it needs to be implemented by your inelastic model");
97 }
void paramError(const std::string &param, Args... args) const

◆ updateStateSubstepInternal()

template<bool is_ad>
void RadialReturnStressUpdateTempl< is_ad >::updateStateSubstepInternal ( GenericRankTwoTensor< is_ad > &  strain_increment,
GenericRankTwoTensor< is_ad > &  inelastic_strain_increment,
const GenericRankTwoTensor< is_ad > &  rotation_increment,
GenericRankTwoTensor< is_ad > &  stress_new,
const RankTwoTensor stress_old,
const GenericRankFourTensor< is_ad > &  elasticity_tensor,
const RankTwoTensor elastic_strain_old,
unsigned int  total_number_substeps,
bool  compute_full_tangent_operator = false,
RankFourTensor tangent_operator = StressUpdateBaseTempl<is_ad>::_identityTensor 
)
virtualinherited

Definition at line 309 of file RadialReturnStressUpdate.C.

320 {
321  // if only one substep is needed, then call the original update state method
322  if (total_number_substeps == 1)
323  {
324  updateState(strain_increment,
325  inelastic_strain_increment,
326  rotation_increment,
327  stress_new,
328  stress_old,
329  elasticity_tensor,
330  elastic_strain_old,
331  compute_full_tangent_operator,
332  tangent_operator);
333 
334  this->storeIncrementalMaterialProperties(total_number_substeps);
335  return;
336  }
337 
338  if (total_number_substeps > _maximum_number_substeps)
339  mooseException("The number of substeps computed exceeds 'maximum_number_substeps'.");
340 
341  // cut the original timestep
342  _dt = _dt_original / total_number_substeps;
343 
344  // initialize the inputs
345  const GenericRankTwoTensor<is_ad> strain_increment_per_step =
346  strain_increment / total_number_substeps;
347  GenericRankTwoTensor<is_ad> sub_stress_new = elasticity_tensor * elastic_strain_old;
348  GenericRankTwoTensor<is_ad> sub_elastic_strain_old = elastic_strain_old;
349 
350  // clear the original inputs
351  MathUtils::mooseSetToZero(strain_increment);
352  MathUtils::mooseSetToZero(inelastic_strain_increment);
353  MathUtils::mooseSetToZero(stress_new);
354 
355  GenericReal<is_ad> sub_effective_inelastic_strain_increment = 0.0;
356  GenericRankTwoTensor<is_ad> sub_inelastic_strain_increment = inelastic_strain_increment;
357 
358  for (unsigned int step = 0; step < total_number_substeps; ++step)
359  {
360  // set up input for this substep
361  GenericRankTwoTensor<is_ad> sub_strain_increment = strain_increment_per_step;
362  sub_stress_new += elasticity_tensor * sub_strain_increment;
363 
364  Real effective_sub_stress_new;
365  if constexpr (!is_ad)
366  {
367  // compute effective_sub_stress_new
368  const RankTwoTensor deviatoric_sub_stress_new = sub_stress_new.deviatoric();
369  const Real dev_sub_stress_new_squared =
370  deviatoric_sub_stress_new.doubleContraction(deviatoric_sub_stress_new);
371  effective_sub_stress_new = std::sqrt(3.0 / 2.0 * dev_sub_stress_new_squared);
372  }
373  else
374  libmesh_ignore(effective_sub_stress_new);
375 
376  // update stress and strain based on the strain increment
377  updateState(sub_strain_increment,
378  sub_inelastic_strain_increment,
379  rotation_increment, // not used in updateState
380  sub_stress_new,
381  stress_old, // not used in updateState
382  elasticity_tensor,
383  elastic_strain_old,
384  false);
385  // do not compute tangent until the end of this substep (or not at all for is_ad == true)
386 
387  // update strain and stress
388  strain_increment += sub_strain_increment;
389  inelastic_strain_increment += sub_inelastic_strain_increment;
390  sub_elastic_strain_old += sub_strain_increment;
391  sub_stress_new = elasticity_tensor * sub_elastic_strain_old;
392 
393  // accumulate scalar_effective_inelastic_strain
394  sub_effective_inelastic_strain_increment += _effective_inelastic_strain_increment;
395 
396  if constexpr (!is_ad)
397  computeTangentOperator(effective_sub_stress_new, sub_stress_new, tangent_operator);
398 
399  // store incremental material properties for this step
400  this->storeIncrementalMaterialProperties(total_number_substeps);
401  }
402 
403  // update stress
404  stress_new = sub_stress_new;
405 
406  // update effective inelastic strain
407  updateEffectiveInelasticStrain(sub_effective_inelastic_strain_increment);
408 }
Moose::GenericType< Real, is_ad > GenericReal
void mooseSetToZero(T &v)
virtual void updateState(GenericRankTwoTensor< is_ad > &strain_increment, GenericRankTwoTensor< is_ad > &inelastic_strain_increment, const GenericRankTwoTensor< is_ad > &rotation_increment, GenericRankTwoTensor< is_ad > &stress_new, const RankTwoTensor &stress_old, const GenericRankFourTensor< is_ad > &elasticity_tensor, const RankTwoTensor &elastic_strain_old, bool compute_full_tangent_operator=false, RankFourTensor &tangent_operator=StressUpdateBaseTempl< is_ad >::_identityTensor) override
A radial return (J2) mapping method is performed with return mapping iterations.
Real _dt_original
original timestep (to be restored after substepping is completed)
void updateEffectiveInelasticStrain(const GenericReal< is_ad > &increment)
Real elasticity_tensor(unsigned int i, unsigned int j, unsigned int k, unsigned int l)
RankTwoTensorTempl< Real > deviatoric() const
void libmesh_ignore(const Args &...)
Real doubleContraction(const RankTwoTensorTempl< Real > &a) const
void computeTangentOperator(Real effective_trial_stress, const RankTwoTensor &stress_new, RankFourTensor &tangent_operator)
Calculate the tangent_operator.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
GenericReal< is_ad > _effective_inelastic_strain_increment
Stores the scalar effective inelastic strain increment from Newton iteration.
virtual void storeIncrementalMaterialProperties(const unsigned int)
Properly set up the incremental calculation storage of the stateful material properties in the inheri...
const unsigned int _maximum_number_substeps
Maximum number of substeps. If the calculation results in a larger number, cut overall time step...
Moose::GenericType< RankTwoTensor, is_ad > GenericRankTwoTensor

◆ validParams()

template<bool is_ad>
InputParameters LAROMANCEStressUpdateBaseTempl< is_ad >::validParams ( )
static

Definition at line 26 of file LAROMANCEStressUpdateBase.C.

Referenced by LAROMANCEPartitionStressUpdateBaseTempl< is_ad >::validParams(), and SS316HLAROMANCEStressUpdateTestTempl< is_ad >::validParams().

27 {
29  params.addClassDescription("Base class to calculate the effective creep strain based on the "
30  "rates predicted by a material specific Los Alamos Reduced Order "
31  "Model derived from a Visco-Plastic Self Consistent calculations.");
32 
33  params.addRequiredCoupledVar("temperature", "The coupled temperature (K)");
34  params.addParam<MaterialPropertyName>("environmental_factor",
35  "Optional coupled environmental factor");
36 
37  MooseEnum error_lower_limit_behavior("ERROR EXCEPTION WARN IGNORE DONTHING USELIMIT",
38  "EXCEPTION");
39  // Only allow ERROR and EXCEPTION on upper bounds
40  MooseEnum error_upper_limit_behavior("ERROR EXCEPTION", "EXCEPTION");
41  params.addParam<MooseEnum>(
42  "cell_input_window_low_failure",
43  error_lower_limit_behavior,
44  "What to do if cell dislocation concentration is outside the lower global "
45  "window of applicability.");
46  params.addParam<MooseEnum>(
47  "cell_input_window_high_failure",
48  error_upper_limit_behavior,
49  "What to do if cell dislocation concentration is outside the upper global "
50  "window of applicability.");
51  params.addParam<MooseEnum>("wall_input_window_low_failure",
52  error_lower_limit_behavior,
53  "What to do if wall dislocation concentration is outside the "
54  "lower global window of applicability.");
55  params.addParam<MooseEnum>("wall_input_window_high_failure",
56  error_upper_limit_behavior,
57  "What to do if wall dislocation concentration is outside the "
58  "upper global window of applicability.");
59  params.addParam<MooseEnum>(
60  "old_strain_input_window_low_failure",
61  error_lower_limit_behavior,
62  "What to do if old strain is outside the lower global window of applicability.");
63  params.addParam<MooseEnum>(
64  "old_strain_input_window_high_failure",
65  error_upper_limit_behavior,
66  "What to do if old strain is outside the upper global window of applicability.");
67 
68  MooseEnum extrapolated_lower_limit_behavior(
69  "ERROR EXCEPTION WARN IGNORE DONOTHING USELIMIT EXTRAPOLATE", "EXTRAPOLATE");
70  params.addParam<MooseEnum>(
71  "stress_input_window_low_failure",
72  extrapolated_lower_limit_behavior,
73  "What to do if stress is outside the lower global window of applicability.");
74  params.addParam<MooseEnum>(
75  "stress_input_window_high_failure",
76  error_upper_limit_behavior,
77  "What to do if stress is outside the upper global window of applicability.");
78  params.addParam<MooseEnum>(
79  "temperature_input_window_low_failure",
80  extrapolated_lower_limit_behavior,
81  "What to do if temperature is outside the lower global window of applicability.");
82  params.addParam<MooseEnum>(
83  "temperature_input_window_high_failure",
84  error_upper_limit_behavior,
85  "What to do if temperature is outside the upper global window of applicability.");
86  params.addParam<MooseEnum>(
87  "environment_input_window_low_failure",
88  extrapolated_lower_limit_behavior,
89  "What to do if environmental factor is outside the lower global window of applicability.");
90  params.addParam<MooseEnum>(
91  "environment_input_window_high_failure",
92  error_upper_limit_behavior,
93  "What to do if environmental factor is outside the upper global window of applicability.");
94 
96  "initial_cell_dislocation_density",
97  "initial_cell_dislocation_density >= 0.0",
98  "Initial density of cell (glissile) dislocations (1/m^2)");
99  params.addRangeCheckedParam<Real>(
100  "cell_dislocations_normal_distribution_width",
101  0.0,
102  "cell_dislocations_normal_distribution_width >= 0.0",
103  "Width of the normal distribution to assign to the initial cell dislocation value. This is "
104  "given as a fraction of the initial_cell_dislocation_density.");
105  params.addRangeCheckedParam<Real>(
106  "max_relative_cell_dislocation_increment",
107  0.5,
108  "max_relative_cell_dislocation_increment > 0.0",
109  "Maximum increment of density of cell (glissile) dislocations.");
110 
112  "initial_wall_dislocation_density",
113  "initial_wall_dislocation_density >= 0.0",
114  "wall (locked) dislocation density initial value (1/m^2).");
115  params.addRangeCheckedParam<Real>(
116  "wall_dislocations_normal_distribution_width",
117  0.0,
118  "wall_dislocations_normal_distribution_width >= 0.0",
119  "Width of the normal distribution to assign to the initial wall dislocation value. This is "
120  "given as a fraction of the initial_wall_dislocation_density.");
121  params.addRangeCheckedParam<Real>(
122  "max_relative_wall_dislocation_increment",
123  0.5,
124  "max_relative_wall_dislocation_increment > 0.0",
125  "Maximum increment of wall (locked) dislocation density initial value (1/m^2).");
126 
127  params.addParam<bool>("verbose", false, "Flag to output verbose information.");
128 
129  params.addParam<FunctionName>(
130  "cell_dislocation_density_forcing_function",
131  "Optional forcing function for wall dislocation. If provided, the wall dislocation "
132  "density will be reset to the function value at the beginning of the timestep. Used for "
133  "testing purposes only.");
134  params.addParam<FunctionName>(
135  "wall_dislocation_density_forcing_function",
136  "Optional forcing function for wall dislocation. If provided, the wall dislocation "
137  "density will be reset to the function value at the beginning of the timestep. Used for "
138  "testing purposes only.");
139  params.addParam<FunctionName>(
140  "old_creep_strain_forcing_function",
141  "Optional forcing function for the creep strain from the previous timestep. If provided, "
142  "the old creep strain will be reset to the function value at the beginning of the "
143  "timestep. Used for testing purposes only.");
144  params.addParam<FunctionName>(
145  "effective_stress_forcing_function",
146  "Optional forcing function for the effective stress. If provided, the effective stress will "
147  "be reset to the function value at the beginning of the timestep. Used for testing purposes "
148  "only.");
149 
150  params.addParam<unsigned int>("seed", 0, "Random number generator seed");
151  params.addParam<std::string>("stress_unit", "Pa", "unit of stress");
152 
153  // use std::string here to avoid automatic absolute path expansion
154  params.addParam<DataFileName>("model", "LaRomance model JSON datafile");
155  params.addParam<FileName>("export_model", "Write LaRomance model to JSON datafile");
156 
157  params.addParamNamesToGroup(
158  "cell_dislocation_density_forcing_function wall_dislocation_density_forcing_function "
159  "old_creep_strain_forcing_function effective_stress_forcing_function seed stress_unit",
160  "Advanced");
161 
162  return params;
163 }
void addRequiredRangeCheckedParam(const std::string &name, const std::string &parsed_function, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
void addRangeCheckedParam(const std::string &name, const T &value, const std::string &parsed_function, const std::string &doc_string)
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)

Member Data Documentation

◆ _adaptive_substepping

template<bool is_ad>
const bool RadialReturnStressUpdateTempl< is_ad >::_adaptive_substepping
protectedinherited

Use adaptive substepping, cutting substep sizes until convergence is achieved.

Definition at line 260 of file RadialReturnStressUpdate.h.

Referenced by RadialReturnStressUpdateTempl< is_ad >::RadialReturnStressUpdateTempl().

◆ _apply_strain

template<bool is_ad>
const bool RadialReturnStressUpdateTempl< is_ad >::_apply_strain
protectedinherited

Debugging option to enable specifying instead of calculating strain.

Definition at line 254 of file RadialReturnStressUpdate.h.

◆ _base_name

const std::string StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::_base_name
protectedinherited

Name used as a prefix for all material properties related to the stress update model.

Definition at line 191 of file StressUpdateBase.h.

◆ _bracket_solution

template<bool is_ad>
bool SingleVariableReturnMappingSolutionTempl< is_ad >::_bracket_solution
protectedinherited

Whether to save upper and lower bounds of root for scalar, and set solution to the midpoint between those bounds if outside them.

Definition at line 145 of file SingleVariableReturnMappingSolution.h.

◆ _cell_dislocation_increment

template<bool is_ad>
GenericReal<is_ad> LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_dislocation_increment
protected

Container for cell dislocation increment.

Definition at line 482 of file LAROMANCEStressUpdateBase.h.

◆ _cell_dislocations

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_dislocations
protected

Material properties for cell (glissile) dislocation densities (1/m^2)

Definition at line 471 of file LAROMANCEStressUpdateBase.h.

◆ _cell_dislocations_old

template<bool is_ad>
const MaterialProperty<Real>& LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_dislocations_old
protected

Definition at line 472 of file LAROMANCEStressUpdateBase.h.

◆ _cell_dislocations_step

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_dislocations_step
protected

Definition at line 630 of file LAROMANCEStressUpdateBase.h.

◆ _cell_function

template<bool is_ad>
const Function* const LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_function
protected

Optional cell dislocation forcing function.

Definition at line 479 of file LAROMANCEStressUpdateBase.h.

◆ _cell_input_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_input_index
protected

Index corresponding to the position for the dislocations with in the cell in the input vector.

Definition at line 502 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

◆ _cell_output_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_output_index
protected

Index corresponding to the position for cell dislocations increment in the output vector.

Definition at line 520 of file LAROMANCEStressUpdateBase.h.

◆ _cell_rate

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_cell_rate
protected

Cell dislocations rate of change.

Definition at line 575 of file LAROMANCEStressUpdateBase.h.

◆ _check_range

template<bool is_ad>
bool SingleVariableReturnMappingSolutionTempl< is_ad >::_check_range
protectedinherited

Whether to check to see whether iterative solution is within admissible range, and set within that range if outside.

Definition at line 138 of file SingleVariableReturnMappingSolution.h.

Referenced by ADViscoplasticityStressUpdate::ADViscoplasticityStressUpdate(), LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl(), and PowerLawCreepTestTempl< is_ad >::PowerLawCreepTestTempl().

◆ _coefs

template<bool is_ad>
std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_coefs
protected

Coefficients used with Legendre polynomials defined by the ROM data set for each partition.

Definition at line 562 of file LAROMANCEStressUpdateBase.h.

◆ _creep_rate

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_creep_rate
protected

Creep rate material property.

Definition at line 572 of file LAROMANCEStressUpdateBase.h.

◆ _creep_strain

template<bool is_ad>
GenericMaterialProperty<RankTwoTensor, is_ad>& RadialReturnCreepStressUpdateBaseTempl< is_ad >::_creep_strain
protectedinherited

Creep strain material property.

Definition at line 54 of file RadialReturnCreepStressUpdateBase.h.

◆ _creep_strain_old

template<bool is_ad>
const MaterialProperty<RankTwoTensor>& RadialReturnCreepStressUpdateBaseTempl< is_ad >::_creep_strain_old
protectedinherited

Definition at line 55 of file RadialReturnCreepStressUpdateBase.h.

◆ _creep_strain_old_forcing_function

template<bool is_ad>
const Function* const LAROMANCEStressUpdateBaseTempl< is_ad >::_creep_strain_old_forcing_function
protected

Optional old creep strain forcing function.

Definition at line 529 of file LAROMANCEStressUpdateBase.h.

◆ _current_elem

template<bool is_ad>
const Elem *const & Material::_current_elem
inherited

◆ _cutoff

template<bool is_ad>
std::vector<Real> LAROMANCEStressUpdateBaseTempl< is_ad >::_cutoff
protected

Container for strain cutoff.

Definition at line 623 of file LAROMANCEStressUpdateBase.h.

◆ _degree

template<bool is_ad>
std::vector<unsigned int> LAROMANCEStressUpdateBaseTempl< is_ad >::_degree
protected

Legendre polynomial degree for the ROM data set for each partition.

Definition at line 544 of file LAROMANCEStressUpdateBase.h.

◆ _derivative

template<bool is_ad>
GenericReal<is_ad> LAROMANCEStressUpdateBaseTempl< is_ad >::_derivative
protected

Container for derivative of creep increment with respect to strain.

Definition at line 587 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::computeDerivative().

◆ _deviatoric_projection_four

template<bool is_ad>
const RankFourTensor RadialReturnStressUpdateTempl< is_ad >::_deviatoric_projection_four
protectedinherited

Rank four deviatoric projection tensor.

Definition at line 251 of file RadialReturnStressUpdate.h.

◆ _dpartition_weight_dstress

template<bool is_ad>
std::vector<GenericReal<is_ad> > LAROMANCEStressUpdateBaseTempl< is_ad >::_dpartition_weight_dstress
protected

Container for d_parition_weights d_stress.

Definition at line 617 of file LAROMANCEStressUpdateBase.h.

◆ _dt

template<bool is_ad>
Real & Material::_dt
inherited

◆ _dt_original

template<bool is_ad>
Real RadialReturnStressUpdateTempl< is_ad >::_dt_original
protectedinherited

original timestep (to be restored after substepping is completed)

Definition at line 266 of file RadialReturnStressUpdate.h.

◆ _effective_inelastic_strain

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& RadialReturnStressUpdateTempl< is_ad >::_effective_inelastic_strain
protectedinherited

◆ _effective_inelastic_strain_increment

template<bool is_ad>
GenericReal<is_ad> RadialReturnStressUpdateTempl< is_ad >::_effective_inelastic_strain_increment
protectedinherited

Stores the scalar effective inelastic strain increment from Newton iteration.

Definition at line 223 of file RadialReturnStressUpdate.h.

Referenced by RadialReturnStressUpdateTempl< is_ad >::effectiveInelasticStrainIncrement(), and RadialReturnStressUpdateTempl< is_ad >::updateEffectiveInelasticStrainIncrement().

◆ _effective_inelastic_strain_old

template<bool is_ad>
const MaterialProperty<Real>& RadialReturnStressUpdateTempl< is_ad >::_effective_inelastic_strain_old
protectedinherited

◆ _environmental

template<bool is_ad>
const GenericMaterialProperty<Real, is_ad>* LAROMANCEStressUpdateBaseTempl< is_ad >::_environmental
protected

◆ _environmental_input_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_environmental_input_index
protected

Index corresponding to the position for the environmental factor in the input vector.

Definition at line 517 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

◆ _extrapolation

template<bool is_ad>
MaterialProperty<Real>& LAROMANCEStressUpdateBaseTempl< is_ad >::_extrapolation
protected

Material property to hold smootherstep applied in order to extrapolate.

Definition at line 581 of file LAROMANCEStressUpdateBase.h.

◆ _global_limits

template<bool is_ad>
std::vector<std::pair<Real, Real> > LAROMANCEStressUpdateBaseTempl< is_ad >::_global_limits
protected

Container for global limits.

Definition at line 605 of file LAROMANCEStressUpdateBase.h.

◆ _identity_symmetric_four

template<bool is_ad>
const RankFourTensor RadialReturnStressUpdateTempl< is_ad >::_identity_symmetric_four
protectedinherited

Rank four symmetric identity tensor.

Definition at line 246 of file RadialReturnStressUpdate.h.

◆ _identity_two

template<bool is_ad>
const RankTwoTensor RadialReturnStressUpdateTempl< is_ad >::_identity_two
protectedinherited

Rank two identity tensor.

Definition at line 241 of file RadialReturnStressUpdate.h.

◆ _identityTensor

RankFourTensor StressUpdateBaseTempl< is_ad, RankTwoTensor , RankFourTensor >::_identityTensor
staticprotectedinherited

Definition at line 193 of file StressUpdateBase.h.

◆ _index_name

template<bool is_ad>
std::vector<std::string> LAROMANCEStressUpdateBaseTempl< is_ad >::_index_name
protected

index names for error output

Definition at line 640 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

◆ _input_limits

template<bool is_ad>
std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_input_limits
protected

Input limits defined by the ROM data set for each partition.

Definition at line 556 of file LAROMANCEStressUpdateBase.h.

◆ _input_values

template<bool is_ad>
std::vector<GenericReal<is_ad> > LAROMANCEStressUpdateBaseTempl< is_ad >::_input_values
protected

Container for input values.

Definition at line 590 of file LAROMANCEStressUpdateBase.h.

◆ _json

template<bool is_ad>
nlohmann::json LAROMANCEStressUpdateBaseTempl< is_ad >::_json
protected

◆ _line_search

template<bool is_ad>
bool SingleVariableReturnMappingSolutionTempl< is_ad >::_line_search
protectedinherited

Whether to use line searches to improve convergence.

Definition at line 141 of file SingleVariableReturnMappingSolution.h.

◆ _makeframe_helper

template<bool is_ad>
std::vector<std::vector<unsigned int> > LAROMANCEStressUpdateBaseTempl< is_ad >::_makeframe_helper
protected

Helper container defined by the ROM data set.

Definition at line 569 of file LAROMANCEStressUpdateBase.h.

◆ _max_cell_increment

template<bool is_ad>
const Real LAROMANCEStressUpdateBaseTempl< is_ad >::_max_cell_increment
protected

Maximum cell dislocation increment.

Definition at line 476 of file LAROMANCEStressUpdateBase.h.

◆ _max_inelastic_increment

template<bool is_ad>
Real RadialReturnStressUpdateTempl< is_ad >::_max_inelastic_increment
protectedinherited

Maximum allowable scalar inelastic strain increment, used to control the timestep size in conjunction with a user object.

Definition at line 229 of file RadialReturnStressUpdate.h.

◆ _max_wall_increment

template<bool is_ad>
const Real LAROMANCEStressUpdateBaseTempl< is_ad >::_max_wall_increment
protected

Maximum wall dislocation increment.

Definition at line 490 of file LAROMANCEStressUpdateBase.h.

◆ _maximum_number_substeps

template<bool is_ad>
const unsigned int RadialReturnStressUpdateTempl< is_ad >::_maximum_number_substeps
protectedinherited

Maximum number of substeps. If the calculation results in a larger number, cut overall time step.

Definition at line 263 of file RadialReturnStressUpdate.h.

◆ _name

template<bool is_ad>
const std::string Material::_name
protected

◆ _non_stress_weights

template<bool is_ad>
std::vector<std::vector<GenericReal<is_ad> > > LAROMANCEStressUpdateBaseTempl< is_ad >::_non_stress_weights
protected

Container for weights for each tile as computed for all input values beside stress.

Definition at line 608 of file LAROMANCEStressUpdateBase.h.

◆ _normalization_limits

template<bool is_ad>
std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_normalization_limits
protected

Normalization limits defined by the ROM data set for each partition.

Definition at line 559 of file LAROMANCEStressUpdateBase.h.

◆ _num_coefs

template<bool is_ad>
std::vector<unsigned int> LAROMANCEStressUpdateBaseTempl< is_ad >::_num_coefs
protected

Total number of Legendre polynomial coefficients for the ROM data set in each parition.

Definition at line 547 of file LAROMANCEStressUpdateBase.h.

◆ _num_inputs

template<bool is_ad>
unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_num_inputs
protected

Number of inputs for the ROM data set.

Definition at line 538 of file LAROMANCEStressUpdateBase.h.

◆ _num_outputs

template<bool is_ad>
unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_num_outputs
protected

Number of inputs to the ROM data set.

Definition at line 541 of file LAROMANCEStressUpdateBase.h.

◆ _num_partitions

template<bool is_ad>
unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_num_partitions
protected

Number of partitions.

Definition at line 532 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::computePartitionWeights().

◆ _num_tiles

template<bool is_ad>
std::vector<unsigned int> LAROMANCEStressUpdateBaseTempl< is_ad >::_num_tiles
protected

Number of ROM tiles per partition.

Definition at line 535 of file LAROMANCEStressUpdateBase.h.

◆ _number_of_substeps

template<bool is_ad>
MaterialProperty<Real>& LAROMANCEStressUpdateBaseTempl< is_ad >::_number_of_substeps
protected

Material property capturing number of substeps for output purposes (defaults to one if substepping isn't used)

Definition at line 637 of file LAROMANCEStressUpdateBase.h.

◆ _old_input_values

template<bool is_ad>
std::vector<Real> LAROMANCEStressUpdateBaseTempl< is_ad >::_old_input_values
protected

Container for old input values.

Definition at line 593 of file LAROMANCEStressUpdateBase.h.

◆ _old_strain_input_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_old_strain_input_index
protected

Index corresponding to the position for the old strain in the input vector.

Definition at line 511 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

◆ _partition_weights

template<bool is_ad>
std::vector<GenericReal<is_ad> > LAROMANCEStressUpdateBaseTempl< is_ad >::_partition_weights
protected

Container for weights for each tile as computed for all input values beside stress.

Definition at line 614 of file LAROMANCEStressUpdateBase.h.

◆ _plastic_strain_increment

template<bool is_ad>
RankTwoTensor LAROMANCEStressUpdateBaseTempl< is_ad >::_plastic_strain_increment
protected

Total plastic strain increment in step (summing substep contributions)

Definition at line 634 of file LAROMANCEStressUpdateBase.h.

◆ _polynomial_inputs

template<bool is_ad>
std::vector<std::vector<std::vector<std::vector<GenericReal<is_ad> > > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_polynomial_inputs
protected

Container for ROM polynomial inputs.

Definition at line 599 of file LAROMANCEStressUpdateBase.h.

◆ _precomputed_vals

template<bool is_ad>
std::vector<std::vector<std::vector<GenericReal<is_ad> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_precomputed_vals
protected

Container for ROM precomputed values.

Definition at line 602 of file LAROMANCEStressUpdateBase.h.

◆ _q_point

template<bool is_ad>
const MooseArray< Point > & Material::_q_point
protected

◆ _qp

template<bool is_ad>
unsigned int Material::_qp
protected

◆ _rom_inputs

template<bool is_ad>
std::vector<std::vector<std::vector<GenericReal<is_ad> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_rom_inputs
protected

Container for converted rom_inputs.

Definition at line 596 of file LAROMANCEStressUpdateBase.h.

◆ _second_partition_weight

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_second_partition_weight
protected

Material property to store partition weight.

Definition at line 584 of file LAROMANCEStressUpdateBase.h.

◆ _strain_output_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_strain_output_index
protected

Index corresponding to the position for strain increment in the output vector.

Definition at line 526 of file LAROMANCEStressUpdateBase.h.

◆ _stress_function

template<bool is_ad>
const Function* const LAROMANCEStressUpdateBaseTempl< is_ad >::_stress_function
protected

Optiontal effective stress forcing function.

Definition at line 496 of file LAROMANCEStressUpdateBase.h.

◆ _stress_input_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_stress_input_index
protected

Index corresponding to the position for the stress in the input vector.

Definition at line 508 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

◆ _stress_ucf

template<bool is_ad>
Real LAROMANCEStressUpdateBaseTempl< is_ad >::_stress_ucf
protected

Unit conversion factors required to convert from the specified unit to MPa.

Definition at line 626 of file LAROMANCEStressUpdateBase.h.

◆ _substep_tolerance

template<bool is_ad>
const Real RadialReturnStressUpdateTempl< is_ad >::_substep_tolerance
protectedinherited

Used to calculate the number of substeps taken in the radial return algorithm, when substepping is enabled, based on the elastic strain increment ratio to the maximum inelastic increment.

Definition at line 236 of file RadialReturnStressUpdate.h.

◆ _temperature

template<bool is_ad>
const GenericVariableValue<is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_temperature
protected

Coupled temperature variable.

Definition at line 456 of file LAROMANCEStressUpdateBase.h.

◆ _temperature_input_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_temperature_input_index
protected

Index corresponding to the position for the tempeature in the input vector.

Definition at line 514 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

◆ _three_shear_modulus

template<bool is_ad>
GenericReal<is_ad> RadialReturnStressUpdateTempl< is_ad >::_three_shear_modulus
protectedinherited

◆ _tiling

template<bool is_ad>
std::vector<std::vector<unsigned int> > LAROMANCEStressUpdateBaseTempl< is_ad >::_tiling
protected

Container for tiling orientations.

Definition at line 620 of file LAROMANCEStressUpdateBase.h.

◆ _transform

template<bool is_ad>
std::vector<std::vector<std::vector<std::vector<ROMInputTransform> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_transform
protected

Transform rules defined by the ROM data set for each partition.

Definition at line 550 of file LAROMANCEStressUpdateBase.h.

◆ _transform_coefs

template<bool is_ad>
std::vector<std::vector<std::vector<std::vector<Real> > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_transform_coefs
protected

Transform coefficients defined by the ROM data set for each partition.

Definition at line 553 of file LAROMANCEStressUpdateBase.h.

◆ _transformed_normalization_limits

template<bool is_ad>
std::vector<std::vector<std::vector<std::vector<std::vector<Real> > > > > LAROMANCEStressUpdateBaseTempl< is_ad >::_transformed_normalization_limits
protected

Limits transformed from readabile input to ROM readable limits for normalization.

Definition at line 566 of file LAROMANCEStressUpdateBase.h.

◆ _use_substepping

template<bool is_ad>
SubsteppingType RadialReturnStressUpdateTempl< is_ad >::_use_substepping
protectedinherited

◆ _verbose

template<bool is_ad>
const bool LAROMANCEStressUpdateBaseTempl< is_ad >::_verbose
protected

Flag to output verbose infromation.

Definition at line 468 of file LAROMANCEStressUpdateBase.h.

◆ _wall_dislocation_increment

template<bool is_ad>
GenericReal<is_ad> LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_dislocation_increment
protected

Container for wall dislocation increment.

Definition at line 499 of file LAROMANCEStressUpdateBase.h.

◆ _wall_dislocations

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_dislocations
protected

Material properties for wall (locked) dislocation densities (1/m^2)

Definition at line 485 of file LAROMANCEStressUpdateBase.h.

◆ _wall_dislocations_old

template<bool is_ad>
const MaterialProperty<Real>& LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_dislocations_old
protected

Definition at line 486 of file LAROMANCEStressUpdateBase.h.

◆ _wall_dislocations_step

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_dislocations_step
protected

Material properties accumulated at substeps.

Definition at line 629 of file LAROMANCEStressUpdateBase.h.

◆ _wall_function

template<bool is_ad>
const Function* const LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_function
protected

Optional wall dislocation forcing function.

Definition at line 493 of file LAROMANCEStressUpdateBase.h.

◆ _wall_input_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_input_index
protected

Index corresponding to the position for the dislocations within the cell wall in the input vector.

Definition at line 505 of file LAROMANCEStressUpdateBase.h.

Referenced by LAROMANCEStressUpdateBaseTempl< is_ad >::LAROMANCEStressUpdateBaseTempl().

◆ _wall_output_index

template<bool is_ad>
const unsigned int LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_output_index
protected

Index corresponding to the position for wall dislocations increment in the output vector.

Definition at line 523 of file LAROMANCEStressUpdateBase.h.

◆ _wall_rate

template<bool is_ad>
GenericMaterialProperty<Real, is_ad>& LAROMANCEStressUpdateBaseTempl< is_ad >::_wall_rate
protected

Wall dislocations rate of change.

Definition at line 578 of file LAROMANCEStressUpdateBase.h.

◆ _weights

template<bool is_ad>
std::vector<std::vector<GenericReal<is_ad> > > LAROMANCEStressUpdateBaseTempl< is_ad >::_weights
protected

Container for weights for each tile as computed for all input values beside stress.

Definition at line 611 of file LAROMANCEStressUpdateBase.h.

◆ _window_failure

template<bool is_ad>
std::vector<std::pair<WindowFailure, WindowFailure> > LAROMANCEStressUpdateBaseTempl< is_ad >::_window_failure
protected

◆ usingTransientInterfaceMembers

template<bool is_ad>
LAROMANCEStressUpdateBaseTempl< is_ad >::usingTransientInterfaceMembers
protected

Definition at line 648 of file LAROMANCEStressUpdateBase.h.


The documentation for this class was generated from the following files: