Need help to install both C++ and python version of GetFem to use HHO

Hello, everyone, i am very beginner in GetFem. I am using Ubuntu in my windows 11 by using WSL( windows linux subsystem). I have installed Conda and Python3 also on that. Can i install GetFem on that to use HHO.

Python3 or C++, which is better to work for HHO ??. I have seen a full documentation in C++ version but a very little documentation in Python interface. Kindly let me know.

I need help to installation process in C++ also in my WSL. Kindly please help me. I need some demo examples also so that i can learn elliptic and heat equation HHO codes in C++ and python3.

Please help me. Thanks in advance!.

hello and welcome

To make things run smoothly we need to agree on a few Linux basics before moving on with talking about HHO.

Please pay attention on the following remarks:

  • WSL is a proper Linux system, the advice and instructions you will get are the same as if you would be on a full linux installation.
  • Use a modern distro, not older than Ubuntu 24.04
  • Do not install software like Conda or “Python”. Python is part of any linux distro, you do not need to install it.
  • Do not use pip for installing python packages.
  • Use sudo apt install packagename to install any software you may need. You can look up package names here https://packages.ubuntu.com/
  • If you do not find some software in apt, and you need to install by other means, ask for advice, and only perform installation procedures that are relatively sandboxed (e.g. in a python virtual environment), isolated from your main system. Your operating system is kept tidy by apt, third party installers can contaminate it and create an unmaintainable mess.

Now for getting started with GetFEM on WSL, if you have not followed the above remarks, remove your previous installation and reinstall ubuntu 24.04 or newer on your WSL from scratch. Perform all updates with

sudo apt update
sudo apt upgrade

and install GetFEM with

sudo apt install python3-getfem

after this start python command line with

python3

and run the python command import getfem as gf, this should give no errors and you are good to go.

Then try to run this HHO demo

1 Like

Thank you so much. I will try in a new computer. Then i hope it will not create problem.

Many many thanks for your replies sir . It works fine !. Can you help me to get more HHO examples or tutorial examples. Specially, I need Poisson Eqn, Heat Equation (time dependent equations) HHO codes in GetFem in python3 interface. I need more demo examples sir.

Also, one more thing. I got the .pos file for solution. Sir, How to convert it into png or jpeg files??.

Thanks in advance !.