jorgensd / dolfinx-tutorial

A reimplementation of the Springer book: https://github.com/hplgit/fenics-tutorial/, covering new topics as well as transitioning from dolfin to dolfinx
https://jorgensd.github.io/dolfinx-tutorial/
114 stars 64 forks source link

Add advdiffreac.ipynb for demo #181

Open RequieMa opened 9 months ago

RequieMa commented 9 months ago

First trial for #94 Used adios4dolfinx for reading NS solutions (Personally, store solutions from each time step in a form of "./Flows/flowfunction{i}". There may be a better way to store all time sequence in one folder)

carlosal1015 commented 7 months ago

~@BillMaZengou I guess the mesh file is missing. I tried with no luck with adios4dolfinx-0.7.3.~

$ docker run -it --rm -p 8888:8888 ghcr.io/cpp-review-dune/introductory-review/jupyter-dolfinx
$ git clone https://github.com/BillMaZengou/dolfinx-tutorial.git
$ cd dolfinx-tutorial
$ git switch Advect_diff_Eq_Demo
$ startJupyter &

image

Could be nice be formatted with nbQA.

Edited 6/2/2024:

Hi @RequieMa, I did some progress from your advance in this branch, mostly from here, I noticed that the mesh was taken from Solving PDEs in Python – The FEniCS Tutorial Volume I and implemented in chapter2/ns_code2.ipynb so I added gmsh.write("mesh_flow.msh") there in order to read sucessfully. The setup is python 3.12.3, dolfinx 0.8.0, petsc 3.21.2 and adios4dolfinx 0.8.1.post0. Could you try in local or in remote here over Arch Linux.

jorgensd commented 7 months ago

First trial for #94 Used adios4dolfinx for reading NS solutions (Personally, store solutions from each time step in a form of "./Flows/flowfunction{i}". There may be a better way to store all time sequence in one folder)

Ive made major updates to adios4dolfinx that would make checkpointing easier for multiple, tome-dependent solutions:)