discretize.operators.DiffOperators#

- class discretize.operators.DiffOperators[source]#
Class used for creating differential and averaging operators.
DiffOperators
is a class for managing the construction of differential and averaging operators at the highest level. TheDiffOperator
class is inherited by everydiscretize
mesh class. In practice, differential and averaging operators are not constructed by creating instances ofDiffOperators
. Instead, the operators are constructed (and sometimes stored) when called as a property of the mesh.Attributes
Averaging operator from x-edges to cell centers (scalar quantities).
Averaging operator from y-edges to cell centers (scalar quantities).
Averaging operator from z-edges to cell centers (scalar quantities).
Averaging operator from x-faces to cell centers (scalar quantities).
Averaging operator from y-faces to cell centers (scalar quantities).
Averaging operator from z-faces to cell centers (scalar quantities).
Represents the operation of integrating a vector function on the boundary
Represents the operation of integrating a vector function dotted with the boundary normal
cellGrad has been deprecated.
cellGradBC has been deprecated.
cellGradx has been deprecated.
cellGrady has been deprecated.
cellGradz has been deprecated.
Cell gradient operator (cell centers to faces)
Boundary conditions matrix for the cell gradient operator (Deprecated)
X-derivative operator (cell centers to x-faces)
Y-derivative operator (cell centers to y-faces)
Z-derivative operator (cell centers to z-faces)
faceDivx has been deprecated.
faceDivy has been deprecated.
faceDivz has been deprecated.
X-derivative operator (x-faces to cell-centres)
Y-derivative operator (y-faces to cell-centres)
Z-derivative operator (z-faces to cell-centres)
Differencing operator along x-direction (cell centers to x-faces)
Differencing operator along y-direction (cell centers to y-faces)
Differencing operator along z-direction (cell centers to z-faces)
average_cell_to_edge
average_cell_to_face
average_cell_vector_to_face
average_edge_to_cell
average_edge_to_cell_vector
average_edge_to_face_vector
average_face_to_cell
average_face_to_cell_vector
average_node_to_cell
average_node_to_edge
average_node_to_face
boundary_face_scalar_integral
edge_curl
face_divergence
nodal_gradient
nodal_laplacian
project_edge_to_boundary_edge
project_face_to_boundary_face
project_node_to_boundary_node
stencil_cell_gradient
Methods
cell_gradient_weak_form_robin
([alpha, beta, ...])Robin conditions for weak form of the cell gradient operator (cell centers to faces)
edge_divergence_weak_form_robin
([alpha, ...])Robin conditions for weak form of the edge divergence operator (edges to nodes)
getBCProjWF
(*args, **kwargs)getBCProjWF has been deprecated.
getBCProjWF_simple
(*args, **kwargs)getBCProjWF_simple has been deprecated.
get_BC_projections
(BC[, discretization])The weak form boundary condition projection matrices.
get_BC_projections_simple
([discretization])The weak form boundary condition projection matrices when mixed boundary condition is used
setCellGradBC
(*args, **kwargs)setCellGradBC has been deprecated.
Set zero Dirichlet/Neumann boundary conditions for derivative operators acting on cell-centered quantities.