Starting with CfdOF

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

thschrader
Veteran
Posts: 2626
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Starting with CfdOF

Post by thschrader »

Did you set the path to openFOAM correct?

You can check your bluecfd-installation by running a tutorial from blucfd console directly.
Some assistance:
https://forum.freecadweb.org/viewtopic.php?t=52381
bluecfd.JPG
bluecfd.JPG (63.78 KiB) Viewed 526 times
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.27428 (Git)
Build type: Release
Branch: master
Hash: 27460358508a2057e0ec57a418641435f12628dd
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Germany (de_DE)
User avatar
oliveroxtoby
Posts: 645
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Starting with CfdOF

Post by oliveroxtoby »

maxam wrote: Wed Jun 22, 2022 7:05 am Here below the info

Code: Select all

$ echo $HOME
/home/massimiliano
Problem is...that I don't find that directory on my PC.... :?:
This is a mystery to me. As far as I know, it should be displaying "/home/ofuser" (this is set in the file ...\OpenFOAM\v2112\OpenFOAM-MSYS2.bat).
maxam wrote: Wed Jun 22, 2022 11:28 am Seems to be a virtual dir. Is it possible?
Yes, this is a virtual filesystem in the MinGW environment, but it corresponds to what you see in ...\OpenFOAM\v2112\msys64. In there you should see that there is a home/ofuser directory.
maxam wrote: Thu Jun 23, 2022 7:10 am I installed BlueCFD as you suggested.
Sadly I still get errors at dependecy check

Code: Select all

09:04:32  Checking CFD workbench dependencies...
09:04:32  Checking FreeCAD version
09:04:32  Checking for OpenFOAM:
09:04:32  System: Windows
Runtime: BlueCFD2
OpenFOAM directory: C:\Program Files\blueCFD-Core-2020\OpenFOAM-8
09:04:32  Running  echo $WM_PROJECT_VERSION
09:04:32  
09:04:32  Running  wmake -help
09:04:39  /usr/bin/bash: wmake: comando non trovato
This is another one that I can't explain - it's very strange.

In both cases there seem to be problems with the OpenFOAM installation independent of CfdOF, so it may be more productive to engage with those projects to find a resolution.

If you supply your system data as requested in the post linked below, it may give us some clue.
Please provide all the information requested in this post before reporting problems with CfdOF.
maxam
Posts: 13
Joined: Mon Jun 20, 2022 8:13 am

Re: Starting with CfdOF

Post by maxam »

thschrader wrote: Thu Jun 23, 2022 11:52 am Did you set the path to openFOAM correct?

You can check your bluecfd-installation by running a tutorial from blucfd console directly.
Some assistance:
https://forum.freecadweb.org/viewtopic.php?t=52381
I tried to follow your bluecfd-installation but while I try to use the shell I get stuck. Seems there's something wrong with permissions, but I have admin permisions and have installed buecfd as admin.
Don't understand.

Code: Select all

mkdir: cannot change permissions of '/dev/shm': Permission denied
mkdir: cannot change permissions of '/dev/mqueue': Permission denied
'C:\WINDOWS\system32\drivers\etc\hosts' -> '/etc/hosts'
'C:\WINDOWS\system32\drivers\etc\protocol' -> '/etc/protocols'
'C:\WINDOWS\system32\drivers\etc\services' -> '/etc/services'
'C:\WINDOWS\system32\drivers\etc\networks' -> '/etc/networks'

massimiliano@Direzione-tecnica-3 MINGW64 ~
$ cd $FOAM_RUN

massimiliano@Direzione-tecnica-3 MINGW64 ~
$ cd prism/
bash: cd: prism/: No such file or directory
maxam
Posts: 13
Joined: Mon Jun 20, 2022 8:13 am

Re: Starting with CfdOF

Post by maxam »

oliveroxtoby wrote: Thu Jun 23, 2022 7:57 pm ....
If you supply your system data as requested in the post linked below, it may give us some clue.
System:
Edition Windows 10 Pro
Version 21H1
Installation date ‎24/‎03/‎2021
Build OS 19043.1766
Windows Feature Experience Pack 120.2212.4180.0

Freecad:
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Italian/Italy (it_IT)
Installed mods:
* CfdOF 1.17.0

If you need more info please let me know.
Syres
Veteran
Posts: 1633
Joined: Thu Aug 09, 2018 11:14 am

Re: Starting with CfdOF

Post by Syres »

maxam wrote: Mon Jun 27, 2022 11:51 am Seems there's something wrong with permissions, but I have admin permisions and have installed buecfd as admin.
You're having so many problems that I'm thinking there's something significant with your OS or AV settings that we haven't come across before. Just to prove that the blueCFD Terminal is opening with Administrator level privileges could you please ensure the tickbox shown below is ticked on your shortcut and then re-run.
blueCFDTerminalShortcut.jpg
blueCFDTerminalShortcut.jpg (111.34 KiB) Viewed 391 times


If as I suspect that makes no difference then to prove that User Access Control isn't intervening where it isn't wanted, you will have to de-install blueCFD completely and reinstall into a completely new folder that is not part of the standard Windows system. In my case I use a different drive from C: completely but if that's all you've got then create a folder off the root called MyProgs and then install into that so the resulting folder structure is C:\MyProgs\blueCFD-Core-2020
maxam
Posts: 13
Joined: Mon Jun 20, 2022 8:13 am

