KKSPhaseConcentrationMaterial

Kim-Kim-Suzuki (KKS) nested solve material (part 1 of 2). KKSPhaseConcentrationMaterial implements a nested Newton iteration to solve the KKS constraint equations for the phase concentrations and as material properties (instead of non-linear variables as in the traditional solve in MOOSE). The constraint equations are the mass conservation equation for each global concentration ():

and the pointwise equality of the phase chemical potentials:

The parameters Fa_material and Fb_material must have "compute" set to false. This material also passes the phase free energies and their partial derivatives w.r.t phase concentrations to the KKS kernels (NestKKSACBulkC, NestKKSACBulkF, NestKKSSplitCHCRes).

Example input:

Without damping

Parabolic free energies have valid values for any real number, and therefore don't require damping to ensure the solution is inside a trust region.

[Materials]
  # Free energy of the matrix
  [fm]
    type = DerivativeParsedMaterial
    property_name = fm
    expression = '(0.1-cm)^2'
    material_property_names = 'cm'
    additional_derivative_symbols = 'cm'
    compute = false
  []

  # Free energy of the delta phase
  [fd]
    type = DerivativeParsedMaterial
    property_name = fd
    expression = '(0.9-cd)^2'
    material_property_names = 'cd'
    additional_derivative_symbols = 'cd'
    compute = false
  []

  # Compute phase concentrations
  [PhaseConcentrationMaterial]
    type = KKSPhaseConcentrationMaterial
    global_cs = 'c'
    ci_names = 'cm cd'
    ci_IC = '0 0'
    fa_name = fm
    fb_name = fd
    h_name = h
    min_iterations = 1
    max_iterations = 100
    absolute_tolerance = 1e-9
    relative_tolerance = 1e-9
    nested_iterations = iter
    outputs = exodus
  []

  # Compute chain rule terms
  [PhaseConcentrationDerivatives]
    type = KKSPhaseConcentrationDerivatives
    global_cs = 'c'
    eta = eta
    ci_names = 'cm cd'
    fa_name = fm
    fb_name = fd
    h_name = h
  []

  # h(eta)
  [h_eta]
    type = SwitchingFunctionMaterial
    h_order = HIGH
    eta = eta
  []

  # g(eta)
  [g_eta]
    type = BarrierFunctionMaterial
    g_order = SIMPLE
    eta = eta
  []

  # constant properties
  [constants]
    type = GenericConstantMaterial
    prop_names = 'M   L   kappa'
    prop_values = '0.7 0.7 0.4  '
  []
[]
(moose/modules/phase_field/test/tests/KKS_system/kks_example_nested.i)

With damping

Log free energies are only valid when the component phase mole fractions are within 0 to 1. We add a material C that checks if the nested solve guess is within this trust region. Similar to the free energy, C must have "compute" set to false. The nested solve then requires damping to ensure the solution is inside the trust region.

