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
Contributor

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

@dipinknair dipinknair assigned dipinknair and unassigned dipinknair Oct 20, 2025
@clatapie
Copy link
Contributor

I added docstring to the defined functions as asked by @dipinknair.

@Gbarkoulis, could you please review this to make sure my understanding of those functions was correct?

@dipinknair
Copy link
Contributor Author

LGTM !

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.

5 participants