Jørgen Schartum Dokken

Results 276 comments of Jørgen Schartum Dokken

I find this a bit problematic (external user here). I use jupyter-book to make interactive tutorials for software I'm developing. Moving to two separate environments, one for development of code,...

> Hi @jorgensd, thanks for chiming in! > > The idea behind pinning Jupyter-book is not for maintenance; the core components need to support wide version ranges for exactly the...

The problem is likely in `ufl`: `form.py::_analyze_domains()`, as it doesn't extract domains from constants, arguments, coefficients. (https://github.com/FEniCS/ufl/blob/main/ufl/form.py#L604-L616)

Or, a problem of the re-numbering algorithm: https://github.com/FEniCS/ufl/blob/main/ufl/form.py#L658-L692 as it does not set numbering for geometric quantities used in https://github.com/FEniCS/ufl/blob/main/ufl/algorithms/signature.py#L73-L74

It should in theory be easier to implement this now that we have https://github.com/FEniCS/dolfinx/blob/90dc151f46eba4bc5373a4e91e302ff6e237e1dd/cpp/dolfinx/geometry/utils.h#L131-L148 `determine_point_ownership`. The strategy would be: 1. Send in points (no duplicates over processes) 2. Determine owner...

I've made a simple way of getting all the info you need for a point source: ```python # Author: Jørgen S. Dokken # # Create a point source import dolfinx...

A full reimplementation for Python with comparison to legacy dolfin is posted at: https://fenicsproject.discourse.group/t/point-sources-redux/13496/6?u=dokken

@BillMaZengou I'm quite happy with the suggested change. I tested it locally: ```python # ```{admonition} Download sources # :class: download # # * {download}`Python script ` # * {download}`Jupyter notebook...

Usually meshes are created with the `dolfinx.mesh.create_mesh` function, as for instance shown in: https://jsdokken.com/FEniCS23-tutorial/src/mesh_generation.html#mesh-generation This is usually easier to work with from Python, as it works on numpy arrays and...