LevelSetOlssonBubble

Olsson and Kreiss (2005) define a level set function () that differs from the traditional signed distance function. They define a level set function ranging from 0 to 1 with a defined thickness (), which is a commonly referred to as a smeared Heaviside function ():

Typically, the interface of the level set function is defined by the 0.5 contour and the interface or boundary layer is defined between 0 and 1.

For example, the following code creates a "bubble" in the lower left corner in a domain ranging from 0 to 1 in the x- and y-direction, as shown in the figure.

[Functions]
  [./bubble_func]
    type = LevelSetOlssonBubble
    center = '0.25 0.25 0'
    radius = 0.15
  [../]
[]
(modules/level_set/test/tests/functions/olsson_bubble/olsson_bubble.i)

Input Parameters

  • center0.5 0.5 0The center of the bubble.

    Default:0.5 0.5 0

    C++ Type:libMesh::VectorValue<double>

    Controllable:No

    Description:The center of the bubble.

  • epsilon0.01The interface thickness.

    Default:0.01

    C++ Type:double

    Controllable:No

    Description:The interface thickness.

  • execute_onLINEARThe list of flag(s) indicating when this object should be executed, the available options include FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, NONLINEAR, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM.

    Default:LINEAR

    C++ Type:ExecFlagEnum

    Options:FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, NONLINEAR, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM

    Controllable:No

    Description:The list of flag(s) indicating when this object should be executed, the available options include FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, NONLINEAR, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM.

  • radius0.15The radius of the bubble.

    Default:0.15

    C++ Type:double

    Controllable:No

    Description:The radius of the bubble.

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:No

    Description:Set the enabled status of the MooseObject.

Advanced Parameters

Input Files

References

  1. Elin Olsson and Gunilla Kreiss. A conservative level set method for two phase flow. Journal of computational physics, 210(1):225–246, 2005. URL: http://dx.doi.org/10.1016/j.jcp.2005.04.007.[BibTeX]