CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Best GUI for OpenFOAM: Helyx OS or Salome? (https://www.cfd-online.com/Forums/openfoam/139005-best-gui-openfoam-helyx-os-salome.html)

jake.yun October 30, 2022 20:24

vtk 9.1.0 not found
 
Quote:

Originally Posted by phsieh2005 (Post 838482)
When I tried to install baram, I got the following errors:
Collecting tables==3.7.0
Using cached tables-3.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB)
ERROR: Could not find a version that satisfies the requirement vtk==9.1.0 (from versions: 9.2.0rc2, 9.2.2)
ERROR: No matching distribution found for vtk==9.1.0


......


All done
(venv) phsieh@CAE:~/baram$ python3 main.py
Traceback (most recent call last):
File "/home/phsieh/baram/main.py", line 9, in <module>
import qasync
ModuleNotFoundError: No module named 'qasync'
(venv) phsieh@CAE:~/baram$


Dear Pei-Ying,
Your error has following.
Quote:

ERROR: Could not find a version that satisfies the requirement vtk==9.1.0 (from versions: 9.2.0rc2, 9.2.2)
ERROR: No matching distribution found for vtk==9.1.0
And it seems that vtk 9.1.0 for Linux has been removed by PyPI.
Quote:

(venv) jake@localhost:~/worspace/ksoe-working> pip index versions vtk
vtk (9.2.2)
Available versions: 9.2.2, 9.1.0, 9.0.3, 9.0.2
INSTALLED: 9.2.2
LATEST: 9.2.2
Please change the version in "requirements.txt" to "9.2.2" and try "pip ...." command again.
Code:

vtk==9.1.0
to
Code:

vtk==9.2.2

jake.yun October 30, 2022 22:07

Quote:

Originally Posted by phsieh2005 (Post 838472)
Hi, Jake,


Good to see another open source GUI for openFoam.



I just downloaded BARAM. I have a couple of questions:
1 is there any documentation that I can follow?
2. is there an user forum that users can ask questions or discuss specific topics?
3. what are the differences between 6.4.3 and 6.4.5?
4. does the current version support adding solid particles?



Pei-Ying




Hello, Pei-Ying.
Here are the answers.


1 is there any documentation that I can follow? ==> BARAM is quite in its early stage and user guide is not prepared yet.
2. is there an user forum that users can ask questions or discuss specific topics? ==> GitHub discussion is the place where you can ask questions and discuss about BARAM.
3. what are the differences between 6.4.3 and 6.4.5? ==> v6.x.x is a legacy version, and the revised BARAM starts from the version v22.x.x
4. does the current version support adding solid particles? ==> It not supported yet.

jake.yun October 30, 2022 22:10

Quote:

Originally Posted by phsieh2005 (Post 838473)
looks like BARAM is based on OpenFOAM-6 and requires that OpenFOAM-6 already installed, correct?


Pei-Ying


That's BARAM v6 that is legacy now.
New BARAM whose version starts from v22 adopts latest OpenFOAM.

phsieh2005 October 30, 2022 22:14

Quote:

Originally Posted by jake.yun (Post 838485)
Dear Pei-Ying,
Your error has following.
ERROR: No matching distribution found for vtk==9.1.0
And it seems that vtk 9.1.0 for Linux has been removed by PyPI.
Please change the version in "requirements.txt" to "9.2.2" and try "pip ...." command again.
Code:

vtk==9.1.0
to
Code:

vtk==9.2.2


Thanks Jake!


I had to change vtk to 9.2.2 and numpy to 1.21.0.
now, baram is working.


I am wondering if you have a quick tutorial that I can follow or a case that I can open to look around how to setup, run, post-process a case?


Excited to try out your OpenFOAM GUI!


Pei-Ying

jake.yun October 30, 2022 22:32

Dear Pei-Ying,
You can try this sample case.

jake.yun October 30, 2022 22:40

Oh, my mistake!
vtk 9.1.0 was not available because you were using Python 3.10.
If you use Python 3.9, vtk 9.1.0 is available.

phsieh2005 October 31, 2022 20:43

1 Attachment(s)
Quote:

Originally Posted by jake.yun (Post 838489)
Dear Pei-Ying,
You can try this sample case.


Hi, Jake,


The GUI froze when I started a new case. GUI won't let me do anything. Same happened when I opened the mixingPipe case.

Pei-YingAttachment 92178

jake.yun October 31, 2022 22:32

Hi, Pei-Ying.
I cloned the code from GitHub just now and checked again, but I could not reproduce your issue.
Could you give me your console output like following?
Quote:

(venv) jake@localhost:~/worspace/pyang> python main.py
['chtMultiRegionFoam']
(venv) jake@localhost:~/worspace/pyang>

