ENGYS / HELYX-OS

The market leading open-source GUI for OpenFOAM®
Other
110 stars 38 forks source link

Write permissions giving --> FOAM FATAL ERROR: #18

Open lhehjvgtycsd opened 6 years ago

lhehjvgtycsd commented 6 years ago

Hi,

After a lot of effort I now seem to have OpenFoam and Helyx installed on my system. For completeness in explaining my issue, I used the the method detailed in"Installation of the Latest 64 Bit Linux Binaries" at http://engys.github.io/HELYX-OS/installation/#v1606. However after following these instruction only Helyx was installed and not OpenFoam.

It appears that Helyx installed OpenFoam itself when I tried to mesh a test geometry - something like 'pulling OpenFoam' appeared in the Helyx output window and now it seems that OpenFoam is installed - see following output.

Ok, now to my issue. When I mesh my test geometry I get a problem with write permissions as shown in the following output. How do I solve this?


// * // Create time

Creating block mesh from "/home/x/Engys/HELYX-OS/v2.4.0/newCase/system/blockMeshDict" Creating curved edges Creating topology blocks Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty

Check topology

Basic statistics
    Number of internal faces : 0
    Number of boundary faces : 6
    Number of defined boundary faces : 6
    Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets Creating merge list .

Creating polyMesh from blockMesh Creating patches Creating cells Creating points with scale 1 Block 0 cell size : i : 0.4 .. 0.4 j : 0.4 .. 0.4 k : 0.4 .. 0.4

Writing polyMesh

--> FOAM FATAL ERROR: The parent directory does not allow write permission to the process, or one of the directories in "/home/x/Engys/HELYX-OS/v2.4.0/newCase/constant/polyMesh" did not allow search (execute) permission.

From function bool Foam::mkDir(const Foam::fileName&, mode_t)
in file POSIX.C at line 490.

FOAM exiting

tee: /home/x/Engys/HELYX-OS/v2.4.0/newCase/log/snappyHexMesh.log: Permission denied

bonanza123 commented 6 years ago

To me it looks like you are using the docker approach and the docker user does not have write permission in the folder where you want him to store the results.

I suggest for testing purposes to move your complete case folder somewhere out of you home structure and then do chmod -R a+rwX folder/where/case/movedto/ then try again.