# dolfinx **Repository Path**: best0912/dolfinx ## Basic Information - **Project Name**: dolfinx - **Description**: No description available - **Primary Language**: Unknown - **License**: LGPL-3.0 - **Default Branch**: adeeb/python-mfree-demo - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-19 - **Last Updated**: 2024-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DOLFINx [![DOLFINx CI](https://github.com/FEniCS/dolfinx/actions/workflows/ccpp.yml/badge.svg)](https://github.com/FEniCS/dolfinx/actions/workflows/ccpp.yml) [![CircleCI](https://circleci.com/gh/FEniCS/dolfinx.svg?style=shield)](https://circleci.com/gh/FEniCS/dolfinx) [![Actions Docker images](https://github.com/FEniCS/dolfinx/actions/workflows/docker.yml/badge.svg)](https://github.com/FEniCS/dolfinx/actions/workflows/docker.yml) [![Actions Spack build](https://github.com/FEniCS/dolfinx/actions/workflows/spack.yml/badge.svg)](https://github.com/FEniCS/dolfinx/actions/workflows/spack.yml) DOLFINx is the computational environment of [FEniCSx](https://fenicsproject.org) and implements the FEniCS Problem Solving Environment in C++ and Python. DOLFINx is a new version of DOLFIN and is being actively developed. ## Documentation Documentation can be viewed at: - https://docs.fenicsproject.org/dolfinx/main/cpp/ - https://docs.fenicsproject.org/dolfinx/main/python/ ## Installation ### From source #### C++ core To build and install the C++ core, in the ``cpp/`` directory, run:: ```shell mkdir build cd build cmake .. make install ``` #### Python interface To install the Python interface, first install the C++ core, and then in the ``python/`` directory run:: ```shell pip install . ``` (you may need to use ``pip3``, depending on your system). For detailed instructions, see https://docs.fenicsproject.org/dolfinx/main/python/installation. ### Spack To build the most recent release using [Spack](https://spack.readthedocs.io/) (assuming a bash-compatible shell): ```shell git clone https://github.com/spack/spack.git . ./spack/share/spack/setup-env.sh spack env create fenicsx-env spack env activate fenicsx-env spack add py-fenics-dolfinx cflags="-O3" fflags="-O3" spack install ``` See the Spack [documentation](https://spack.readthedocs.io/) for comprehensive instructions. ## conda To install the Python interface, with pyvista support for visualisation, using [conda](https://conda.io): ```shell conda install -c conda-forge fenics-dolfinx mpich pyvista ``` conda is distributed with [Anaconda](https://www.anaconda.com/) and [Miniconda](https://docs.conda.io/en/latest/miniconda.html). The conda recipe is hosted on [conda-forge](https://github.com/conda-forge/fenics-dolfinx-feedstock). > **Note** > Windows packages are not available. This is due to some DOLFINx > dependencies not supporting Windows. ## Docker images A Docker image with DOLFINx built nightly: ```shell docker run -ti dolfinx/dolfinx:latest ``` To switch between real and complex builds of DOLFINx/PETSc. ```shell source /usr/local/bin/dolfinx-complex-mode source /usr/local/bin/dolfinx-real-mode ``` A Jupyter Lab environment with DOLFINx built nightly: ```shell docker run --init -ti -p 8888:8888 dolfinx/lab:latest # Access at http://localhost:8888 ``` A development image with all of the dependencies required to build DOLFINx: ```shell docker run -ti dolfinx/dev-env:latest ``` All Docker images support arm64 and amd64 architectures. For more information, see https://hub.docker.com/u/dolfinx ## License DOLFINx is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. DOLFINx is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with DOLFINx. If not, see . ## Contact For questions about using DOLFINx, visit the FEniCS Discourse page: https://fenicsproject.discourse.group/ or use the FEniCS Slack channel: https://fenicsproject.slack.com/ (use https://fenicsproject-slack-invite.herokuapp.com/ to sign up) For bug reports visit: https://github.com/FEniCS/dolfinx