NDSolve`FEM`
NDSolve`FEM`

DiscontinuousInterpolatingFunction

DiscontinuousInterpolatingFunction[]

represents an approximate discontinuous function whose values are found by interpolation.

Details and Options

  • DiscontinuousInterpolatingFunction is used to interpolate discontinuous data.
  • DiscontinuousInterpolatingFunction works like Function.
  • DiscontinuousInterpolatingFunction[][x] finds the value of an approximate discontinuous function with a particular argument x.
  • DiscontinuousInterpolatingFunction objects that take up to three real arguments may be constructed.
  • If you supply arguments outside of the domain, a warning is generated, and then an extrapolated value is returned.
  • You can take derivatives of DiscontinuousInterpolatingFunction objects using functions such as D, Derivative or Grad.
  • EvaluateOnElementMesh can return its results in terms of DiscontinuousInterpolatingFunction objects.
  • DiscontinuousInterpolatingFunction can convert InterpolatingFunction objects based on ElementMesh to DiscontinuousInterpolatingFunction objects.
  • DiscontinuousInterpolatingFunction[][prop] gives the property prop of the DiscontinuousInterpolatingFunction object. The following properties may be given:
  • "ElementMesh"returns the spatial mesh
    "InterpolatingFunctions"returns the interpolating functions used for interpolation
    "MarkerPriority"returns the marker priority
    "ValuesOnGrid"gives the function values at each mesh coordinate

Examples

open allclose all

Basic Examples  (1)

Load the package:

Generate a multi-material element mesh with element markers 10 and 20:

Visualize the mesh and the material regions in light green and light red.

Evaluate a discontinuous function on the mesh:

Plot the DiscontinuousInterpolatingFunction:

Compute a derivative of the DiscontinuousInterpolatingFunction:

Plot the derivative of the DiscontinuousInterpolatingFunction:

The value at the interface will depend on the priority of the mesh markers:

Inspect the value of the discontinuous function at , :

At the interface, the value associated with marker 10 will have precedence over the values associated with marker 20. The precedence at the interface can be changed by altering the marker priority.

Create a discontinuous interpolating function with an altered marker precedence:

Inspect the marker priority:

Inspect the value of the discontinuous function at , :

Scope  (4)

"ElementMesh"  (1)

Extract the ElementMesh:

"InterpolatingFunctions"  (1)

Extract the InterpolatingFunction from the subregions:

"MarkerPriority"  (1)

Extract the marker priority that is used to determine the order in which values at the material interface are processed:

"ValuesOnGrid"  (1)

Extract the values on the grid:

Wolfram Research (2024), DiscontinuousInterpolatingFunction, Wolfram Language function, https://reference.wolfram.com/language/FEMDocumentation/ref/DiscontinuousInterpolatingFunction.html.

Text

Wolfram Research (2024), DiscontinuousInterpolatingFunction, Wolfram Language function, https://reference.wolfram.com/language/FEMDocumentation/ref/DiscontinuousInterpolatingFunction.html.

CMS

Wolfram Language. 2024. "DiscontinuousInterpolatingFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/FEMDocumentation/ref/DiscontinuousInterpolatingFunction.html.

APA

Wolfram Language. (2024). DiscontinuousInterpolatingFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/FEMDocumentation/ref/DiscontinuousInterpolatingFunction.html

BibTeX

@misc{reference.wolfram_2024_discontinuousinterpolatingfunction, author="Wolfram Research", title="{DiscontinuousInterpolatingFunction}", year="2024", howpublished="\url{https://reference.wolfram.com/language/FEMDocumentation/ref/DiscontinuousInterpolatingFunction.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_discontinuousinterpolatingfunction, organization={Wolfram Research}, title={DiscontinuousInterpolatingFunction}, year={2024}, url={https://reference.wolfram.com/language/FEMDocumentation/ref/DiscontinuousInterpolatingFunction.html}, note=[Accessed: 21-November-2024 ]}