CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

OpenFoam "Permission denied" and "command not found" problems.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2017, 05:38
Default OpenFoam "Permission denied" and "command not found" problems.
  #1
New Member
 
Daniel
Join Date: Nov 2017
Location: Queensland Australia
Posts: 9
Rep Power: 9
iyidaniel@yahoo.co.uk is on a distinguished road
Hello all,

I am having a very big problem with OpenFoam. I’m new to OpenFoam and have installed version 2.0 on linux (Ubuntu 16.04). I have never run a simple simulation since the installation. I’m always having “command not found” and decided to go for the simplest simulation in OpenFoam. Now I’m getting permission denied from a tutorial I copied (incompressible/simpleFoam/airFoil2D) into a working folder. Below is the command error from my computer. Please is there anyone in the house that can help me? Please I need reply urgently. I'm really getting frustrated : (

Code:
daniel@ubuntu:~$ cd naca5012
daniel@ubuntu:~/naca5012$ cp -r $airFoil2D/* ./cp: cannot open '/boot/System.map-4.4.0-59-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-57-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-59-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-36-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-36-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-64-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-57-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-64-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-71-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-71-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-72-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-72-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-92-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-92-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-93-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-93-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-96-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-96-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-97-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-97-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-98-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-98-generic' for reading: Permission denied
cp: cannot open '/boot/vmlinuz-4.4.0-62-generic' for reading: Permission denied
cp: cannot open '/boot/System.map-4.4.0-62-generic' for reading: Permission denied
cp: cannot create special file './dev/vga_arbiter': Operation not permitted
cp: cannot create special file './dev/rfkill': Operation not permitted
cp: cannot create special file './dev/mem': Operation not permitted
cp: cannot create special file './dev/null': Operation not permitted
cp: cannot create special file './dev/port': Operation not permitted
cp: cannot create special file './dev/zero': Operation not permitted
cp: cannot create special file './dev/full': Operation not permitted
cp: cannot create special file './dev/random': Operation not permitted
cp: cannot create special file './dev/urandom': Operation not permitted
cp: cannot create special file './dev/kmsg': Operation not permitted
cp: cannot create special file './dev/tty': Operation not permitted
cp: cannot create special file './dev/console': Operation not permitted
cp: cannot create special file './dev/tty0': Operation not permitted
cp: cannot create special file './dev/vcs': Operation not permitted
cp: cannot create special file './dev/vcsa': Operation not permitted
cp: cannot create special file './dev/vcs1': Operation not permitted
cp: cannot create special file './dev/vcsa1': Operation not permitted
cp: cannot create special file './dev/tty1': Operation not permitted
cp: cannot create special file './dev/tty2': Operation not permitted
cp: cannot create special file './dev/tty3': Operation not permitted
cp: cannot create special file './dev/tty4': Operation not permitted
cp: cannot create special file './dev/tty5': Operation not permitted
cp: cannot create special file './dev/tty6': Operation not permitted
cp: cannot create special file './dev/tty7': Operation not permitted
cp: cannot create special file './dev/tty8': Operation not permitted
cp: cannot create special file './dev/tty9': Operation not permitted
cp: cannot create special file './dev/tty10': Operation not permitted
cp: cannot create special file './dev/tty11': Operation not permitted
cp: cannot create special file './dev/tty12': Operation not permitted
cp: cannot create special file './dev/tty13': Operation not permitted
cp: cannot create special file './dev/tty14': Operation not permitted
cp: cannot create special file './dev/tty15': Operation not permitted
cp: cannot create special file './dev/tty16': Operation not permitted
cp: cannot create special file './dev/tty17': Operation not permitted
cp: cannot create special file './dev/tty18': Operation not permitted
cp: cannot create special file './dev/tty19': Operation not permitted
cp: cannot create special file './dev/tty20': Operation not permitted
cp: cannot create special file './dev/tty21': Operation not permitted
cp: cannot create special file './dev/tty22': Operation not permitted
cp: cannot create special file './dev/tty23': Operation not permitted
cp: cannot create special file './dev/tty24': Operation not permitted
cp: cannot create special file './dev/tty25': Operation not permitted
cp: cannot create special file './dev/tty26': Operation not permitted
cp: cannot create special file './dev/tty27': Operation not permitted
cp: cannot create special file './dev/tty28': Operation not permitted
cp: cannot create special file './dev/tty29': Operation not permitted
cp: cannot create special file './dev/tty30': Operation not permitted
cp: cannot create special file './dev/tty31': Operation not permitted
cp: cannot create special file './dev/tty32': Operation not permitted
cp: cannot create special file './dev/tty33': Operation not permitted
cp: cannot create special file './dev/tty34': Operation not permitted
cp: cannot create special file './dev/tty35': Operation not permitted
cp: cannot create special file './dev/tty36': Operation not permitted
cp: cannot create special file './dev/tty37': Operation not permitted
cp: cannot create special file './dev/tty38': Operation not permitted
cp: cannot create special file './dev/tty39': Operation not permitted
cp: cannot create special file './dev/tty40': Operation not permitted
cp: cannot create special file './dev/tty41': Operation not permitted
cp: cannot create special file './dev/tty42': Operation not permitted
cp: cannot create special file './dev/tty43': Operation not permitted
cp: cannot create special file './dev/tty44': Operation not permitted
cp: cannot create special file './dev/tty45': Operation not permitted
cp: cannot create special file './dev/tty46': Operation not permitted
cp: cannot create special file './dev/tty47': Operation not permitted
cp: cannot create special file './dev/tty48': Operation not permitted
cp: cannot create special file './dev/tty49': Operation not permitted
cp: cannot create special file './dev/tty50': Operation not permitted
cp: cannot create special file './dev/tty51': Operation not permitted
cp: cannot create special file './dev/tty52': Operation not permitted
cp: cannot create special file './dev/tty53': Operation not permitted
cp: cannot create special file './dev/tty54': Operation not permitted
cp: cannot create special file './dev/tty55': Operation not permitted
cp: cannot create special file './dev/tty56': Operation not permitted
cp: cannot create special file './dev/tty57': Operation not permitted
cp: cannot create special file './dev/tty58': Operation not permitted
cp: cannot create special file './dev/tty59': Operation not permitted
cp: cannot create special file './dev/tty60': Operation not permitted
cp: cannot create special file './dev/tty61': Operation not permitted
cp: cannot create special file './dev/tty62': Operation not permitted
cp: cannot create special file './dev/tty63': Operation not permitted
cp: cannot create special file './dev/snapshot': Operation not permitted
cp: cannot create special file './dev/ecryptfs': Operation not permitted
cp: cannot create special file './dev/fuse': Operation not permitted
cp: cannot create special file './dev/ptmx': Operation not permitted
cp: cannot create special file './dev/ttyS0': Operation not permitted
cp: cannot create special file './dev/ttyS1': Operation not permitted
cp: cannot create special file './dev/ttyS2': Operation not permitted
cp: cannot create special file './dev/ttyS3': Operation not permitted
cp: cannot create special file './dev/ttyS4': Operation not permitted
cp: cannot create special file './dev/ttyS5': Operation not permitted
cp: cannot create special file './dev/ttyS6': Operation not permitted
cp: cannot create special file './dev/ttyS7': Operation not permitted
cp: cannot create special file './dev/ttyS8': Operation not permitted
cp: cannot create special file './dev/ttyS9': Operation not permitted
cp: cannot create special file './dev/ttyS10': Operation not permitted
cp: cannot create special file './dev/ttyS11': Operation not permitted
cp: cannot create special file './dev/ttyS12': Operation not permitted
cp: cannot create special file './dev/ttyS13': Operation not permitted
cp: cannot create special file './dev/ttyS14': Operation not permitted
cp: cannot create special file './dev/ttyS15': Operation not permitted
cp: cannot create special file './dev/ttyS16': Operation not permitted
cp: cannot create special file './dev/ttyS17': Operation not permitted
cp: cannot create special file './dev/ttyS18': Operation not permitted
cp: cannot create special file './dev/ttyS19': Operation not permitted
cp: cannot create special file './dev/ttyS20': Operation not permitted
cp: cannot create special file './dev/ttyS21': Operation not permitted
cp: cannot create special file './dev/ttyS22': Operation not permitted
cp: cannot create special file './dev/ttyS23': Operation not permitted
cp: cannot create special file './dev/ttyS24': Operation not permitted
cp: cannot create special file './dev/ttyS25': Operation not permitted
cp: cannot create special file './dev/ttyS26': Operation not permitted
cp: cannot create special file './dev/ttyS27': Operation not permitted
cp: cannot create special file './dev/ttyS28': Operation not permitted
cp: cannot create special file './dev/ttyS29': Operation not permitted
cp: cannot create special file './dev/ttyS30': Operation not permitted
cp: cannot create special file './dev/ttyS31': Operation not permitted
cp: cannot create special file './dev/ttyprintk': Operation not permitted
cp: cannot create special file './dev/hpet': Operation not permitted
cp: cannot create special file './dev/hwrng': Operation not permitted
cp: cannot create special file './dev/agpgart': Operation not permitted
cp: cannot create special file './dev/lightnvm/control': Operation not permitted
cp: cannot create special file './dev/loop-control': Operation not permitted
cp: cannot create special file './dev/loop0': Operation not permitted
cp: cannot create special file './dev/loop1': Operation not permitted
cp: cannot create special file './dev/loop2': Operation not permitted
cp: cannot create special file './dev/loop3': Operation not permitted
cp: cannot create special file './dev/loop4': Operation not permitted
cp: cannot create special file './dev/loop5': Operation not permitted
cp: cannot create special file './dev/loop6': Operation not permitted
cp: cannot create special file './dev/loop7': Operation not permitted
cp: cannot create special file './dev/net/tun': Operation not permitted
cp: cannot create special file './dev/ppp': Operation not permitted
cp: cannot create special file './dev/bus/usb/001/001': Operation not permitted
cp: cannot create special file './dev/bus/usb/002/001': Operation not permitted
cp: cannot create special file './dev/bus/usb/002/002': Operation not permitted
cp: cannot create special file './dev/bus/usb/002/003': Operation not permitted
cp: cannot create special file './dev/input/mice': Operation not permitted
cp: cannot create special file './dev/input/event0': Operation not permitted
cp: cannot create special file './dev/input/event1': Operation not permitted
cp: cannot create special file './dev/input/mouse0': Operation not permitted
cp: cannot create special file './dev/input/event2': Operation not permitted
cp: cannot create special file './dev/input/mouse1': Operation not permitted
cp: cannot create special file './dev/input/event3': Operation not permitted
cp: cannot create special file './dev/input/mouse2': Operation not permitted
cp: cannot create special file './dev/input/event4': Operation not permitted
cp: cannot create special file './dev/psaux': Operation not permitted
cp: cannot create special file './dev/uinput': Operation not permitted
cp: cannot create special file './dev/rtc0': Operation not permitted
cp: cannot create special file './dev/mapper/control': Operation not permitted
cp: cannot create special file './dev/mcelog': Operation not permitted
cp: cannot create special file './dev/cpu/microcode': Operation not permitted
cp: cannot create special file './dev/cpu_dma_latency': Operation not permitted
cp: cannot create special file './dev/network_latency': Operation not permitted
cp: cannot create special file './dev/network_throughput': Operation not permitted
cp: cannot create special file './dev/memory_bandwidth': Operation not permitted
cp: cannot create special file './dev/pts/ptmx': Operation not permitted
cp: cannot create special file './dev/pts/0': Operation not permitted
cp: cannot create special file './dev/pts/1': Operation not permitted
cp: cannot create special file './dev/pts/2': Operation not permitted
cp: cannot create special file './dev/pts/3': Operation not permitted
cp: cannot create special file './dev/pts/4': Operation not permitted
cp: cannot create special file './dev/pts/5': Operation not permitted
cp: cannot create special file './dev/pts/7': Operation not permitted
cp: cannot create special file './dev/pts/8': Operation not permitted
cp: cannot create special file './dev/pts/9': Operation not permitted
cp: cannot create special file './dev/pts/10': Operation not permitted
cp: cannot create special file './dev/pts/13': Operation not permitted
cp: cannot create special file './dev/pts/14': Operation not permitted
cp: cannot create special file './dev/pts/15': Operation not permitted
cp: cannot create special file './dev/pts/16': Operation not permitted
cp: cannot create special file './dev/pts/17': Operation not permitted
cp: cannot create special file './dev/pts/18': Operation not permitted
cp: cannot create special file './dev/pts/19': Operation not permitted
cp: cannot create special file './dev/hidraw0': Operation not permitted
cp: cannot create special file './dev/dri/controlD64': Operation not permitted
cp: cannot create special file './dev/dri/renderD128': Operation not permitted
cp: cannot create special file './dev/dri/card0': Operation not permitted
cp: cannot create special file './dev/fb0': Operation not permitted
cp: cannot create special file './dev/sda': Operation not permitted
cp: cannot create special file './dev/sg0': Operation not permitted
cp: cannot create special file './dev/bsg/2:0:0:0': Operation not permitted
cp: cannot create special file './dev/bsg/4:0:0:0': Operation not permitted
cp: cannot create special file './dev/sda1': Operation not permitted
cp: cannot create special file './dev/sda2': Operation not permitted
cp: cannot create special file './dev/sda5': Operation not permitted
cp: cannot create special file './dev/sr0': Operation not permitted
cp: cannot create special file './dev/sg1': Operation not permitted
cp: cannot create special file './dev/autofs': Operation not permitted
cp: cannot open '/dev/shm/pulse-shm-2055067246' for reading: Permission denied
cp: cannot open '/dev/shm/pulse-shm-3061161110' for reading: Permission denied
cp: cannot open '/dev/shm/pulse-shm-1238780652' for reading: Permission denied
cp: cannot create special file './dev/cuse': Operation not permitted
cp: cannot create special file './dev/btrfs-control': Operation not permitted
cp: cannot create special file './dev/userio': Operation not permitted
cp: cannot create special file './dev/vfio/vfio': Operation not permitted
cp: cannot create special file './dev/vhci': Operation not permitted
cp: cannot create special file './dev/uhid': Operation not permitted
cp: cannot create special file './dev/vhost-net': Operation not permitted
cp: cannot create special file './dev/snd/timer': Operation not permitted
cp: cannot create special file './dev/snd/seq': Operation not permitted
cp: cannot create special file './dev/snd/controlC0': Operation not permitted
cp: cannot create special file './dev/snd/pcmC0D0p': Operation not permitted
cp: cannot create special file './dev/snd/pcmC0D0c': Operation not permitted
cp: cannot create special file './dev/snd/pcmC0D1p': Operation not permitted
cp: cannot create special file './dev/snd/midiC0D0': Operation not permitted
cp: cannot create special file './dev/vcs2': Operation not permitted
cp: cannot create special file './dev/vcsa2': Operation not permitted
cp: cannot create special file './dev/vcs3': Operation not permitted
cp: cannot create special file './dev/vcsa3': Operation not permitted
cp: cannot create special file './dev/vcs4': Operation not permitted
cp: cannot create special file './dev/vcsa4': Operation not permitted
cp: cannot create special file './dev/vcs5': Operation not permitted
cp: cannot create special file './dev/vcsa5': Operation not permitted
cp: cannot create special file './dev/vcs6': Operation not permitted
cp: cannot create special file './dev/vcsa6': Operation not permitted
cp: cannot create special file './dev/vmci': Operation not permitted
cp: cannot create special file './dev/midi': Operation not permitted
cp: cannot create special file './dev/dmmidi': Operation not permitted
cp: cannot create special file './dev/vsock': Operation not permitted
cp: cannot create special file './dev/vcs7': Operation not permitted
cp: cannot create special file './dev/vcsa7': Operation not permitted
cp: cannot open '/etc/apparmor.d/cache/lightdm-guest-session' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.bin.ubuntu-core-launcher' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.lib.snapd.snap-confine.real' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.bin.evince' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.bin.webbrowser-app' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.lib.snapd.snap-confine.dpkg-remove' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.sbin.cups-browsed' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.sbin.cupsd' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.sbin.ippusbxd' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/usr.sbin.tcpdump' for reading: Permission denied
cp: cannot open '/etc/apparmor.d/cache/sbin.dhclient' for reading: Permission denied
cp: cannot access '/etc/cups/ssl': Permission denied
cp: cannot open '/etc/cups/subscriptions.conf' for reading: Permission denied
cp: cannot open '/etc/cups/subscriptions.conf.O' for reading: Permission denied

Last edited by wyldckat; December 30, 2017 at 12:41. Reason: Added [CODE][/CODE] markers
iyidaniel@yahoo.co.uk is offline   Reply With Quote

Old   December 30, 2017, 12:45
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I have not idea if you managed to solve this, but unfortunately I was only able to come around here today.

The problem is that the command you used was utterly wrong. It should have been something like this:
Code:
cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/airFoil2D ./
What you wrote was this:
Code:
cp -r $airFoil2D/* ./
which was translated to:
Code:
cp -r /* ./
because the environment variable "airFoil2D" does not exist, so "$airFoil2D" was translated to an empty string... which was why it tried to copy everything from "/boot" and "/dev" and so on.

If you still remember what happened back then, which instructions were you following?
__________________
wyldckat is offline   Reply With Quote

Old   January 1, 2018, 11:48
Default Pyrolysis and ablation - Help needed please.
  #3
New Member
 
Daniel
Join Date: Nov 2017
Location: Queensland Australia
Posts: 9
Rep Power: 9
iyidaniel@yahoo.co.uk is on a distinguished road
Thanks so much wyldckat and others for your good feedback. I was able to resolve the problem.

As a new user, I've god a present challenge. I tried running pyrolysis and ablation on OpenFoam using one of the tutorial examples.. The blockMesh runs perfectly but the calculations refused to proceed. I tried all possible diagnostics but the error persists. Please what can I do? Any help from the house will be highly appreciated. Thanks everyone in advance. Below is the error command.


Code:
daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ source /home/daniel/OpenFOAM-in-Box-17.10/OpenFOAM-dev/etc/bashrc
daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ blockMesh
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : dev-e942824
Exec   : blockMesh
Date   : Jan 01 2018
Time   : 17:40:15
Host   : "ubuntu"
PID    : 2906
I/O    : uncollated
Case   : /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Deleting polyMesh directory
    "/home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/constant/polyMesh"
Creating block mesh from
    "/home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches

Creating block mesh topology

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.1 .. 0.1
        j : 0.05 .. 0.05
        k : 0.1 .. 0.1


Writing polyMesh
----------------
Mesh Information
----------------
  boundingBox: (0 0 0) (1 1 2)
  nPoints: 4851
  nCells: 4000
  nFaces: 12800
  nInternalFaces: 11200
----------------
Patches
----------------
  patch 0 (start: 11200 size: 800) name: side
  patch 1 (start: 12000 size: 200) name: outlet
  patch 2 (start: 12200 size: 200) name: ground
  patch 3 (start: 12400 size: 400) name: coupledWallTmp

End

daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ fireFoam
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : dev-e942824
Exec   : fireFoam
Date   : Jan 01 2018
Time   : 17:41:06
Host   : "ubuntu"
PID    : 2927
I/O    : uncollated
Case   : /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Creating combustion model

Selecting combustion model infinitelyFastChemistry<psiThermoCombustion,gasHThermoPhysics>
Selecting thermodynamics package 
{
    type            hePsiThermo;
    mixture         singleStepReactingMixture;
    transport       sutherland;
    thermo          janaf;
    energy          sensibleEnthalpy;
    equationOfState perfectGas;
    specie          specie;
}



--> FOAM FATAL IO ERROR: 
Cannot find patchField entry for coupledWallTmp

file: /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/0/p.boundaryField from line 28 to line 22.

    From function void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam::DimensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]
    in file /mnt/home/SW/CFDSupportFOAM4.0/beta/OpenFOAM-dev/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 191.

FOAM exiting

daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$

Last edited by wyldckat; January 1, 2018 at 14:45. Reason: Added [CODE][/CODE] markers
iyidaniel@yahoo.co.uk is offline   Reply With Quote

Old   January 1, 2018, 14:48
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: The error message is telling you this:
Code:
--> FOAM FATAL IO ERROR: 
Cannot find patchField entry for coupledWallTmp

file: [...]/flameSpreadWaterSuppressionPanel/0/p.boundaryField from line 28 to line 22.
Which means that the name "coupledWallTmp" is missing from the file "0/p".
wyldckat is offline   Reply With Quote

Old   January 1, 2018, 17:41
Default Hi
  #5
New Member
 
Daniel
Join Date: Nov 2017
Location: Queensland Australia
Posts: 9
Rep Power: 9
iyidaniel@yahoo.co.uk is on a distinguished road
Thanks so much. I just did exactly what you said and I got this error message.

daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ source /home/daniel/OpenFOAM-in-Box-17.10/OpenFOAM-dev/etc/bashrc
daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : dev-e942824
Exec : blockMesh
Date : Jan 01 2018
Time : 23:37:32
Host : "ubuntu"
PID : 2403
I/O : uncollated
Case : /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Deleting polyMesh directory
"/home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/constant/polyMesh"
Creating block mesh from
"/home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches

Creating block mesh topology

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.1 .. 0.1
j : 0.05 .. 0.05
k : 0.1 .. 0.1


Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (0 0 0) (1 1 2)
nPoints: 4851
nCells: 4000
nFaces: 12800
nInternalFaces: 11200
----------------
Patches
----------------
patch 0 (start: 11200 size: 800) name: side
patch 1 (start: 12000 size: 200) name: outlet
patch 2 (start: 12200 size: 200) name: ground
patch 3 (start: 12400 size: 400) name: coupledWallTmp

End

daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ fireFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : dev-e942824
Exec : fireFoam
Date : Jan 01 2018
Time : 23:37:44
Host : "ubuntu"
PID : 2404
I/O : uncollated
Case : /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Creating combustion model

Selecting combustion model infinitelyFastChemistry<psiThermoCombustion,gasHTh ermoPhysics>
Selecting thermodynamics package
{
type hePsiThermo;
mixture singleStepReactingMixture;
transport sutherland;
thermo janaf;
energy sensibleEnthalpy;
equationOfState perfectGas;
specie specie;
}

--> FOAM Warning :
From function entry::getKeyword(keyType&, Istream&)
in file db/dictionary/entry/entryIO.C at line 144
Reading /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/0/p
found on line 24 the punctuation token '{'
expected either } or EOF


--> FOAM FATAL IO ERROR:
keyword boundaryField is undefined in dictionary "/home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/0/p"

file: /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/0/p from line 20 to line 22.

From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const
in file db/dictionary/dictionary.C at line 701.

FOAM exiting

daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$
iyidaniel@yahoo.co.uk is offline   Reply With Quote

Old   January 1, 2018, 17:51
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Not enough information to help you. For example, without seeing the contents of the file "p", how can we deduce what exactly is wrong, with just the error message? The best I can indicate is that the error message is telling you that there is a left or right bracket --> { } <-- that is placed in the wrong place...

Please follow the instructions given here: How to give enough info to get help
__________________
wyldckat is offline   Reply With Quote

Old   January 1, 2018, 19:14
Default
  #7
New Member
 
Daniel
Join Date: Nov 2017
Location: Queensland Australia
Posts: 9
Rep Power: 9
iyidaniel@yahoo.co.uk is on a distinguished road
Thanks so much wyldckat. Please here is the information from 'P' file:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

FoamFile
{
    version         2.0;
    format          ascii;
    class           volScalarField;
    object          p;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 101325;

{
        name    coupledWall;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name   coupledWallTmp;
        }
    }

    {
        name    coupledWall;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
            faceSet   coupledWall;
        }
    }






boundaryField
{
    outlet
    {
        type            calculated;
        value           $internalField;
    }

    ground
    {
        type            calculated;
        value           $internalField;
    }

    side
    {
        type            calculated;
        value           $internalField;
    }

    inlet
    {
        type            calculated;
        value           $internalField;
    }
    region0_to_pyrolysisRegion_coupledWall
    {
        type            calculated;
        value           $internalField;
    }
}


// ************************************************************************* //

Last edited by wyldckat; January 1, 2018 at 19:34. Reason: Added [CODE][/CODE] markers
iyidaniel@yahoo.co.uk is offline   Reply With Quote

Old   January 1, 2018, 19:37
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I've edited your post to use "[CODE]" markers. You should now be able to see that there is a large block of text that is placed in a very wrong place. Namely these lines:

Code:
{
        name    coupledWall;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name   coupledWallTmp;
        }
    }

    {
        name    coupledWall;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
            faceSet   coupledWall;
        }
    }
are meant to be inside the block "boundaryField", not outside.
wyldckat is offline   Reply With Quote

Old   January 1, 2018, 20:47
Default
  #9
New Member
 
Daniel
Join Date: Nov 2017
Location: Queensland Australia
Posts: 9
Rep Power: 9
iyidaniel@yahoo.co.uk is on a distinguished road
Thank you my friend. I used this 'P' file here.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

FoamFile
{
    version         2.0;
    format          ascii;
    class           volScalarField;
    object          p;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 101325;

boundaryField

{
  {
        name    coupledWall;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name   coupledWallTmp;
        }
    }

    {
        name    coupledWall;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
            faceSet   coupledWall;
        }
   }

    outlet
    {
        type            calculated;
        value           $internalField;
    }

    ground
    {
        type            calculated;
        value           $internalField;
    }

    side
    {
        type            calculated;
        value           $internalField;
    }

    inlet
    {
        type            calculated;
        value           $internalField;
    }
    region0_to_pyrolysisRegion_coupledWall
    {
        type            calculated;
        value           $internalField;
    }
}


// ************************************************************************* //
And I got this error message:

Code:
daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ source /home/daniel/OpenFOAM-in-Box-17.10/OpenFOAM-dev/etc/bashrc
daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ blockMesh
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : dev-e942824
Exec   : blockMesh
Date   : Jan 02 2018
Time   : 02:44:29
Host   : "ubuntu"
PID    : 2931
I/O    : uncollated
Case   : /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Deleting polyMesh directory
    "/home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/constant/polyMesh"
Creating block mesh from
    "/home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches

Creating block mesh topology

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.1 .. 0.1
        j : 0.05 .. 0.05
        k : 0.1 .. 0.1


Writing polyMesh
----------------
Mesh Information
----------------
  boundingBox: (0 0 0) (1 1 2)
  nPoints: 4851
  nCells: 4000
  nFaces: 12800
  nInternalFaces: 11200
----------------
Patches
----------------
  patch 0 (start: 11200 size: 800) name: side
  patch 1 (start: 12000 size: 200) name: outlet
  patch 2 (start: 12200 size: 200) name: ground
  patch 3 (start: 12400 size: 400) name: coupledWallTmp

End

daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$ fireFoam
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : dev-e942824
Exec   : fireFoam
Date   : Jan 02 2018
Time   : 02:44:36
Host   : "ubuntu"
PID    : 2932
I/O    : uncollated
Case   : /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Creating combustion model

Selecting combustion model infinitelyFastChemistry<psiThermoCombustion,gasHThermoPhysics>
Selecting thermodynamics package 
{
    type            hePsiThermo;
    mixture         singleStepReactingMixture;
    transport       sutherland;
    thermo          janaf;
    energy          sensibleEnthalpy;
    equationOfState perfectGas;
    specie          specie;
}

--> FOAM Warning : 
    From function entry::getKeyword(keyType&, Istream&)
    in file db/dictionary/entry/entryIO.C at line 144
    Reading /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/0/p
    found on line 27 the punctuation token '{'
    expected either } or EOF


--> FOAM FATAL IO ERROR: 
Cannot find patchField entry for side

file: /home/daniel/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel/0/p.boundaryField

    From function void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam::DimensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]
    in file /mnt/home/SW/CFDSupportFOAM4.0/beta/OpenFOAM-dev/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 191.

FOAM exiting

daniel@ubuntu:~/OpenFOAM-in-Box-17.10/Rough_work/flameSpreadWaterSuppressionPanel$

Last edited by wyldckat; January 1, 2018 at 22:06. Reason: merged posts a few minutes apart and added CODE markers...
iyidaniel@yahoo.co.uk is offline   Reply With Quote

Old   January 1, 2018, 22:09
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: OK, I didn't notice this myself before, but remember the blocks that were outside of the "boundaryField" block? Well, they are not meant to be placed there.

What I mean is that this:
Code:
  {
        name    coupledWall;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name   coupledWallTmp;
        }
    }

    {
        name    coupledWall;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
            faceSet   coupledWall;
        }
   }
is not meant to be in the file "0/p". That is why the solver is complaining.
wyldckat is offline   Reply With Quote

Old   January 1, 2018, 23:34
Default Thanks wyldckat
  #11
New Member
 
Daniel
Join Date: Nov 2017
Location: Queensland Australia
Posts: 9
Rep Power: 9
iyidaniel@yahoo.co.uk is on a distinguished road
Please will it be proper to place it in the control dictionary?
iyidaniel@yahoo.co.uk is offline   Reply With Quote

Old   January 2, 2018, 07:47
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
That block is usually meant to be placed inside the "topoSetDict" file.
I have no idea which tutorial you are trying to follow or what you are trying to do.
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:05.