# \#python

**URL:** https://precice.discourse.group/tag/python/13.md

[Latest](https://precice.discourse.group/latest.md) · [Categories](https://precice.discourse.group/categories.md) · [Tags](https://precice.discourse.group/tags.md)

---

## [PhD positions in numerical mathematics for two-phase flow in Norway](https://precice.discourse.group/t/phd-positions-in-numerical-mathematics-for-two-phase-flow-in-norway/2628)

<div class="topic-metadata">

**Author:** [@carinabringedal](https://precice.discourse.group/u/carinabringedal)\
**Replies:** 0\
**Last updated:** [September 18, 2025, 4:30pm UTC](https://precice.discourse.group/t/phd-positions-in-numerical-mathematics-for-two-phase-flow-in-norway/2628 "2025-09-18T16:30:21Z")

</div>

At Western Norway University of Applied Sciences we have 1-2 PhD positions open in numerical mathematics for two-phase flow. The positions are part of the project “Physics-Adapted Numerical Methods for Two-Phase Flow” (…

---

## [Numpy error when installing precice python bindings](https://precice.discourse.group/t/numpy-error-when-installing-precice-python-bindings/2555)

<div class="topic-metadata">

**Author:** [@prathamgit](https://precice.discourse.group/u/prathamgit)\
**Replies:** 1\
**Last updated:** [July 12, 2025, 7:08am UTC](https://precice.discourse.group/t/numpy-error-when-installing-precice-python-bindings/2555 "2025-07-12T07:08:37Z")

</div>

I am facing an issue while installing pyprecice using pip. Here are some of the details for context. I have created a fresh environment in conda and am installing all necessary python packages inside it. OS: Linux (dis…

---

## [Problem coupling OpenFOAM and python](https://precice.discourse.group/t/problem-coupling-openfoam-and-python/2299)

<div class="topic-metadata">

**Author:** [@leonardo](https://precice.discourse.group/u/leonardo)\
**Replies:** 31\
**Last updated:** [February 27, 2025, 2:36pm UTC](https://precice.discourse.group/t/problem-coupling-openfoam-and-python/2299 "2025-02-27T14:36:10Z")

</div>

Hi everyone! I’m trying to couple a 3D case using Openfoam with a solid solver that I wrote in python. I also using an HPC to do it. The simulation starts well but at a certant point the simulation explode with this Ope…

---

## [PreCICE spack installation on HPC fails with python3 related error](https://precice.discourse.group/t/precice-spack-installation-on-hpc-fails-with-python3-related-error/2319)

<div class="topic-metadata">

**Author:** [@Umut](https://precice.discourse.group/u/Umut)\
**Replies:** 3\
**Last updated:** [February 26, 2025, 11:53am UTC](https://precice.discourse.group/t/precice-spack-installation-on-hpc-fails-with-python3-related-error/2319 "2025-02-26T11:53:25Z")

</div>

Dear preCICE Community, I am attempting to install preCICE on an HPC system using Spack, following the guidelines provided on the HPC webpage. However, the installation fails with the following error: \>\> 163 CMake…

---

## [Error when installing Python bindings](https://precice.discourse.group/t/error-when-installing-python-bindings/2147)

<div class="topic-metadata">

**Author:** [@Martijn\_drdw](https://precice.discourse.group/u/Martijn_drdw)\
**Replies:** 3\
**Last updated:** [October 29, 2024, 4:06pm UTC](https://precice.discourse.group/t/error-when-installing-python-bindings/2147 "2024-10-29T16:06:42Z")

</div>

Hello, I am trying to build pyprecice, but I get an error that I cannot solve. During a build process that uses CMake, a shell script that uses pip to install pyprecice is executed. The installation with pip gives the fo…

---

## [Python bindings installation for precice 2.5.0](https://precice.discourse.group/t/python-bindings-installation-for-precice-2-5-0/2189)

<div class="topic-metadata">

**Author:** [@pl96andy](https://precice.discourse.group/u/pl96andy)\
**Replies:** 1\
**Last updated:** [October 28, 2024, 11:45am UTC](https://precice.discourse.group/t/python-bindings-installation-for-precice-2-5-0/2189 "2024-10-28T11:45:05Z")

</div>

Hi all i found some adapter supporting precice2 and i am trying to downgrade my installation to precice 2.5.0. I came across problem during installation: $ pip install pyprecice==2.5.0.4 Collecting pyprecice==2.5.0…

---

## [How mesh coupling works for parallel participants](https://precice.discourse.group/t/how-mesh-coupling-works-for-parallel-participants/2059)

<div class="topic-metadata">

**Author:** [@efirvida](https://precice.discourse.group/u/efirvida)\
**Replies:** 4\
**Last updated:** [August 30, 2024, 6:10am UTC](https://precice.discourse.group/t/how-mesh-coupling-works-for-parallel-participants/2059 "2024-08-30T06:10:16Z")

</div>

Hi, I’m developing a FEniCSx adapter that was discussed here, and is currently under review in the Pull Request mentioned in that thread. The version in the pull request gives an error when running in parallel, which I’m…

---

## [Installation of the python bindings for preCICE](https://precice.discourse.group/t/installation-of-the-python-bindings-for-precice/2026)

<div class="topic-metadata">

**Author:** [@leonardo](https://precice.discourse.group/u/leonardo)\
**Replies:** 2\
**Last updated:** [July 19, 2024, 6:14am UTC](https://precice.discourse.group/t/installation-of-the-python-bindings-for-precice/2026 "2024-07-19T06:14:41Z")

</div>

Hi everyone! I’m dealing with the installation of python bindings for preCICE (version 2.5.0). I’ve alredy installed both preCICE and python bindings, but when I try to run a tutorial (in my case the Flow around contro…

---

## [FSI with FenicsX and preCICE 3](https://precice.discourse.group/t/fsi-with-fenicsx-and-precice-3/1966)

<div class="topic-metadata">

**Author:** [@efirvida](https://precice.discourse.group/u/efirvida)\
**Replies:** 2\
**Last updated:** [July 16, 2024, 7:33pm UTC](https://precice.discourse.group/t/fsi-with-fenicsx-and-precice-3/1966 "2024-07-16T19:33:03Z")

</div>

Dear all, I dont know if here is the rigth place to post this, but as I need quick help I think that here is a good better place than in github isses. I need to implement FSi coupling preCICE+OpenFOAM+FenicsX, but as I…

---

## [Using participants without mesh, on multi participant configuration](https://precice.discourse.group/t/using-participants-without-mesh-on-multi-participant-configuration/1899)

<div class="topic-metadata">

**Author:** [@efirvida](https://precice.discourse.group/u/efirvida)\
**Replies:** 2\
**Last updated:** [April 26, 2024, 8:57pm UTC](https://precice.discourse.group/t/using-participants-without-mesh-on-multi-participant-configuration/1899 "2024-04-26T20:57:20Z")

</div>

Hi Im creating a custom “solver” its not really a solver, that I want to use it something like man in the middle between FSI model. The Idea is for example, introduce reactive conditions to the model tha are not computed…

---

## [Libboost\_log\_setup.so.1.74.0: cannot open shared object file: Error when using pyprecice](https://precice.discourse.group/t/libboost-log-setup-so-1-74-0-cannot-open-shared-object-file-error-when-using-pyprecice/1905)

<div class="topic-metadata">

**Author:** [@peeru\_m](https://precice.discourse.group/u/peeru_m)\
**Replies:** 4\
**Last updated:** [April 25, 2024, 2:10pm UTC](https://precice.discourse.group/t/libboost-log-setup-so-1-74-0-cannot-open-shared-object-file-error-when-using-pyprecice/1905 "2024-04-25T14:10:31Z")

</div>

When I try to import pyprecice , I’m getting following error. traceback (most recent call last): File "\<stdin\>", line 1, in \<module\> File "/home/temp\_env/lib/python3.9/site-packages/precice/\_\_init\_\_.py", line 5, in \<…

---

## [Coupling OpenFOAM and python](https://precice.discourse.group/t/coupling-openfoam-and-python/1306)

<div class="topic-metadata">

**Author:** [@nish-ant](https://precice.discourse.group/u/nish-ant)\
**Replies:** 5\
**Last updated:** [March 7, 2024, 5:09pm UTC](https://precice.discourse.group/t/coupling-openfoam-and-python/1306 "2024-03-07T17:09:34Z")

</div>

Hello preCICE-rs! I am trying to run an OpenFOAM simulation using boundary values provided by python. To get an understanding of how to perform this using preCICE adapter, I tried to modify the partitioned-pipe tutorial…

---

## [Mapping Issues: Missing Vertices and Not Invertible Matrix](https://precice.discourse.group/t/mapping-issues-missing-vertices-and-not-invertible-matrix/767)

<div class="topic-metadata">

**Author:** [@JulianSchl](https://precice.discourse.group/u/JulianSchl)\
**Replies:** 7\
**Last updated:** [October 3, 2023, 9:49am UTC](https://precice.discourse.group/t/mapping-issues-missing-vertices-and-not-invertible-matrix/767 "2023-10-03T09:49:22Z")

</div>

Hi there, In this thread I’ve already mentioned my issues with the RBF mapping which seemed to be solved by then. Now new problems occured :tada: conclusion of the case: I’m trying to couple a 3D model of an airfoil …

---

## [precice.Interface not working](https://precice.discourse.group/t/precice-interface-not-working/1515)

<div class="topic-metadata">

**Author:** [@bayswiss](https://precice.discourse.group/u/bayswiss)\
**Replies:** 7\
**Last updated:** [August 18, 2023, 10:42am UTC](https://precice.discourse.group/t/precice-interface-not-working/1515 "2023-08-18T10:42:42Z")

</div>

Hello everyone, I am a new user of preCICE, and I just installed it on top of a FEniCS docker image. I also installed python bindings which are ok since “import precice” works without any errors. Unfortunately, when I …

---

## [FSI Coupling OpenFoam with Membrane solver (mem4py) help needed :)](https://precice.discourse.group/t/fsi-coupling-openfoam-with-membrane-solver-mem4py-help-needed/1399)

<div class="topic-metadata">

**Author:** [@Niki](https://precice.discourse.group/u/Niki)\
**Replies:** 9\
**Last updated:** [June 1, 2023, 1:06pm UTC](https://precice.discourse.group/t/fsi-coupling-openfoam-with-membrane-solver-mem4py-help-needed/1399 "2023-06-01T13:06:51Z")

</div>

Hi All, I am trying to couple mem4py (Dynamic Relaxation Membrane Solver) with OpenFOAM and want to reproduce the Cavity FSI example, so far with no sucess. A good overview of the example is given here: https://kratos…

---

## [Removing functionality in actions with v3, feedback welcome](https://precice.discourse.group/t/removing-functionality-in-actions-with-v3-feedback-welcome/1350)

<div class="topic-metadata">

**Author:** [@uekerman](https://precice.discourse.group/u/uekerman)\
**Replies:** 0\
**Last updated:** [April 5, 2023, 9:17am UTC](https://precice.discourse.group/t/removing-functionality-in-actions-with-v3-feedback-welcome/1350 "2023-04-05T09:17:21Z")

</div>

Hi community :wave: With v3, we are planning to remove large parts of the action functionality of preCICE as these are rarely used and hard to maintain. Envisioned changelog entry: Removed deprecated action timings r…

---

## [Problems with Installing Python Bindings](https://precice.discourse.group/t/problems-with-installing-python-bindings/1227)

<div class="topic-metadata">

**Author:** [@Patrick\_Thomasma](https://precice.discourse.group/u/Patrick_Thomasma)\
**Replies:** 2\
**Last updated:** [November 25, 2022, 5:40pm UTC](https://precice.discourse.group/t/problems-with-installing-python-bindings/1227 "2022-11-25T17:40:04Z")

</div>

Hello I am trying to install the Python Bindings for Precice but when using pip install I get this big error Collecting pyprecice==2.5.0.1rc1 Downloading pyprecice-2.5.0.1rc1.tar.gz (44 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━…

---

## [Trouble installing precice](https://precice.discourse.group/t/trouble-installing-precice/1248)

<div class="topic-metadata">

**Author:** [@aravinth.ravikumar](https://precice.discourse.group/u/aravinth.ravikumar)\
**Replies:** 2\
**Last updated:** [January 6, 2023, 2:19pm UTC](https://precice.discourse.group/t/trouble-installing-precice/1248 "2023-01-06T14:19:41Z")

</div>

Hello, I am trying to install Precice version 2.3.0. I downloaded and built it from source. On my machine, precice does show up in the list of installed packages. But when I try to use it in python using “import precice…

---

## [Installing python-bindings, preCICE is looking at /usr/local](https://precice.discourse.group/t/installing-python-bindings-precice-is-looking-at-usr-local/1173)

<div class="topic-metadata">

**Author:** [@PreGMjr](https://precice.discourse.group/u/PreGMjr)\
**Replies:** 3\
**Last updated:** [October 11, 2022, 7:03am UTC](https://precice.discourse.group/t/installing-python-bindings-precice-is-looking-at-usr-local/1173 "2022-10-11T07:03:27Z")

</div>

Hello, I am just starting with Precice, trying to use its python bindings, especially with the elastic tube tutorial. I installed the dependencies through Homebrew, built and installed from source, I updated the env an…

---

## [Set boundary conditions and get field from a decomposed OpenFOAM case](https://precice.discourse.group/t/set-boundary-conditions-and-get-field-from-a-decomposed-openfoam-case/1068)

<div class="topic-metadata">

**Author:** [@rpasolari](https://precice.discourse.group/u/rpasolari)\
**Replies:** 1\
**Last updated:** [June 13, 2022, 4:01pm UTC](https://precice.discourse.group/t/set-boundary-conditions-and-get-field-from-a-decomposed-openfoam-case/1068 "2022-06-13T16:01:12Z")

</div>

Hello everyone, I am using OpenFoam coupled with a Python code for hybrid Eulerian-Lagrangian methods. I want to make my simulations faster and in order to achieve this I have to accelerate the Eulerian part of the code…

---

## [Transitioning to preCICE for coupling OpenFOAM and a lagrangian python structural code](https://precice.discourse.group/t/transitioning-to-precice-for-coupling-openfoam-and-a-lagrangian-python-structural-code/777)

<div class="topic-metadata">

**Author:** [@gcorsi](https://precice.discourse.group/u/gcorsi)\
**Replies:** 5\
**Last updated:** [November 2, 2021, 8:16am UTC](https://precice.discourse.group/t/transitioning-to-precice-for-coupling-openfoam-and-a-lagrangian-python-structural-code/777 "2021-11-02T08:16:07Z")

</div>

Hello, I’m considering using preCICE for a coupled FSI problem. I have a solid model of few degrees of freedom, which given the forces, yields the shape of the structure after energy minimization. I’ve written a small …

---

## [Using preCICE to couple python and OpenFOAM](https://precice.discourse.group/t/using-precice-to-couple-python-and-openfoam/766)

<div class="topic-metadata">

**Author:** [@ddiamant](https://precice.discourse.group/u/ddiamant)\
**Replies:** 3\
**Last updated:** [October 21, 2021, 9:12am UTC](https://precice.discourse.group/t/using-precice-to-couple-python-and-openfoam/766 "2021-10-21T09:12:49Z")

</div>

Hello, I am working on a CFD case in which an electrical propulsor is located within the boundary layer formed on the aircraft fuselage. I am wondering whether is possible to create a coupled OpenFOAM and Python case w…

---

## [Issue with first time run preCICE with python-binding](https://precice.discourse.group/t/issue-with-first-time-run-precice-with-python-binding/763)

<div class="topic-metadata">

**Author:** [@Michael](https://precice.discourse.group/u/Michael)\
**Replies:** 2\
**Last updated:** [October 19, 2021, 2:31pm UTC](https://precice.discourse.group/t/issue-with-first-time-run-precice-with-python-binding/763 "2021-10-19T14:31:08Z")

</div>

I just installed python-binding and tried to run the first test. python3 solverdummy.py precice-config.xml SolverOne MeshOne The error message is as follows: preCICE: This is preCICE version 2.2.0 preCICE: Revision in…

---

## [Python action troubleshooting](https://precice.discourse.group/t/python-action-troubleshooting/757)

<div class="topic-metadata">

**Author:** [@Mike\_Tree](https://precice.discourse.group/u/Mike_Tree)\
**Replies:** 3\
**Last updated:** [October 11, 2021, 1:00pm UTC](https://precice.discourse.group/t/python-action-troubleshooting/757 "2021-10-11T13:00:57Z")

</div>

I’m attempting to use preCICE to couple a difficult FSI analysis in the carotid artery. The densities of the fluid and solid are close to one another, thus creating the dreaded “added mass” effect that must be overcome. …

---

## [Python bindings: ValueError: numpy.ndarray size changed](https://precice.discourse.group/t/python-bindings-valueerror-numpy-ndarray-size-changed/685)

<div class="topic-metadata">

**Author:** [@arslansadiq](https://precice.discourse.group/u/arslansadiq)\
**Replies:** 4\
**Last updated:** [August 10, 2021, 7:34am UTC](https://precice.discourse.group/t/python-bindings-valueerror-numpy-ndarray-size-changed/685 "2021-08-10T07:34:41Z")

</div>

I am trying to get the python binding for precice running and upon installing I am getting ValueError (described below). I previously had anaconda installed and using its python3.8.10 and libprecice2.2.0 but now I have r…

---

## [Fluid solver mesh - How to link a solid mesh with a fluid mesh](https://precice.discourse.group/t/fluid-solver-mesh-how-to-link-a-solid-mesh-with-a-fluid-mesh/604)

<div class="topic-metadata">

**Author:** [@JulianSchl](https://precice.discourse.group/u/JulianSchl)\
**Replies:** 2\
**Last updated:** [June 7, 2021, 8:49pm UTC](https://precice.discourse.group/t/fluid-solver-mesh-how-to-link-a-solid-mesh-with-a-fluid-mesh/604 "2021-06-07T20:49:32Z")

</div>

Hi, having implemented a structure solver with the python interface of preCICE, I am now planning to couple a OpenFOAM fluid solver with preCICE. In the documentation the implementation doesn’t seem to be very difficu…

---

## [Nearest-neighbor mapping | 3 mesh](https://precice.discourse.group/t/nearest-neighbor-mapping-3-mesh/618)

<div class="topic-metadata">

**Author:** [@JulianSchl](https://precice.discourse.group/u/JulianSchl)\
**Replies:** 8\
**Last updated:** [May 31, 2021, 9:06am UTC](https://precice.discourse.group/t/nearest-neighbor-mapping-3-mesh/618 "2021-05-31T09:06:17Z")

</div>

Hi, I am trying to use two patches as interfaces for my fluid simulation in OpenFOAM. Here you can find my preciceDict with the two patches. Next step would be to adjust the precice-config.xml. My problem is to unders…

---

## [Moving points with OpenFOAM and python](https://precice.discourse.group/t/moving-points-with-openfoam-and-python/617)

<div class="topic-metadata">

**Author:** [@JulianSchl](https://precice.discourse.group/u/JulianSchl)\
**Replies:** 1\
**Last updated:** [May 28, 2021, 2:09pm UTC](https://precice.discourse.group/t/moving-points-with-openfoam-and-python/617 "2021-05-28T14:09:59Z")

</div>

Hi everyone, trying to couple my OpenFOAM mesh to a FSI solver via preCICE, I have first coupled a python dummy solver with OpenFOAM via preCICE. My aim is to give a rotation movement from the FSI solver to OpenFOAM. …

---

## [How is the interpolation matrix defined](https://precice.discourse.group/t/how-is-the-interpolation-matrix-defined/607)

<div class="topic-metadata">

**Author:** [@JulianSchl](https://precice.discourse.group/u/JulianSchl)\
**Replies:** 6\
**Last updated:** [May 28, 2021, 9:30am UTC](https://precice.discourse.group/t/how-is-the-interpolation-matrix-defined/607 "2021-05-28T09:30:35Z")

</div>

Hello everyone, I have difficulties in understanding the interpolation mesh in preCICE. Running the solverdummy, I can send and recieve data from the coupling partners. I have modified the case a little bit. MeshOne …

---

## [Python-Bindings on server](https://precice.discourse.group/t/python-bindings-on-server/612)

<div class="topic-metadata">

**Author:** [@alicezanella](https://precice.discourse.group/u/alicezanella)\
**Replies:** 11\
**Last updated:** [May 28, 2021, 8:23am UTC](https://precice.discourse.group/t/python-bindings-on-server/612 "2021-05-28T08:23:09Z")

</div>

Hello, I’m installing preCICE on a server where I have to install everything with source packages. I succesfully installed preCICE but now it seems that I cannot install the Python-bindings. The error I get after inst…

[Next page](https://precice.discourse.group/tag/python/13.md?match_all_tags=true&page=1&tags%5B%5D=python)