[Materials]
  # Free energy of the matrix
  [fm]
    type = DerivativeParsedMaterial
    property_name = fm
    expression = 'cm*log(cm/1e-4) + (1-cm)*log((1-cm)/(1-1e-4))'
    material_property_names = 'cm'
    additional_derivative_symbols = 'cm'
    compute = false
  []

  # Free energy of the delta phase
  [fd]
    type = DerivativeParsedMaterial
    property_name = fd
    expression = 'cd*log(cd/0.9999) + (1-cd)*log((1-cd)/(1-0.9999))'
    material_property_names = 'cd'
    additional_derivative_symbols = 'cd'
    compute = false
  []
  [C]
    type = DerivativeParsedMaterial
    property_name = 'C'
    material_property_names = 'cm cd'
    expression = '(cm>0)&(cm<1)&(cd>0)&(cd<1)'
    compute = false
  []
  # Compute phase concentrations
  [PhaseConcentrationMaterial]
    type = KKSPhaseConcentrationMaterial
    global_cs = 'c'
    ci_names = 'cm cd'
    ci_IC = '0.1 0.9'
    fa_name = fm
    fb_name = fd
    h_name = h
    min_iterations = 1
    max_iterations = 100
    absolute_tolerance = 1e-15
    relative_tolerance = 1e-8
    step_size_tolerance = 1e-05
    nested_iterations = iter
    outputs = exodus
    damped_Newton = true
    conditions = C
    damping_factor = 0.8
  []

  # Compute chain rule terms
  [PhaseConcentrationDerivatives]
    type = KKSPhaseConcentrationDerivatives
    global_cs = 'c'
    eta = eta
    ci_names = 'cm cd'
    fa_name = fm
    fb_name = fd
    h_name = h
  []

  # h(eta)
  [h_eta]
    type = SwitchingFunctionMaterial
    h_order = HIGH
    eta = eta
  []

  # g(eta)
  [g_eta]
    type = BarrierFunctionMaterial
    g_order = SIMPLE
    eta = eta
  []

  # constant properties
  [constants]
    type = GenericConstantMaterial
    prop_names = 'M   L   kappa'
    prop_values = '0.7 0.7 0.4  '
  []
[]
(moose/modules/phase_field/test/tests/KKS_system/kks_example_nested_damped.i)

Class Description

Computes the KKS phase concentrations by using nested Newton iteration to solve the equal chemical potential and concentration conservation equations. This class is intended to be used with KKSPhaseConcentrationDerivatives.

Input Parameters

  • ci_ICInitial values of ci in the same order as ci_names.

    C++ Type:std::vector<double>

    Controllable:No

    Description:Initial values of ci in the same order as ci_names.

  • ci_namesPhase concentrations. The order must match Fa, Fb, and global_cs, for example, c1, c2, b1, b2, etc.

    C++ Type:std::vector<MaterialPropertyName>

    Controllable:No

    Description:Phase concentrations. The order must match Fa, Fb, and global_cs, for example, c1, c2, b1, b2, etc.

  • fa_nameFa material object.

    C++ Type:MaterialName

    Controllable:No

    Description:Fa material object.

  • fb_nameFb material object.

    C++ Type:MaterialName

    Controllable:No

    Description:Fb material object.

  • global_csThe interpolated concentrations c, b, etc.

    C++ Type:std::vector<VariableName>

    Controllable:No

    Description:The interpolated concentrations c, b, etc.

  • h_nameSwitching function h(eta).

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:Switching function h(eta).

