devito.finite_differences package

Submodules

devito.finite_differences.differentiable module

class devito.finite_differences.differentiable.Differentiable[source]

Bases: sympy.core.expr.Expr

This class represents Devito differentiable objects such as functions, sum of functions, product of function, or any FD approximation. Differentiable objects provide FD shortcuts to easily compute FD approximations.

default_assumptions = {}
indices
laplace

Generates a symbolic expression for the Laplacian, the second derivative wrt. all spatial dimensions.

laplace2(weight=1)[source]

Generates a symbolic expression for the double Laplacian wrt. all spatial dimensions.

space_order
time_order

devito.finite_differences.finite_difference module

devito.finite_differences.finite_difference.first_derivative(expr, *args, **kwargs)[source]
devito.finite_differences.finite_difference.second_derivative(expr, *args, **kwargs)[source]
devito.finite_differences.finite_difference.cross_derivative(expr, *args, **kwargs)[source]
devito.finite_differences.finite_difference.generic_derivative(expr, *args, **kwargs)[source]
devito.finite_differences.finite_difference.second_cross_derivative(expr, *args, **kwargs)[source]
devito.finite_differences.finite_difference.generate_fd_shortcuts(function)[source]

Create all legal finite-difference derivatives for the given Function.

devito.finite_differences.finite_difference.staggered_diff(expr, *args, **kwargs)[source]

Module contents