CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   codeDict Error Parabolic Power Law Inlet Velocity Profile (https://www.cfd-online.com/Forums/openfoam-solving/182146-codedict-error-parabolic-power-law-inlet-velocity-profile.html)

Sindibad January 1, 2017 19:53

codeDict Error Parabolic Power Law Inlet Velocity Profile
 
Hello everyone,

I have recently been attempting to create a case using HELYX-OS 2.4.0 and OpenFOAM 4.1. In the case, I am modelling flow around a scaled down building (CAARC) with LES. However, I was interested in implementing a parabolic velocity profile using the power law.

In order to do this, I must replace part of the code contained in the U file that is within the 0 folder which is within the case file. After adding some code into the controlDict file to measure pressure at certain locations as well as other data like drag and lift coefficients, the case was running fine using pimpleFoam. However, after replacing the bit of the code I obtain the following error:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  4.1                                  |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 4.1-1e03d68d4f4e
Exec  : pimpleFoam
Date  : Jan 01 2017
Time  : 16:20:17
Host  : "Sindibad"
PID    : 12510
Case  : /home/Sindibad/CAARC_LES_3D_4_SERIAL_3_UNTOUCH
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p

Reading field U



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/Sindibad/CAARC_LES_3D_4_SERIAL_3_UNTOUCH/system/codeDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 86.

FOAM exiting


The U file within the 0 folder contains the following code:

Code:


/*--------------------------------*- C++ -*----------------------------------*\
|      o          |                                                          |
|    o    o      | HELYX-OS                                                  |
|  o  O  o      | Version: v2.4.0                                          |
|    o    o      | Web:    http://www.engys.com                            |
|      o          |                                                          |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version 2.0;
    format ascii;
    class volVectorField;
    location "0";
    object U;
}
dimensions [ 0 1 -1 0 0 0 0 ];
internalField uniform (0.0 0.0 0.0);
boundaryField
{
    Inlet
    {
      type fixedValue;
      value uniform (4 0 0);
     
    }

    Outlet
    {
        type zeroGradient;
        value uniform ( 0.0 0.0 0.0 );
    }

    Right
    {
        type symmetryPlane;
    }

    Left
    {
        type symmetryPlane;
    }

    Bottom
    {
        type fixedValue;
        value uniform ( 0 0 0);
    }

    Top
    {
        type symmetryPlane;
    }

    CAARC
    {
        type fixedValue;
        value uniform ( 0 0 0);
    }
 

}



I have not been able to find any errors which are the same elsewhere. Can anyone help me understand why this error is coming up? I would be greatly appreciative if anyone could help me in understanding how to fix this error.

I have attached a link with all the files inside if they are required to be seen.

The case file is named CAARC_LEs_3Dcfdonline (the system file contains the modified controlDict file)
The folder in the google drive also contains the modified controlDict by itself, as well as the U file which I have been inserting in the 0 folder of the case file.

Again, I would appreciate any input on how to fix this error.

Many Thanks!

https://drive.google.com/open?id=0B7...3M0VzZNM1A0cE0


All times are GMT -4. The time now is 17:42.