From ec320cbdaaebf3ce22f65f81bc95bab06d6197f6 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 25 Mar 2018 20:24:34 -0500 Subject: [PATCH] WIP mini-step towards GeometryCollection --- pytential/qbx/__init__.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/pytential/qbx/__init__.py b/pytential/qbx/__init__.py index d5d52ca6..31538d56 100644 --- a/pytential/qbx/__init__.py +++ b/pytential/qbx/__init__.py @@ -38,12 +38,43 @@ logger = logging.getLogger(__name__) __doc__ = """ +.. autoclass:: GeometryCollection .. autoclass:: QBXLayerPotentialSource .. autoclass:: QBXTargetAssociationFailedException """ +# {{{ GeometryCollection + +class GeometryCollection: + """ + .. attribute:: places + .. attribute:: refined_places + """ + + def __init__(self, places): + """ + :arg places: a mapping of symbolic names to + :class:`pytential.discretization.Discretization` objects or a subclass + of :class:`pytential.discretization.target.TargetBase`. + """ + pass + + def drive_refinement(self, get_refiner): + # This needs to construct all sources' QBX centers and refine other + # sources for them. + pass + + def __getitem__(self, name): + pass + + def _tree_for_source(self, name): + pass + +# }}} + + # {{{ QBX layer potential source class _not_provided: # noqa: N801 -- GitLab