phsieh2005 November 1, 2022 10:14

Quote:

Originally Posted by jake.yun (Post 838556)
Hi, Pei-Ying.
I cloned the code from GitHub just now and checked again, but I could not reproduce your issue.
Could you give me your console output like following?

Hi, Jake,

Thanks for the quick reply!

I will do later today.

I also tried the Windows 10 version. Using the Windows version, I am able to create a new case (still learning how to load a mesh). But, the mixingPipe case did not load. not sure why? is this a big case?

Pei-Ying

phsieh2005 November 1, 2022 19:14

1 Attachment(s)
Quote:

Originally Posted by phsieh2005 (Post 838579)
Hi, Jake,

Thanks for the quick reply!

I will do later today.

I also tried the Windows 10 version. Using the Windows version, I am able to create a new case (still learning how to load a mesh). But, the mixingPipe case did not load. not sure why? is this a big case?

Pei-Ying


Hi, Jake,


Here is the output:


phsieh@CAE:~$ source ./venv/bin/activate
(venv) phsieh@CAE:~$ cd baram
(venv) phsieh@CAE:~/baram$ python main.py
Killed
(venv) phsieh@CAE:~/baram$
------


Basically, the GUI opened, but, it is frozen, won't let me do anything, then, eventually, ask me to quit.


Pei-Ying


here is the screen shot

jake.yun November 1, 2022 20:58

The app seems to have fallen into infinite loop.
I could not think of any possibility for now.
Your system information may be helpful.
Could you show me the output of this command?
Quote:

cat /etc/*-release

By the way, windows version might be more independent from OS, and I would recommend going with windows version for now.
And I will prepare a sample case for it and let you know later today.

phsieh2005 November 1, 2022 22:08

Hi, Jake,


Here is the output:


---
phsieh@CAE:~$ cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=21
DISTRIB_CODENAME=vanessa
DISTRIB_DESCRIPTION="Linux Mint 21 Vanessa"
NAME="Linux Mint"
VERSION="21 (Vanessa)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21"
VERSION_ID="21"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=vanessa
UBUNTU_CODENAME=jammy
cat: /etc/upstream-release: Is a directory
phsieh@CAE:~$
---


Yes, the Windows version seems to be working fine.
Questions:
1. does baram has a mesher, such as snappyHexMesh or cfMesh? If not, then, meshing needs to be done before starting the GUI?
2. looks like baram can load OpenFOAM mesh, does it mean reading an OpenFOAM case? it is not clear to me how to load OpenFOAM mesh and/or in what file structure?


Thank you very much for your time helping me with baram!


Pei-Ying

jake.yun November 2, 2022 04:07

1 Attachment(s)
Hello, Pei-Ying.
1. I've uploaded a sample case for Baram Windows V22.0.4.
(The configuration was not managed carefully in the past, and the configuration versions between the source code on GitHub and the windows installer package are different.)
Attachment 92187
2. I'm trying "Linux Mint 21" to figure out the reason for freezing. I will let you know if I get any clue.
3. Answers to your Questions
Quote:

1. does baram has a mesher, such as snappyHexMesh or cfMesh? If not, then, meshing needs to be done before starting the GUI?
2. looks like baram can load OpenFOAM mesh, does it mean reading an OpenFOAM case? it is not clear to me how to load OpenFOAM mesh and/or in what file structure?
1. No. Not yet. Baram can just load OpenFOAM polyMesh or import other meshes from "File >> Load Mesh" menu.
2. Not cases but only mesh. OpenFOAM cases have polyMesh folder in one of following structures. You can select "constant" folder in Load menu.
A. Single Region Case: <caseRoot>/constant/polyMesh
B. Multi-Region Case: <caseRoot>/constant/<region>/polyMesh

Alczem November 2, 2022 07:49

Quote:

Originally Posted by jake.yun (Post 838367)
Hello, Alczem.
Actually, BARAM is already using the latest OpenFOAM.
Have you found any difference?


Hey :)


Indeed I had not noticed it was based on OF v2206, nice ! The reason I am asking is that I would like to use your GUI to prepare and configure my cases locally, and then run the case on a cluster that only has OpenFoam installed, and not Baram.


If I am not mistaken, the solvers used in Baram are not the original ones right? They are modified and thus we cannot run cases prepared with Baram on a "vanilla" OpenFoam installation.


Or maybe we can just modify the controlDict file to use the original solvers... I will try that :D


Quick edit: I tried to change just the name of the solver. When I run the case with openfoam 2206, several boundary conditions are not compatible, so I guess it is a little more complicated than just swapping the names ^^

jake.yun November 2, 2022 20:09

Quote:

Originally Posted by Alczem (Post 838661)
Hey :)


Indeed I had not noticed it was based on OF v2206, nice ! The reason I am asking is that I would like to use your GUI to prepare and configure my cases locally, and then run the case on a cluster that only has OpenFoam installed, and not Baram.


If I am not mistaken, the solvers used in Baram are not the original ones right? They are modified and thus we cannot run cases prepared with Baram on a "vanilla" OpenFoam installation.


Or maybe we can just modify the controlDict file to use the original solvers... I will try that :D


Quick edit: I tried to change just the name of the solver. When I run the case with openfoam 2206, several boundary conditions are not compatible, so I guess it is a little more complicated than just swapping the names ^^


Hello, Alczem.
Yes, you're absolutely right.
Baram has some modifications in the solvers.
However, as you might already know, installation of Baram does not require any privilege on the system. You can try Baram on any system where you have an account and can open terminal. ( Of course, the system should support remote X-Windows to display the GUI.)
Please let me know if you have any trouble in trying that.
Thank you.

jake.yun November 3, 2022 00:45

BARAM on Linux Mint 21
 
1 Attachment(s)
Dear Pei-Ying,
I've tried installing BARAM on Linux Mint 21 today.
However, I failed to reproduce the problem.
BARAM runs without any problem on Mint 21.

Attachment 92208



Here is the procedure I did, and I think you've already done all the things.


First, I started from vanilla Mint 21 and updated it.
I needed to install following packages in Software Manager.
  1. Git
  2. Python3-venv
  3. Build-essential
  4. Openmpi-bin
And following changes were made in requirements.txt
  • vtk==9.2.2
  • numpy==1.23.4
That's it.


I'm sorry that I could not find the cause of the problem.

phsieh2005 November 3, 2022 23:46

Quote:

Originally Posted by jake.yun (Post 838707)
Dear Pei-Ying,
I've tried installing BARAM on Linux Mint 21 today.
However, I failed to reproduce the problem.
BARAM runs without any problem on Mint 21.

Attachment 92208



Here is the procedure I did, and I think you've already done all the things.


First, I started from vanilla Mint 21 and updated it.
I needed to install following packages in Software Manager.
  1. Git
  2. Python3-venv
  3. Build-essential
  4. Openmpi-bin
And following changes were made in requirements.txt
  • vtk==9.2.2
  • numpy==1.23.4
That's it.


I'm sorry that I could not find the cause of the problem.


Hi, Jake,


Thanks! After installing Python3-venv and change numpy==1.23.4, baram main.py is working.


I also able to load mesh from polyMesh now. I will start playing with baram more and will let you know my experience abut baram.


Pei-Ying

fluidist.adi15 November 13, 2022 11:52

Quote:

Originally Posted by jake.yun (Post 837320)
It's an old thread.
But if there is anyone who still has interest, I've released an OpenFOAM GUI recently.
It's released under GPL and completely free without any restriction.

In addition, Windows installer is provided for convenience.
Please check it here.

Any feedback is welcomed.
Thank you.

Hi Jake!
Does BARAM support Lagrangian solvers?
I use the HELYX OS for multiphase simulations, but it does not support Lagrangian solvers.
I'm into droplet tracking analyses related to turbine film cooling technology.

jake.yun November 13, 2022 20:14

Quote:

Originally Posted by fluidist.adi15 (Post 839276)
Hi Jake!
Does BARAM support Lagrangian solvers?
I use the HELYX OS for multiphase simulations, but it does not support Lagrangian solvers.
I'm into droplet tracking analyses related to turbine film cooling technology.

Hi, Aditya.
Support for Lagrangian solvers is under development.
Which solver do you want to use?
If you can give me your needs in detail or the case configuration you want to use, I will try to meet the needs in the future release(around at the end of next month).
Thank you.

fluidist.adi15 November 13, 2022 21:06

Quote:

Originally Posted by jake.yun (Post 839288)
Hi, Aditya.
Support for Lagrangian solvers is under development.
Which solver do you want to use?
If you can give me your needs in detail or the case configuration you want to use, I will try to meet the needs in the future release(around at the end of next month).
Thank you.

Thanks for the prompt response!
Well until OF v5, I was using reactingParcelFoam and reactingParcelFilmFoam but in the latest versions, for example, v10, we have particleFoam solver with multiple user-defined options like surfaceFilm modeling.
Please try to include this solver in the next release.
For case configuration, you can try to run the standard Lagrangian OF tutorials.
If they can run well in BARAM, then I think almost any case can be simulated for tracking particle flows in it. Thank you once again for your time!


All times are GMT -4. The time now is 20:29.