Required Parameters

  • absolute_tolerance1e-13Absolute convergence tolerance for Newton iteration

    Default:1e-13

    C++ Type:double

    Controllable:No

    Description:Absolute convergence tolerance for Newton iteration

  • acceptable_multiplier10Factor applied to relative and absolute tolerance for acceptable nonlinear convergence if iterations are no longer making progress

    Default:10

    C++ Type:double

    Controllable:No

    Description:Factor applied to relative and absolute tolerance for acceptable nonlinear convergence if iterations are no longer making progress

  • argsThe coupled variables of Fa and Fb.

    C++ Type:std::vector<VariableName>

    Controllable:No

    Description:The coupled variables of Fa and Fb.

  • blockThe list of blocks (ids or names) that this object will be applied

    C++ Type:std::vector<SubdomainName>

    Controllable:No

    Description:The list of blocks (ids or names) that this object will be applied

  • boundaryThe list of boundaries (ids or names) from the mesh where this object applies

    C++ Type:std::vector<BoundaryName>

    Controllable:No

    Description:The list of boundaries (ids or names) from the mesh where this object applies

  • computeTrueWhen false, MOOSE will not call compute methods on this material. The user must call computeProperties() after retrieving the MaterialBase via MaterialBasePropertyInterface::getMaterialBase(). Non-computed MaterialBases are not sorted for dependencies.

    Default:True

    C++ Type:bool

    Controllable:No

    Description:When false, MOOSE will not call compute methods on this material. The user must call computeProperties() after retrieving the MaterialBase via MaterialBasePropertyInterface::getMaterialBase(). Non-computed MaterialBases are not sorted for dependencies.

  • conditionsCMaterial property that checks bounds and conditions on the material properties being solved for.

    Default:C

    C++ Type:MaterialName

    Controllable:No

    Description:Material property that checks bounds and conditions on the material properties being solved for.

  • constant_onNONEWhen ELEMENT, MOOSE will only call computeQpProperties() for the 0th quadrature point, and then copy that value to the other qps.When SUBDOMAIN, MOOSE will only call computeQpProperties() for the 0th quadrature point, and then copy that value to the other qps. Evaluations on element qps will be skipped

    Default:NONE

    C++ Type:MooseEnum

    Options:NONE, ELEMENT, SUBDOMAIN

    Controllable:No

    Description:When ELEMENT, MOOSE will only call computeQpProperties() for the 0th quadrature point, and then copy that value to the other qps.When SUBDOMAIN, MOOSE will only call computeQpProperties() for the 0th quadrature point, and then copy that value to the other qps. Evaluations on element qps will be skipped

  • damped_NewtonFalseWhether or not to use the damped Newton's method.

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Whether or not to use the damped Newton's method.

  • damping_factor0.8Factor applied to step size if guess does not satisfy damping criteria

    Default:0.8

    C++ Type:double

    Controllable:No

    Description:Factor applied to step size if guess does not satisfy damping criteria

  • declare_suffixAn optional suffix parameter that can be appended to any declared properties. The suffix will be prepended with a '_' character.

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:An optional suffix parameter that can be appended to any declared properties. The suffix will be prepended with a '_' character.

  • max_damping_iterations100Maximum number of damping steps per linear iteration of nested solve

    Default:100

    C++ Type:unsigned int

    Controllable:No

    Description:Maximum number of damping steps per linear iteration of nested solve

  • max_iterations1000Maximum number of nonlinear iterations

    Default:1000

    C++ Type:unsigned int

    Controllable:No

    Description:Maximum number of nonlinear iterations

  • min_iterations3Minimum number of nonlinear iterations to execute before accepting convergence

    Default:3

    C++ Type:unsigned int

    Controllable:No

    Description:Minimum number of nonlinear iterations to execute before accepting convergence

  • nested_iterationsThe output number of nested Newton iterations at each quadrature point.

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:The output number of nested Newton iterations at each quadrature point.

  • prop_getter_suffixAn optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:An optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

  • relative_tolerance1e-08Relative convergence tolerance for Newton iteration

    Default:1e-08

    C++ Type:double

    Controllable:No

    Description:Relative convergence tolerance for Newton iteration

  • step_size_tolerance1e-15Minimum step size of linear iterations relative to value of the solution

    Default:1e-15

    C++ Type:double

    Controllable:No

    Description:Minimum step size of linear iterations relative to value of the solution

  • use_interpolated_stateFalseFor the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.

    Default:False

    C++ Type:bool

    Controllable:No

    Description:For the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.

Optional Parameters

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

    C++ Type:std::vector<std::string>

    Controllable:No

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

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Controllable:Yes

    Description:Set the enabled status of the MooseObject.

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

    Default:True

    C++ Type:bool

    Controllable:No

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

  • seed0The seed for the master random number generator

    Default:0

    C++ Type:unsigned int

    Controllable:No

    Description:The seed for the master random number generator

  • 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

    Controllable:No

    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.

Advanced Parameters

  • output_propertiesList of material properties, from this material, to output (outputs must also be defined to an output type)

    C++ Type:std::vector<std::string>

    Controllable:No

    Description:List of material properties, from this material, to output (outputs must also be defined to an output type)

  • outputsnone Vector of output names where you would like to restrict the output of variables(s) associated with this object

    Default:none

    C++ Type:std::vector<OutputName>

    Controllable:No

    Description:Vector of output names where you would like to restrict the output of variables(s) associated with this object

Outputs Parameters