|
[Sponsors] |
February 19, 2022, 07:34 |
FOAM Fatal Error wmake failed
|
#1 |
New Member
Max Vorstadt
Join Date: May 2016
Posts: 28
Rep Power: 10 |
Hi, I was trying to run a case with buoyantBoussinesqSimpleFoam and it kept giving me the following error:
Code:
Reading thermophysical properties Reading field T Using dynamicCode for patch slipWall on field T at line 44 in "/home/username/Downloads/case_name/0/T.boundaryField.slipWall" Could not load "/home/username/Downloads/case_name/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so" /home/username/Downloads/case_name/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so: cannot open shared object file: No such file or directory Creating new library in "dynamicCode/customSlipWall/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so" Invoking wmake libso /home/username/Downloads/case_name/dynamicCode/customSlipWall --> FOAM FATAL ERROR: (openfoam-2112) exec(wmake, ...) failed From int Foam::system(const Foam::CStringList&, bool) in file POSIX.C at line 1638. FOAM exiting error::stream() : error stream has failed �%�MV(openfoam-2112) From void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const in file db/dynamicLibrary/codedBase/codedBase.C at line 240. FOAM aborting
Thanks in advance! Oh and btw here's the bit of the 0/T file where it crashes: Code:
slipWall { type codedFixedValue; value uniform 0; name customSlipWall; code #{ scalarField& field = *this; scalar Twall = 1; scalar lambda = 0.01; scalar sigma = 1; scalar Pr = 0.71; scalar gamma = 1.4; scalar rlx = 0.95; // DT/dn scalarField gradient = this->snGrad(); field = rlx*(*this) + (1-rlx)*(Twall - lambda/Pr*(2-sigma)/sigma*2*gamma/(gamma+1)*gradient); #}; codeOptions #{ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude #}; codeInclude #{ #include "fvCFD.H" #include <cmath> #include <iostream> #}; } |
|
March 30, 2022, 04:52 |
|
#2 | |
New Member
陈玮
Join Date: Mar 2022
Posts: 10
Rep Power: 4 |
Quote:
|
||
January 21, 2024, 04:08 |
|
#3 |
New Member
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2 |
Hi,
I have found several posts on this forum about the error: 'FOAM FATAL ERROR: exec(wmake, ...) failed' They are always unsolved (apart for the more or less trivial ones, where the user just forgot to install 'make'. The cases where the user did install all prerequisites remain unsolved.) Did anyone ever solve it? Thanks!!! |
|
January 22, 2024, 04:59 |
|
#4 |
New Member
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2 |
The solution, in my case, was to install the openfoamXXXX-dev package from the repo
|
|
Tags |
error, fatal error, make, openfoam, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Salome] Salome import "Cannot find file "points" in directory..." | mismichael | OpenFOAM Meshing & Mesh Conversion | 6 | June 24, 2024 04:17 |
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel | U.Golling | OpenFOAM Running, Solving & CFD | 52 | September 23, 2023 04:35 |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |