# CrystalPlasticityStateVariable

## Description

CrystalPlasticityStateVariable represents a state variable, such as dislocation density in crystal plasticity system. The initial values of this state variable are either provided in the input file readInitialValueFromInline() or read from the file readInitialValueFromFile(). The state variable evolves as is the state variable evolution rate. The can have multiple components, such as where "" are the scale_factor and are the individual rate components.

## Input Parameters

• variable_sizeThe userobject's variable size.

C++ Type:unsigned int

Options:

Description:The userobject's variable size.

### Required Parameters

• group_valuesThe initial values correspoinding to each group, i.e. '0.0 1.0 2.0' means 0-4 = 0.0, 4-8 = 1.0 and 8-12 = 2.0

C++ Type:std::vector

Options:

Description:The initial values correspoinding to each group, i.e. '0.0 1.0 2.0' means 0-4 = 0.0, 4-8 = 1.0 and 8-12 = 2.0

• state_variable_file_nameName of the file containing the initial values of slip system resistances

C++ Type:FileName

Options:

Description:Name of the file containing the initial values of slip system resistances

• scale_factorScale factor of individual component.

C++ Type:std::vector

Options:

Description:Scale factor of individual component.

• zero0Numerical zero for interval variable

Default:0

C++ Type:double

Options:

Description:Numerical zero for interval variable

• groupsTo group the initial values on different slip systems 'format: [start end)', i.e.'0 4 8 11' groups 0-3, 4-7 and 8-11

C++ Type:std::vector

Options:

Description:To group the initial values on different slip systems 'format: [start end)', i.e.'0 4 8 11' groups 0-3, 4-7 and 8-11

• uo_state_var_evol_rate_comp_nameName of state variable evolution rate component property: Same as state variable evolution rate component user object specified in input file.

C++ Type:std::vector

Options:

Description:Name of state variable evolution rate component property: Same as state variable evolution rate component user object specified in input file.

• intvar_read_typeinline_inputRead from options for initial value of internal variables: Default from .i file

Default:inline_input

C++ Type:MooseEnum

Options:file_input inline_input user_input

Description:Read from options for initial value of internal variables: Default from .i file

• blockThe list of block ids (SubdomainID) that this object will be applied

C++ Type:std::vector

Options:

Description:The list of block ids (SubdomainID) that this object will be applied

### Optional Parameters

• enableTrueSet the enabled status of the MooseObject.

Default:True

C++ Type:bool

Options:

Description:Set the enabled status of the MooseObject.

• use_displaced_meshFalseWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

Default:False

C++ Type:bool

Options:

Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

• control_tagsAdds user-defined labels for accessing object parameters via control logic.

C++ Type:std::vector

Options:

Description:Adds user-defined labels for accessing object parameters via control logic.

• allow_duplicate_execution_on_initialFalseIn the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

Default:False

C++ Type:bool

Options:

Description:In the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

• seed0The seed for the master random number generator

Default:0

C++ Type:unsigned int

Options:

Description:The seed for the master random number generator

• implicitTrueDetermines whether this object is calculated using an implicit or explicit form

Default:True

C++ Type:bool

Options:

Description:Determines whether this object is calculated using an implicit or explicit form