Skip to content

Experimental preCICE-adapter for the open source computing platform FEniCSx

License

Notifications You must be signed in to change notification settings

precice/fenicsx-adapter

Repository files navigation

FEniCSx-preCICE adapter

GNU LGPL license Build and Test Run preCICE Tutorials

preCICE-adapter for the open source computing platform FEniCSx.

This adapter is based on the FEniCS-preCICE adapter. This adapter works with dolfinx v0.9.0.

Installing the package

🚧 NOT AVAILABLE YET Install using pip 🚧

It is recommended to install fenicsxprecice from PyPI (TODO link to https://pypi.org/project/fenicsxprecice/ as soon as released) via

pip install fenicsxprecice

This should work out of the box, if all dependencies are installed correctly and if your FEniCSx installation version matches the one supported by the adapter. If you face problems during installation or you want to run the tests, see below for a list of dependencies and alternative installation procedures

Clone this repository and use pip3

Required dependencies

Make sure to install the following dependencies:

Build and install the adapter

After cloning this repository and switching to the root directory (fenicsx-adapter), run pip3 install --user . from your shell.

Test the adapter

As a first test, try to import the adapter via python3 -c "import fenicsxprecice".

You can run the other tests via python3 setup.py test.

Single tests can be also be run. For example the test test_vector_write in the file test_write_read.py can be run as follows:

python3 -m unittest tests.test_write_read.TestWriteandReadData.test_vector_write

Use the adapter

Please refer to our website 🚧 Refers to the FEniCS version of the adapter 🚧.

Citing

About

Experimental preCICE-adapter for the open source computing platform FEniCSx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 11