mrklein / openfoam-os-x

Patches for OpenFOAM(R) to build it on OS X
93 stars 33 forks source link

testing installation only works halfway #72

Closed Funky-Fresh closed 2 years ago

Funky-Fresh commented 3 years ago

Hello,

I've installed Openfoam-8 on macOS Catalina 10.15.7 using your instructions and when testing the cavity tutorial it seems working. However staying in the cavity directory and executing

` $ cat > system/decomposeParDict FoamFile { version 2.0; format ascii; class dictionary; location "system"; object decomposeParDict; }

numberOfSubdomains 4;

method scotch; ^D $ decomposePar $ mpiexec -np 4 icoFoam -parallel `

it says that file/directory system/decomposeParDict is not found. The same problem occurs when only running the blockMesh command for the cavity tutorial.

Do you know why it does not find this directory?

I also tested it with the pitzdaily tutorial, which works fine.

mrklein commented 3 years ago

Hi,

Could elaborate on "staying in the cavity directory and executing"? Did you execute this command par command, or just copied-and-pasted the whole block to the terminal? Is there system/decomposeParDict file?

Funky-Fresh commented 3 years ago

I executed command of the cavity tutorial first and then, still in the cavity folder $ cd cavity. Then I executed the first command block

$ cat > system/decomposeParDict

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}

numberOfSubdomains 4;

method scotch;
^D

with the result: no system/decomposeParDict and the other commands not found. The same happened when running ´blockMesh´ (no system/decomposeParDict`).

Until now I also looked up the tutorial and tried it with cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity . instead of cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .

This seems to add the system/decomposeParDict after running foamRunTutorials (also blockMeshis working now)

But afterwards, the command cat > system/decomposeParDict.... just result in nothing. It shows no errors, but it also does not seem to calculate anything and I have to always exit with control-c.

mrklein commented 3 years ago

The first command is

cat > system/decomposeParDict

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}

numberOfSubdomains 4;

method scotch;

It creates decomposeParDict and should be finished by EOF (^D or Ctrl-D). Since you press Ctrl-C, file is not created. From your point of view, it does nothing, yet, it is not the case.

And as your first command fails to do what it is supposed to, you end up without decomposeParDict file.

Funky-Fresh commented 3 years ago

ohh okay, the ^D stands for CTRL-D. Thank you, now its working!

May I suggest that you change cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity . to cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity . ?

mrklein commented 3 years ago

Variant of cavity tutorial were moved into separate folder in version 4. So, let's hope people, using earlier versions, will not propose to change wiki again.