Skip to main content

Python framework for OpenFOAM

Project description

Fluidsimfoam

PyPI Documentation Status

Python framework for OpenFOAM

OpenFOAM is a very popular open-source C++ CFD framework. Working with OpenFOAM implies writting and modifying a lot of input files describing a simulation. The method described in the official OpenFOAM documentations is to copy an existing simulation directory and to modify the input files by hand. Fluidsimfoam is a Python package designed to improve the life of OpenFOAM users.

Fluidsimfoam allows one to write Fluidsim solvers based for the simulations on OpenFOAM. There are open-source solvers (in particular fluidsimfoam-tgv, fluidsimfoam-cbox and fluidsimfoam-sed) and it is not be difficult to write your own solver based on your OpenFOAM cases.

With a Fluidsimfoam solver, it becomes very easy to

  • launch/restart simulations with Python scripts and terminal commands,
  • load simulations, read the associated parameters/data and produce nice figures/movies.

Fluidsimfoam can be seen as a workflow manager for OpenFOAM or a Python wrapper around OpenFOAM. It uses OpenFOAM on the background and is thus NOT a rewrite of OpenFOAM!

The best way to use Fluidsimfoam is to write or use a solver adapted for your particular use case. However, one can also use Python objects provided by Fluidsimfoam for some common tasks, like parsing/writting input files, modifying field files, writting blockMeshDict files, etc.

Fluidsimfoam is now in quite early development. The goal is to get the equivalent of Snek5000, our Fluidsim framework for Nek5000. Looking at the Snek5000 tutorials should give a good idea of what Fluidsimfoam will soon allow.

For our examples, we currently target OpenFOAM v2206 but it should be possible to write Fluidsimfoam solvers targeting any recent OpenFOAM versions.

See more in Fluidsimfoam documentation.

Install

Currently, it still makes sense to install Fluidsimfoam like we, the fluidsimfoam developers, install it, i.e. in a dedicated controlled virtual environment created by Poetry. After installing Poetry (for example with something like pip install poetry), the following commands should install and activate the virtual environment:

hg clone https://foss.heptapod.net/fluiddyn/fluidsimfoam
cd fluidsimfoam
poetry install
poetry shell

Related projects

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

fluidsimfoam-0.0.3.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluidsimfoam-0.0.3-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file fluidsimfoam-0.0.3.tar.gz.

File metadata

  • Download URL: fluidsimfoam-0.0.3.tar.gz
  • Upload date:
  • Size: 62.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for fluidsimfoam-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4caf53957399a0f3decdb2179ebaa3b8610a9e02e98d1cb002a1679ea9bf48d2
MD5 b6b0a9c112a1d80dd8fa42de87a2f0f9
BLAKE2b-256 5f4c37da2f6d7f0f6120014371e2238fdf9f7e3a52cc2fb93f63615bbcdb6901

See more details on using hashes here.

File details

Details for the file fluidsimfoam-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: fluidsimfoam-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for fluidsimfoam-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7ae55b935ccfc4d7e9850465bf950ab3126ef493efce50a8ab0cee48ff78bfb2
MD5 e05339a42238b34aeca94b66746b287e
BLAKE2b-256 ecbe64da1005ab313e8182dc1421b97ccd9fc60fadff5e3164917918c031d47d

See more details on using hashes here.

Supported by

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