Re: Starting with CfdOF

Post by maxam »

Syres wrote: Mon Jun 27, 2022 1:13 pm
maxam wrote: Mon Jun 27, 2022 11:51 am Seems there's something wrong with permissions, but I have admin permisions and have installed buecfd as admin.
You're having so many problems that I'm thinking there's something significant with your OS or AV settings that we haven't come across before. Just to prove that the blueCFD Terminal is opening with Administrator level privileges could you please ensure the tickbox shown below is ticked on your shortcut and then re-run.
I tried and I get same results.
Below Shell messages starting as admin:

Code: Select all

massimiliano@Direzione-tecnica-3 MINGW64 ~
#

massimiliano@Direzione-tecnica-3 MINGW64 ~
# cd $FOAM_RUN

massimiliano@Direzione-tecnica-3 MINGW64 ~
# cd prism/
bash: cd: prism/: No such file or directory

massimiliano@Direzione-tecnica-3 MINGW64 ~
#
Tomorrow morning I'll try re-installing into a brand new directory under C:

Just for info, before tring CfdOF I tested both simFlow and SimWorks. None of them give me problems with OpenFOAM permission. They work fine, within the limits imposed by their own commercial policies.
maxam
Posts: 13
Joined: Mon Jun 20, 2022 8:13 am

Re: Starting with CfdOF

Post by maxam »

@Syres

I have done a completly new instalatio of BlueCFD into the folder C:\MyProgrs\blueCFD-Core-2020.
The folder has all permissions.

While testing BlueCFD I get the same error of previous tests.

Code: Select all

mkdir: cannot change permissions of '/dev/shm': Permission denied
mkdir: cannot change permissions of '/dev/mqueue': Permission denied
Copying skeleton files.
These files are for the users to personalise their msys2 experience.

They will never be overwritten nor automatically updated.

'./.bashrc' -> '/home/massimiliano/.bashrc'
'./.bash_logout' -> '/home/massimiliano/.bash_logout'
'./.bash_profile' -> '/home/massimiliano/.bash_profile'
'./.inputrc' -> '/home/massimiliano/.inputrc'
'./.profile' -> '/home/massimiliano/.profile'
'./.vimrc' -> '/home/massimiliano/.vimrc'
'C:\WINDOWS\system32\drivers\etc\hosts' -> '/etc/hosts'
'C:\WINDOWS\system32\drivers\etc\protocol' -> '/etc/protocols'
'C:\WINDOWS\system32\drivers\etc\services' -> '/etc/services'
'C:\WINDOWS\system32\drivers\etc\networks' -> '/etc/networks'

massimiliano@Direzione-tecnica-3 MINGW64 ~
$ cd $FOAM_RUN

massimiliano@Direzione-tecnica-3 MINGW64 ~
$ cd prism/
bash: cd: prism/: No such file or directory

massimiliano@Direzione-tecnica-3 MINGW64 ~
$
thschrader
Veteran
Posts: 2626
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Starting with CfdOF

Post by thschrader »

The prism tutorial/sonicFoam solver is missing in bluecfd 2020. For whatever reason... :?
I tried tutorial/incompressible/simpleFoam/pitzDaily, which works.
pitzdaily.JPG
pitzdaily.JPG (26.43 KiB) Viewed 302 times
EDIT:
sonicFoam.JPG
sonicFoam.JPG (45.72 KiB) Viewed 289 times
maxam
Posts: 13
Joined: Mon Jun 20, 2022 8:13 am

Re: Starting with CfdOF

Post by maxam »

thschrader wrote: Tue Jun 28, 2022 8:56 am The prism tutorial/sonicFoam solver is missing in bluecfd 2020. For whatever reason... :?
I tried tutorial/incompressible/simpleFoam/pitzDaily, which works.
I tried. I get the same error.

Code: Select all

massimiliano@Direzione-tecnica-3 MINGW64 ~
$

massimiliano@Direzione-tecnica-3 MINGW64 ~
$

massimiliano@Direzione-tecnica-3 MINGW64 ~
$ cd $FOAM_RUN

massimiliano@Direzione-tecnica-3 MINGW64 ~
$ cd pitzDaily/
bash: cd: pitzDaily/: No such file or directory

massimiliano@Direzione-tecnica-3 MINGW64 ~
$

I noticed from your tutorial that your shell shows a path while my shell doesn't show any path. Please see the picture below:
openfoam_problem_1.jpg
openfoam_problem_1.jpg (64.97 KiB) Viewed 268 times
Last edited by maxam on Tue Jun 28, 2022 12:35 pm, edited 1 time in total.
thschrader
Veteran
Posts: 2626
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Starting with CfdOF

Post by thschrader »

This is what I see when running bluecfd2020 from console.
Installation of bluecfd2017/2020 was straightforward, no special things done.
Simply run the exe-installer.
You must create a new run-folder under ofuser-of8, then select a tutorial and
copy it into the new run folder. Did you do that?

Example here is stress analysis with platehole tutorial.
bluecfd2020_console.JPG
bluecfd2020_console.JPG (95.8 KiB) Viewed 265 times
Post Reply