|
[Sponsors] |
Error when executing simpleFoam - FOAM FATAL ERROR:(openfoam-2206) cannot find file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 15, 2022, 13:18 |
Error when executing simpleFoam - FOAM FATAL ERROR:(openfoam-2206) cannot find file
|
#1 |
New Member
astri anindya
Join Date: Nov 2022
Posts: 3
Rep Power: 4 |
Hi all,
I am running a case of natural ventilation of a simple building (box) with open windows. I created it as an outdoor case inside the wind tunnel, write the case in Butterfly then trying to run it in openFoam. Everything is fine when I execute blockMesh and snappyHexMesh. However, when I execute simpleFoam I've got an error message: --> FOAM FATAL ERROR: (openfoam-2206) cannot find file "/mnt/c/Users/astri/butterfly/boxexplode_45/2/p" From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 540. FOAM exiting I am trying different setting, but It always goes the same way. Would anyone share a thought why this is happen? Any advice would be very much appreciated Best regards, Astri |
|
November 16, 2022, 04:32 |
|
#2 | |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hello Astri,
You get this error because the solver does not find the files containing the boundary conditions for each variable (p, U, ...) as stated in the error message: Code:
cannot find file "/mnt/c/Users/astri/butterfly/boxexplode_45/2/p" I'm quoting the documentation (https://www.openfoam.com/documentati...yhexmesh-usage) Quote:
Let us know if it solves the issue! Regards, Yann Last edited by Yann; November 17, 2022 at 10:52. Reason: fixed link |
||
November 16, 2022, 19:24 |
|
#3 |
New Member
astri anindya
Join Date: Nov 2022
Posts: 3
Rep Power: 4 |
Hi Yann,
Thank you very much for your kind response. I've already done it as per your suggestion (the snappyHexMesh -overwrite), but another error message appears. --> FOAM FATAL IO ERROR: (openfoam-2206) Missing or invalid PatchFunction1 entry: d file: 0/U.boundaryField.inlet at line 81. From static Foam::autoPtr<Foam::PatchFunction1<Type> > Foam::PatchFunction1<Type>::New(const Foam:olyPatch&, const Foam::word&, const Foam::entry*, const Foam::dictionary&, bool, bool) [with Type = double] in file /usr/src/packages/BUILD/src/meshTools/lnInclude/PatchFunction1New.C at line 124. FOAM exiting ------------------------------------------------------ I really want to upload the U file from folder 0 to the attachment, but I always failed. It says invalid file. I don't know If I did it wrong, I am new to this forum. What is written in line 81 of the script U is type atmBoundaryLayerInletVelocity; and this is I copy also the whole script. /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1706+ | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ /* Butterfly 0.0.4 https://github.com/ladybug-tools/butterfly *\ \*---------------------------------------------------------------------------*/ FoamFile { version 4.0; format ascii; class volVectorField; location "0"; object U; } dimensions [0 1 -1 0 0 0 0]; #include "initialConditions"; internalField uniform $flowVelocity; boundaryField { right_side { type slip; } box { type fixedValue; value uniform (0 0 0); } outlet { type inletOutlet; inletValue uniform (0 0 0); value $internalField; } left_side { type slip; } top { type slip; } ground { type fixedValue; value uniform (0 0 0); } inlet { type atmBoundaryLayerInletVelocity; #include "ABLConditions"; } } Do you know what happened, and could you advise me on what should I do? Anyway, I can't open the documentation that you quoted in your reply. Is there any way for me to open it? Thank you very much for your help. Best regards, Astri |
|
November 17, 2022, 06:14 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hello,
It complains about your inlet boundary condition, more specifically about the d parameter. Code:
--> FOAM FATAL IO ERROR: (openfoam-2206) Missing or invalid PatchFunction1 entry: d file: 0/U.boundaryField.inlet at line 81. Code:
inlet { type atmBoundaryLayerInletVelocity; #include "ABLConditions"; } Regards, Yann EDIT: I fixed the dead link in my previous post. Last edited by Yann; November 17, 2022 at 10:53. |
|
November 17, 2022, 20:10 |
|
#5 |
New Member
astri anindya
Join Date: Nov 2022
Posts: 3
Rep Power: 4 |
Hi Yann, thank you so much!
Yes, you're right, there's no parameter d defined in my ABLConditions file. Here's what's written in the file: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1706+ | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ /* Butterfly 0.0.4 https://github.com/ladybug-tools/butterfly *\ \*---------------------------------------------------------------------------*/ Uref 2.97; Zref 10; z0 uniform 1.0; flowDir (0.0 1.0 0.0); zDir (0 0 1); zGround uniform -0.10000000149; value $internalField; ------------------------------------------------------------------- I have no idea how to define the parameter d. I've checked the OpenFOAM user guide, the example of ABLConditions in this link https://www.openfoam.com/documentati...daryLayer.html inlet { // Mandatory and other optional entries ... // Mandatory (inherited) entries (runtime modifiable) flowDir (1 0 0); zDir (0 0 1); Uref 10.0; Zref 0.0; z0 uniform 0.1; d uniform 0.0; ----------------------------------------------------------- Should I just copy the definition for parameter d just like the example? Thank you so very much Yann for your advice. Best regards, astri |
|
November 18, 2022, 04:11 |
|
#6 | |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hi Astri,
You're welcome. About the d parameter, I have no idea since I never used this boundary condition. There is a note about it in the documentation: Quote:
Cheers, Yann |
||
Tags |
error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |