Discretization¶
-
class
grudge.discretization.
DGDiscretizationWithBoundaries
(array_context, mesh, order=None, quad_tag_to_group_factory=None, mpi_communicator=None)[source]¶ -
-
dim
¶
-
ambient_dim
¶
-
mesh
¶
-
empty
(array_context, dtype=None)[source]¶ - Parameters
array_context (meshmode.array_context.ArrayContext) –
-
zeros
(array_context, dtype=None)[source]¶ - Parameters
array_context (meshmode.array_context.ArrayContext) –
-
Discretization with Eager Evaluation¶
-
class
grudge.eager.
EagerDGDiscretization
(array_context, mesh, order=None, quad_tag_to_group_factory=None, mpi_communicator=None)[source]¶ Inherits from
DGDiscretizationWithBoundaries
.-
__init__
(array_context, mesh, order=None, quad_tag_to_group_factory=None, mpi_communicator=None)¶ - Parameters
quad_tag_to_group_factory – A mapping from quadrature tags (typically strings–but may be any hashable/comparable object) to a
ElementGroupFactory
indicating with which quadrature discretization the operations are to be carried out, or None to indicate that operations with this quadrature tag should be carried out with the standard volume discretization.
-
project
(src, tgt, vec)[source]¶ Project from one discretization to another, e.g. from the volume to the boundary, or from the base to the an overintegrated quadrature discretization.
-
d_dx
(xyz_axis, vec)[source]¶ Return the derivative along axis xyz_axis of the volume function represented by vec.
-
weak_grad
(*args)[source]¶ Return the “weak gradient” of the volume function represented by vec.
May be called with
(vecs)
or(dd, vecs)
.
-
weak_d_dx
(*args)[source]¶ Return the derivative along axis xyz_axis of the volume function represented by vec.
May be called with
(xyz_axis, vecs)
or(dd, xyz_axis, vecs)
.
-
weak_div
(*args)[source]¶ Return the “weak divergence” of the vector volume function represented by vecs.
May be called with
(vecs)
or(dd, vecs)
.
-
-
grudge.eager.
interior_trace_pair
(discrwb, vec)[source]¶ Return a
grudge.sym.TracePair
for the interior faces of discrwb.