LinearFVPhaseChangeSource

Linear FV elemental kernel that adds the apparent heat-capacity phase-change source term: rho * L * (df/dT) * T_dot, with f the liquid fraction.

Overview

This elemental kernel adds the apparent heat-capacity latent-heat contribution to a temperature-based energy equation solved with the linear finite volume discretization:

where is the mixture density, the latent heat of fusion, and the liquid fraction defined over the mushy interval using the normalized temperature

Two liquid-fraction shapes are available through the "smoothing" parameter:

  • smooth (default): a smoothstep , giving , which vanishes is a regularization using the cubic Hermite interpolation employed for solid–liquid phase interpolation Wang et al. (1993),

  • sharp: a linear liquid fraction , giving a constant inside the interval and zero outside.

Both variants release the same total latent heat across the interval. The matrix contribution treats the temperature time derivative implicitly using the time integrator of the system, while is evaluated using the current temperature iterate.

commentnote

Ensure that the simulation has the proper spatial-temporal discretization, to converge the liquid-solid front advancement.

commentnote

This kernel is intended for temperature-based solves only. It must not be combined with a total-enthalpy formulation, in which the latent heat is already contained in the solved variable.

Example input syntax

[LinearFVKernels<<<{"href": "../../syntax/LinearFVKernels/index.html"}>>>]

  [energy_time]
    type = LinearFVTimeDerivative<<<{"description": "Represents the matrix and right hand side contributions of a time derivative term in a partial differential equation.", "href": "LinearFVTimeDerivative.html"}>>>
    variable<<<{"description": "The name of the variable whose linear system this object contributes to"}>>> = T
    factor<<<{"description": "A multiplier on the variable within the time derivative. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number."}>>> = '${fparse rho * cp}'
  []
  [energy_conduction]
    type = LinearFVDiffusion<<<{"description": "Represents the matrix and right hand side contributions of a diffusion term in a partial differential equation.", "href": "LinearFVDiffusion.html"}>>>
    variable<<<{"description": "The name of the variable whose linear system this object contributes to"}>>> = T
    diffusion_coeff<<<{"description": "The diffusion coefficient. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number."}>>> = ${k}
    use_nonorthogonal_correction<<<{"description": "If the nonorthogonal correction should be used when computing the normal gradient."}>>> = false
  []
  [energy_source]
    type = LinearFVPhaseChangeSource<<<{"description": "Linear FV elemental kernel that adds the apparent heat-capacity phase-change source term: rho * L * (df/dT) * T_dot, with f the liquid fraction.", "href": "LinearFVPhaseChangeSource.html"}>>>
    variable<<<{"description": "The name of the variable whose linear system this object contributes to"}>>> = T
    L<<<{"description": "Latent heat. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number."}>>> = ${L}
    rho<<<{"description": "The mixture density. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number."}>>> = ${rho}
    T_solidus<<<{"description": "The solidus temperature. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number."}>>> = ${T_solidus}
    T_liquidus<<<{"description": "The liquidus temperature. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number."}>>> = ${T_liquidus}
    smoothing<<<{"description": "Shape of the liquid fraction over the mushy interval. 'smooth' (default) uses a smoothstep cubic function and 'sharp' uses a linear liquid fraction."}>>> = smooth
  []
[]
(modules/navier_stokes/test/tests/finite_volume/ins/solidification/1d-stefan_linearfv.i)

Input Parameters

  • LLatent heat. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:MooseFunctorName

    Unit:(no unit assumed)

    Controllable:No

    Description:Latent heat. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • T_liquidusThe liquidus temperature. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:MooseFunctorName

    Unit:(no unit assumed)

    Controllable:No

    Description:The liquidus temperature. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • T_solidusThe solidus temperature. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:MooseFunctorName

    Unit:(no unit assumed)

    Controllable:No

    Description:The solidus temperature. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • rhoThe mixture density. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:MooseFunctorName

    Unit:(no unit assumed)

    Controllable:No

    Description:The mixture density. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • variableThe name of the variable whose linear system this object contributes to

    C++ Type:LinearVariableName

    Unit:(no unit assumed)

    Controllable:No

    Description:The name of the variable whose linear system this object contributes to

Required Parameters

  • 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

  • smoothingsmoothShape of the liquid fraction over the mushy interval. 'smooth' (default) uses a smoothstep cubic function and 'sharp' uses a linear liquid fraction.

    Default:smooth

    C++ Type:MooseEnum

    Options:smooth, sharp

    Controllable:No

    Description:Shape of the liquid fraction over the mushy interval. 'smooth' (default) uses a smoothstep cubic function and 'sharp' uses a linear liquid fraction.

Optional Parameters

  • absolute_value_vector_tagsThe tags for the vectors this residual object should fill with the absolute value of the residual contribution

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

    Controllable:No

    Description:The tags for the vectors this residual object should fill with the absolute value of the residual contribution

  • extra_matrix_tagsThe extra tags for the matrices this Kernel should fill

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

    Controllable:No

    Description:The extra tags for the matrices this Kernel should fill

  • extra_vector_tagsThe extra tags for the vectors this Kernel should fill

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

    Controllable:No

    Description:The extra tags for the vectors this Kernel should fill

  • matrix_onlyFalseWhether this object is only doing assembly to matrices (no vectors)

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Whether this object is only doing assembly to matrices (no vectors)

  • matrix_tagssystemThe tag for the matrices this Kernel should fill

    Default:system

    C++ Type:MultiMooseEnum

    Options:nontime, system

    Controllable:No

    Description:The tag for the matrices this Kernel should fill

  • vector_tagsrhsThe tag for the vectors this Kernel should fill

    Default:rhs

    C++ Type:MultiMooseEnum

    Options:rhs, time

    Controllable:No

    Description:The tag for the vectors this Kernel should fill

Contribution To Tagged Field Data 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

  • ghost_layers1The number of layers of elements to ghost.

    Default:1

    C++ Type:unsigned short

    Controllable:No

    Description:The number of layers of elements to ghost.

  • use_point_neighborsFalseWhether to use point neighbors, which introduces additional ghosting to that used for simple face neighbors.

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Whether to use point neighbors, which introduces additional ghosting to that used for simple face neighbors.

Parallel Ghosting Parameters

Input Files

References

  1. S.-L. Wang, R. F. Sekerka, A. A. Wheeler, B. T. Murray, S. R. Coriell, R. J. Braun, and G. B. McFadden. Thermodynamically-consistent phase-field models for solidification. Physica D: Nonlinear Phenomena, 69(1–2):189–200, 1993. doi:10.1016/0167-2789(93)90189-8.[Export]