Error running #codeStream/functions wmake lnInclude fails to open *.H Files
Hello!
This is my first post on the forum and it's a pleasure to meet you all. Currently i'm running OpenFoam 3.0.1 built with gcc 5.3 flex 2.5.35 on an Arch system (Linux 4.2.5-1ARCH x86_64). When i tried to run the $FOAM_RUN/tutorials/basic/potentialFoam/cylinder case i came across two problems. First was i was getting an error when running blockMesh due to the #codeStream code in the blockMeshDict file (could not open file dictionary.H etc... fatal error dictionary.H no such file or directory). I changed that file writing the vertices mannually to get rid of that code portion. But then when running Code:
potentialFoam -withFunctionObjects -writePhi -writep Code:
[tarik@arch cylinder]$ potentialFoam -withFunctionObjects -writePhi -writep |
Greetings Tarik and welcome to the forum!
Something isn't right... either you have two conflicting versions of OpenFOAM installed, where 3.0.0 is possibly not completely installed, or you meant to write that you had installed OpenFOAM 3.0.0 and not 3.0.1. Because according to the output you've provided from the solver, all sings point to OpenFOAM 3.0.0. The problem is that the "lnInclude" folders don't seem to be populated. I don't know how exactly you installed OpenFOAM in your machine, but I would suggest that you switch into installation mode and run the following commands: Code:
cd $WM_PROJECT_DIR Best regards, Bruno |
That worked perfectly. Tested in 3 different cases and everything is working! Thanks!!
Edit: Forgot to mention I also checked my openfoam version. It is indeed ver 3.0.0. But my package manager says 3.0.0-2 which I kind of read wrong. |
buoyantPimpleFoam fails with -withFunctionObjects
I am trying to create a new field "mag(U)" using coded function and compute_ptot using swak4foam. here is extract from controlDict addded to the "hotRoom" turorial for buoyantPimpleFoam,
Quote:
Quote:
Quote:
Please help :(:confused: Thanks and regards. |
Quick answer: I see that you reported this as a bug: https://bugs.openfoam.org/view.php?id=2385 - and it's not a bug.
The original post here refers to potentialFoam, not buoyantPimpleFoam. This means that you don't need to use any additional option like potentialFoam did. |
Quote:
I am writing to ask a question about this tutorial on codeStream. After executing icoFoam, I received an error, the main part of which is Code:
fatal error: fvCFD.H: No such file or directory I would appreciate if you could help solving this problem. Best Regards, Ali Code for codeStream: Code:
velocity-inlet-5 Code:
/*---------------------------------------------------------------------------*\ |
/*---------------------------------------------------------------------------*\
| ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _f3950763fe-20191219 OPENFOAM=1912 Arch : "LSB;label=32;scalar=64" Exec : blockMesh Date : Feb 21 2020 Time : 18:13:17 Host : DESKTOP-G42P1AL PID : 4074 I/O : uncollated Case : /home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Creating block mesh from "system/blockMeshDict" Using #codeStream at line 19 in file "/home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder/system/blockMeshDict" Using #codeStream with "/home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so" Could not load "/home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so" /home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so: cannot open shared object file: No such file or directory Invoking wmake libso /home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder/dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6 wmake libso /home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder/dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6 Ctoo: codeStreamTemplate.C In file included from /home/raviteja/OpenFOAM/ThirdParty-v1912/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/c++config.h:507:0, from /home/raviteja/OpenFOAM/ThirdParty-v1912/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/type_traits:38, from /home/raviteja/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude/dictionary.H:91, from codeStreamTemplate.C:31: /home/raviteja/OpenFOAM/ThirdParty-v1912/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory #include <features.h> ^ compilation terminated. /home/raviteja/OpenFOAM/OpenFOAM-v1912/wmake/rules/General/transform:34: recipe for target '/home/raviteja/OpenFOAM/OpenFOAM-v1912/build/linux64Gcc63DPInt32Opt/run/cylinder/dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6/codeStreamTemplate.o' failed make: *** [/home/raviteja/OpenFOAM/OpenFOAM-v1912/build/linux64Gcc63DPInt32Opt/run/cylinder/dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6/codeStreamTemplate.o] Error 1 --> FOAM FATAL IO ERROR: Failed wmake "dynamicCode/_6edbd5c787a632d4d115e6ab6424ed259ef377d6/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_6edbd5c787a632d4d115e6ab6424ed259ef3 77d6.so" file: /home/raviteja/OpenFOAM/OpenFOAM-v1912/run/cylinder/system/blockMeshDict From function static void (* Foam::functionEntries::codeStream::getFunction(con st Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&) in file db/dictionary/functionEntries/codeStream/codeStream.C at line 202. FOAM exiting Hie Bruno, I have tried the code you posted but i wasn't able to shake off the error. can you please guide me out it. thanks & regards ravi |
Did you find the answer ? Please let me know I am encountering a similar problem
|
Quote:
|
All times are GMT -4. The time now is 11:40. |