Rémi Delaporte-Mathurin

Results 249 comments of Rémi Delaporte-Mathurin

I took it from @jorgensd comment on Discourse: https://fenicsproject.discourse.group/t/how-to-evaluate-function-at-a-given-point-in-dolfinx/2526/2?u=remdelaportemathurin

Oh well I guess we can just use the `scifem` eval function no?

Here's an example that I can think of. Say you want to make a parametric study and decouple the plotting and simulation. ```python import festim as F model = F.Simulation()...

When exporting two different functions, this works correctly: ```python import dolfinx from mpi4py import MPI import basix mesh = dolfinx.mesh.create_unit_square(MPI.COMM_WORLD, 10, 10) V = dolfinx.fem.functionspace(mesh, ("DG", 1)) u = dolfinx.fem.Function(V)...

@bleyerj the following worked, however I have to rename the functions in order to open it in Paraview: ```python u_sub_0 = u.sub(0).collapse() u_sub_0.name = "u_sub_0" u_sub_1 = u.sub(1).collapse() u_sub_1.name =...

@bleyerj the only issue with this is that you cannot write time dependent solution. Consider: ```python u.sub(0).interpolate(lambda x: x[0] ** 2 + x[1] ** 2) u.sub(1).interpolate(lambda x: (1 - x[0])...

> It is always beneficial to use the maps from the collapsed space to parent and its inverse. Thanks for the tip! Is there a particular reason why giving `u.sub(0)`...

It would also help to show a few commands on how to format a script with the black command ``` black my_script.py ``` or ``` black . ```

This is the difference between the `latest` and `stable` versions of the documentation. `stable` is the latest released festim version (here 1.3.1) `latest` is the latest pushed version (on the...