Skip to main content

FEniCS-preCICE adapter is a preCICE adapter for the open source computing platform FEniCS.

Project description

FEniCS-preCICE adapter

Build status GNU LGPL license

experimental preCICE-adapter for the open source computing platform FEniCS

Note: This adapter is currently purely expermental and limited in functionality. If you are interested in using it or you want to contribute, feel free to contact us via the preCICE mailing list.

currently only supports 2D simulations in FEniCS

This adapter was developed by Benjamin Rüth during his research stay at Lund University in the group for Numerical Analysis in close collaboration with Peter Meisrimel.

Installing the package

Using pip3 to install from PyPI

It is recommended to install fenicsprecice from PyPI via

$ pip3 install --user fenicsprecice

This should work out of the box, if all dependencies are installed correctly. 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 (fenics-adapter), run pip3 install --user . from your shell.

Test the adapter

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

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

Add from fenicsprecice import Adapter in your FEniCS code. Please refer to the examples in the tutorials repository for usage examples:

The adapter is configured via a json configuration file. For example configuration files and usage refer to the tutorials (fenics-fenics).

Packaging

To create and install the fenicsprecice python package the following instructions were used: https://python-packaging.readthedocs.io/en/latest/index.html.

Citing

preCICE is an academic project, developed at the Technical University of Munich and at the University of Stuttgart. If you use preCICE, please cite us:

H.-J. Bungartz, F. Lindner, B. Gatzhammer, M. Mehl, K. Scheufele, A. Shukaev, and B. Uekermann: preCICE - A Fully Parallel Library for Multi-Physics Surface Coupling. Computers and Fluids, 141, 250–258, 2016.

If you are using FEniCS, please also consider the information on https://fenicsproject.org/citing/.

Disclaimer

This offering is not approved or endorsed by the FEniCS Project, producer and distributor of the FEniCS software via https://fenicsproject.org/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fenicsprecice-1.0.0rc1.tar.gz (15.3 kB view details)

Uploaded Source

File details

Details for the file fenicsprecice-1.0.0rc1.tar.gz.

File metadata

  • Download URL: fenicsprecice-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for fenicsprecice-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 d8bebdcfc2f547da60b1375198297c31d2a755b808b0f94638d4ec414d800a36
MD5 932dc1a47a31b62d2c5d21d3d1284eb1
BLAKE2b-256 fa0a20df6be012014942fc33ba6e406ae2ba4e67738c3f60b63347fc10139ac1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page