From: Zhuoran Wang Date: Wed, 27 May 2020 22:11:59 +0000 (-0600) Subject: add name X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F42%2Fhead;p=release-papers.git add name --- diff --git a/9.2/paper.tex b/9.2/paper.tex index f93a9ff..b1e39f8 100644 --- a/9.2/paper.tex +++ b/9.2/paper.tex @@ -62,6 +62,7 @@ % Jean-Paul Pelteret, Bruno Turcksin, % David Wells + Zhuoran Wang, }, pdftitle={The deal.II Library, Version 9.2, 2020}, } @@ -156,6 +157,11 @@ Max-Planck-Str. 1, 21502 Geesthacht, Germany. {\texttt{peter.muench@hzg.de}}} +\author[14]{Zhuoran Wang} +\affil[14]{Department of Mathematics, Colorado State University, Fort Collins, + CO 80523-1874, USA. +{\texttt{zhrwang@colostate.edu}}} + % % \author[4]{Jean-Paul~Pelteret} % @@ -770,7 +776,7 @@ to the matrix-vector product to increase data locality. import PyDealII.Release as dealii triangulation = dealii.Triangulation('2D') -triangulation.generate_hyper_shell(center = dealii.Point([0, 0]), +triangulation.generate_hyper_shell(center = dealii.Point([0, 0]), inner_radius = 0.5, outer_radius = 1., n_cells = 0, colorize = True) @@ -778,12 +784,12 @@ triangulation.refine_global(2) for cell in triangulation.active_cells(): cell.material_id = 1 if cell.center().x > 0 else 2 - + for face in cell.faces(): if face.at_boundary() and\ face.boundary_id == 1: cell.refine_flag ='isotropic' - + triangulation.execute_coarsening_and_refinement() \end{python} @@ -794,15 +800,15 @@ triangulation.execute_coarsening_and_refinement() \end{figure} -The initial support for Python has come in \texttt{deal.II 9.0}. The present release significantly extends the Python interface. Specficically, a large number of methods from the C++ classes such as \texttt{Triangulation, CellAccessor, TriaAccessor, Mapping, Manifold, GridTools} can now be invoked from within the Python. The accent was made on methods and functions that are widely used at a mesh preparation stage when a mesh is created and parameters related to the boundary, manifold and material identifiers are assigned. +The initial support for Python has come in \texttt{deal.II 9.0}. The present release significantly extends the Python interface. Specficically, a large number of methods from the C++ classes such as \texttt{Triangulation, CellAccessor, TriaAccessor, Mapping, Manifold, GridTools} can now be invoked from within the Python. The accent was made on methods and functions that are widely used at a mesh preparation stage when a mesh is created and parameters related to the boundary, manifold and material identifiers are assigned. A triangulation object can be read in or created using a number of simplistic geometries offered by the \texttt{GridGenerator}'s functions. Further information such as boundary, material and manifold identifiers can be assigned to cells and respective faces or edges (see Listing \ref{python_wrapper}). The introspective nature of the Python language makes it easy to infer the list of supported methods from the Python objects, for example by typing \texttt{dir(PyDealII.Release.Triangulation)}. -All triangulations created within the Python are serial. Once the mesh is designed, triangulation can be serialized along with the auxiliary information about possible refinement, boundaries, materials and manifolds. This object can be easily deserialized within a C++ program for subsequent production runs. Although saved triangulations are serial, it is possible to use them for construction of \texttt{parallel::shared, parallel::disrtibuted, and parallel::fullydistributed} (see also Section \ref{subsec:pft}) types of triangulations respecting the refinement and all the auxiliary information. +All triangulations created within the Python are serial. Once the mesh is designed, triangulation can be serialized along with the auxiliary information about possible refinement, boundaries, materials and manifolds. This object can be easily deserialized within a C++ program for subsequent production runs. Although saved triangulations are serial, it is possible to use them for construction of \texttt{parallel::shared, parallel::disrtibuted, and parallel::fullydistributed} (see also Section \ref{subsec:pft}) types of triangulations respecting the refinement and all the auxiliary information. To facilitate the illustration of the new Python bindings, tutorial programs \href{https://github.com/dealii/dealii/blob/dealii-9.2/examples/step-49/step-49.ipynb}{step-49} and \href{https://github.com/dealii/dealii/blob/dealii-9.2/examples/step-53/step-53.ipynb}{step-53} were replicated in a form of the Jupyter notebooks. -Note that the current Python interface does not yet provide access to the actual \texttt{deal.II}'s finite element machinery, that is classes such as \texttt{DoFHandler, FE\_*, FEValues}, etc. It is envisaged that a progress towards this will be made for the next release. +Note that the current Python interface does not yet provide access to the actual \texttt{deal.II}'s finite element machinery, that is classes such as \texttt{DoFHandler, FE\_*, FEValues}, etc. It is envisaged that a progress towards this will be made for the next release. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{Incompatible changes}