Skip to content

Conversation

dipinknair
Copy link
Contributor

@dipinknair dipinknair commented Aug 18, 2025

This PR adds an example showcasing the usage of PyMAPDL and PyDPF that was created by @Gbarkoulis.

@dipinknair
Copy link
Contributor Author

@germa89 Hi Pls check the workflow here,

@germa89
Copy link

germa89 commented Sep 16, 2025

Several things:

  • You were missing access to the docker image package.
  • You are having issues to spawn instances using MapdlPool.
    • Incorrect port: Use the environment variable PYMAPDL_PORT to change the default port, i.e. PYMAPDL_PORT: ${{ env.PYMAPDL_PORT }} in your step.
    • You are requesting 2 MAPDL instances, but you are only launching one instance

I would recommend you to use the container context your yaml:

container:
  image: "ghcr.io/ansys/mapdl:ghcr.io/ansys/mapdl:v25.2.4-ubuntu-cicd"
  options: -u=0:0 --oom-kill-disable --memory=6656MB --memory-swap=16896MB --shm-size=1gb --entrypoint /bin/bash
  credentials:
    username: ${{ secrets.username }}
    password: ${{ secrets.token }}

Then you can run MAPDL and DPF from inside this container and spawn as many processes as your hardware supports.

@germa89
Copy link

germa89 commented Sep 19, 2025

@clatapie @dipinknair

To fix this: https://github.com/ansys/pyansys-workflows/actions/runs/17854285321/job/50769652329?pr=89#step:5:27

Use ubuntu-22.04 as runner. Do not use ubuntu-latest.

If that does not fix it, try to do the following:

apt-get update && apt-get -y install gcc mono-mcs g++

I have to update the base ubuntu version in the docker container (currently on 22.04).

@clatapie
Copy link

Thanks for your prompt feedback @germa89! I will modify it

@clatapie
Copy link

clatapie commented Oct 10, 2025

MapdlPool is now running fine. However, the DPF server is not running yet.
I am investing it.

Edit: DPF and MAPDL are now correctly working.

@clatapie clatapie marked this pull request as ready for review October 10, 2025 15:03
@clatapie
Copy link

For some reasons, I cannot add other reviewers at this PR.
Thus, I am pinging @dipinknair, @vnamdeo, @Gbarkoulis and @JimmyHe0527 for visibility.
Feel free to make a review on this example.

@clatapie clatapie changed the title DRAFT: PyMAPDL + Py DPF feat: adding PyMAPDL + PyDPF example Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants