|
[Sponsors] |
codeDict Error Parabolic Power Law Inlet Velocity Profile |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Jan 2017
Posts: 4
Rep Power: 9 ![]() |
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 Last edited by Sindibad; January 1, 2017 at 22:50. |
|
![]() |
![]() |
![]() |
Tags |
codedict, parabolic inlet, power law, profile boundary, velocity bc |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inlet boundary condition with existed velocity profile | wanjia | SU2 | 9 | May 10, 2017 05:33 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 01:27 |
simpleFoam: Non-uniform mesh near inlet & outlet causes incorrect velocity profile? | Zaphod'sSecondHead | OpenFOAM Running, Solving & CFD | 0 | January 28, 2015 05:17 |
Inlet Velocity Profile BC - Floating Point exception during solution initialization | Janshi | STAR-CCM+ | 4 | March 14, 2012 10:21 |
[swak4Foam] Scale discrete inlet velocity profile with groovyBC | cboss | OpenFOAM Community Contributions | 1 | June 20, 2010 13:02 |