Now I want to set up periodic boundary conditions, for example u(x, y=0, t) = u(x, y=1, t) and \frac{\partial u}{\partial y}(x, y=0, t) = \frac{\partial u}{\partial y}(x, y=1, t). I realized that I need to install dolfinx_mc for the implementation of periodic boundary conditions.
Dear @Mamadou_Diallo ,
First of all, DOLFINx-MPC will not be able to add the constraints on the derivatives.
To do such periodic conditions, I would recommend using my convenience function at:
(See around line 1100 for an example).
I would in addition strongly recommend moving to a newer version of DOLFINx than v0.7.2, as there are very few API changes to get to 0.9.0, but many improvements and bug-fixes.
Deactivate your current environment with conda deactivate.
Then create a new environment with conda create -n dolfinx_v090 python=3.12
then activate this environment with conda activate dolfinx_v090
and install dolfinx conda install -c conda-forge fenics-dolfinx mpich pyvista
as shown at
Thank you @dokken for your help so far. I am able to download the new version of dolfinx usingconda create -n fenicsx-env. Using conda create -n dolfinx_v090 python=3.12 was not successful.
.
The output of this command was conda install -c conda-forge fenics-dolfinx mpich pyvista was :
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
It took more than 3 hours without success. But using the one from the website took only a few minutes.