InternalVolume

Computes the volume of an enclosed area by performing an integral over a user-supplied boundary.

Description

InternalVolume computes the volume of an enclosed space. The complete boundary of the enclosed space must be represented by the user specified side set. The volume of the domain is calculated as the integral over the surface of the domain, where the domain surface is specified by the boundary.

If the given side set points outward, InternalVolume will report a negative volume.

As an example, consider (1) where F is a field, is the normal of the surface, V is the volume of the domain, and S is the surface of the domain.

For simplicity in this example, we choose (2)

such that the integral becomes

(3)

The volume of the domain is the integral over the surface of the domain of the x position of the surface times the x-component of the normal of the surface.

Example Input Syntax

  [./internalVolume]
    type = InternalVolume
    boundary = 100
    addition = addition
    execute_on = 'initial timestep_end'
  [../]
(modules/combined/test/tests/internal_volume/hex8.i)

Input Parameters

  • boundaryThe list of boundary IDs from the mesh where this boundary condition applies

    C++ Type:std::vector

    Options:

    Description:The list of boundary IDs from the mesh where this boundary condition applies

Required Parameters

  • addition0An additional volume to be included in the internal volume calculation. A time-dependent function is expected.

    Default:0

    C++ Type:FunctionName

    Options:

    Description:An additional volume to be included in the internal volume calculation. A time-dependent function is expected.

  • component0The component to use in the integration

    Default:0

    C++ Type:unsigned int

    Options:

    Description:The component to use in the integration

  • scale_factor1A scale factor to be applied to the internal volume calculation

    Default:1

    C++ Type:double

    Options:

    Description:A scale factor to be applied to the internal volume calculation

  • execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM.

    Default:TIMESTEP_END

    C++ Type:ExecFlagEnum

    Options:NONE INITIAL LINEAR NONLINEAR TIMESTEP_END TIMESTEP_BEGIN FINAL CUSTOM

    Description:The list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM.

Optional Parameters

  • outputsVector of output names were you would like to restrict the output of variables(s) associated with this object

    C++ Type:std::vector

    Options:

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

  • 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.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Options:

    Description:Set the enabled status of the MooseObject.

  • 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).

  • use_displaced_meshTrueWhether 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:True

    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.

Advanced Parameters

Input Files