Applies to |
Returns the custom integral quantity.
Result.GetCustomIntegral ( function As UserFunction, Flags As QfCustomIntegralFlags, [p As Contour] ) As Quantity
GetCustomIntegral task is calculation of the physical quantity value by integration over the line, surface, or volume defined by the given contour. The integrand expression is defined as the custom user-defined function by the UserFunction object.
The domain of integration is defined by the Contour parameter and the Flags parameter. The exact domain depends on whether the contour is closed or open, as shown in the table below.
Flags | Open coutour | Closed contour |
qfOverContour | Integration over the line definied by the Contour | |
qfOverCrossSect | not applicabe | Integartion over the cross-section: a flat surface bounded by the closed contour. |
qfOverSurface | Integration over the side surface | |
qfOverVolume | not applicable | The integration is performed over the volume formed by the movement of the cross-section in the direction of third coordinate |
If the integration is performed on the side surface, the shape of the surface depends on the model symmetry class:
In case of the plane-parallel model the integration takes place over the side surface of the cylinder, which has the specified contour as its base, cylinder height is orthogonal the base and its length is Lz - model size in the Z-axis direction. Cylinder bases are not included into the integration domain.
For axisymmetrical problem the integration is performed over the surface of the body, created by rotation of the contour tangentially around the model axis (coincides with the Z axis).
Return value has the Quantity type, which encapsulates the integral quantity. Actual type of the integral depends on the user implementation of the UserFunction interface.