|
[Sponsors] |
error when compiling wmake to include temperature in the icoFoam app |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 22, 2018, 21:19 |
error when compiling wmake to include temperature in the icoFoam app
|
#1 |
New Member
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 8 |
Hello everyone
for some time I have been having difficulties with OpenFoam 5.0. I'm trying to run the example from the openfoamwiki.net/index.php/How_to_add_temperature_to_icoFoam link. The following error message returns me: : ~ / OpenFOAM / claiton-5.0 / run / applications / solvers / my_icoFoam $ wmake Making dependency list for source file my_icoFoam.C g ++ -std = c ++ 11 -m64 -Dlinux64 -DWM_ARCH_OPTION = 64 -DWM_DP -DWM_LABEL_SIZE = 32 -Wall -Wextra -Wold-style-cast -Non-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 NoRepository -ftemplate-depth -100 -I / opt / openfoam5 / src / finiteVolume / lnInclude -I / opt / openfoam5 / src / meshTools / lnInclude -IlnInclude -I. -I / opt / openfoam5 / src / OpenFOAM / lnInclude -I / opt / openfoam5 / src / OSspecific / POSIX / lnInclude -fPIC -c my_icoFoam.C -o Make / linux64GccDPInt32Opt / my_icoFoam.o mkdir: unable to create directory "": File or directory not found make: ** [/ my_icoFoam] Error 1 Anyone have any idea what's happening? Thanks! |
|
July 24, 2018, 08:07 |
|
#2 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
There is probably an error in your Make/files or Make/options file. Can you post them here.
|
|
July 24, 2018, 10:33 |
|
#3 |
Member
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11 |
Perhaps you have not root access...
In this case, you can just rename the variable FOAM_APPBIN by FOAM_USER_APPBIN in Make/files (and similar trick for library : FOAM_LIBBIN by FOAM_USER_LIBBIN). Then it will install the library and binary of your solver in your home (and not in the path of openfoam) |
|
July 24, 2018, 13:10 |
|
#4 | |
New Member
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 8 |
Quote:
Now I have another problem in a new tutorial that I'm trying to reproduce, I think the problem is that there is no longer the "basicMultiComponentSolution.H" file in OpenFoam6 but I do not know which file to use to replace it. I'm trying to run the tutotial How_to_add_transport_of_N_solutes_to_icoFoam in openfoam 6 and I can not solve the following error :~/OpenFOAM/claiton-6/run/transportIcoFoamN# wmake g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam6/src/finiteVolume/lnInclude -I/opt/openfoam6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude -fPIC -c transportIcoFoamN.C -o Make/linux64GccDPInt32Opt/transportIcoFoamN.o transportIcoFoamN.C:33:41: fatal error: basicMultiComponentSolution.H: File or directory not found #include "basicMultiComponentSolution.H" ^ compilation terminated. make: ** [Make/linux64GccDPInt32Opt/transportIcoFoamN.o] Erro 1 Can you think of something? Once again, thank you! |
||
July 24, 2018, 13:12 |
|
#5 |
New Member
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 8 |
||
July 24, 2018, 13:45 |
|
#6 | |
New Member
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 8 |
Quote:
Application transportIcoFoamN Description Transient solver for incompressible, laminar flow of Newtonian fluids. \*---------------------------------------------------------------------------*/ #include "fvCFD.H" #include "basicMultiComponentSolution.H" #include "solute.H" #include "PtrDictionary.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) { #include "setRootCase.H" #include "createTime.H" #include "createMesh.H" #include "createFields.H" #include "initContinuityErrs.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nStarting time loop\n" << endl; while (runTime.loop()) { Info<< "Time = " << runTime.timeName() << nl << endl; #include "readPISOControls.H" #include "CourantNo.H" fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(nu, U) ); solve(UEqn == -fvc::grad(p)); // --- PISO loop for (int corr=0; corr<nCorr; corr++) { volScalarField rAU(1.0/UEqn.A()); U = rAU*UEqn.H(); phi = (fvc::interpolate(U) & mesh.Sf()) + fvc::ddtPhiCorr(rAU, U, phi); adjustPhi(phi, U, p); for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++) { fvScalarMatrix pEqn ( fvm::laplacian(rAU, p) == fvc::div(phi) ); pEqn.setReference(pRefCell, pRefValue); pEqn.solve(); if (nonOrth == nNonOrthCorr) { phi -= pEqn.flux(); } } #include "continuityErrs.H" Application icoFoam Description Transient solver for incompressible, laminar flow of Newtonian fluids. \*---------------------------------------------------------------------------*/ #include "fvCFD.H" #include "pisoControl.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) { #include "setRootCaseLists.H" #include "createTime.H" #include "createMesh.H" pisoControl piso(mesh); #include "createFields.H" #include "initContinuityErrs.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nStarting time loop\n" << endl; while (runTime.loop()) { Info<< "Time = " << runTime.timeName() << nl << endl; #include "CourantNo.H" // Momentum predictor fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(nu, U) ); if (piso.momentumPredictor()) { solve(UEqn == -fvc::grad(p)); } // --- PISO loop while (piso.correct()) { volScalarField rAU(1.0/UEqn.A()); volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p)); surfaceScalarField phiHbyA ( "phiHbyA", fvc::flux(HbyA) + fvc::interpolate(rAU)*fvc::ddtCorr(U, phi) ); adjustPhi(phiHbyA, U, p); // Update the pressure BCs to ensure flux consistency constrainPressure(p, U, phiHbyA, rAU); // Non-orthogonal pressure corrector loop while (piso.correctNonOrthogonal()) { // Pressure corrector fvScalarMatrix pEqn ( fvm::laplacian(rAU, p) == fvc::div(phiHbyA) ); pEqn.setReference(pRefCell, pRefValue); pEqn.solve(mesh.solver(p.select(piso.finalInnerIte r()))); if (piso.finalNonOrthogonalIter()) { phi = phiHbyA - pEqn.flux(); } } #include "continuityErrs.H" What do you think? |
||
April 11, 2019, 08:16 |
|
#7 |
New Member
Join Date: Dec 2016
Posts: 24
Rep Power: 9 |
Any luck with this one?
|
|
February 23, 2022, 00:34 |
|
#8 |
New Member
Greg Nordin
Join Date: Feb 2022
Posts: 9
Rep Power: 4 |
||
February 24, 2022, 18:07 |
|
#9 | |
New Member
Greg Nordin
Join Date: Feb 2022
Posts: 9
Rep Power: 4 |
Quote:
|
||
Tags |
openfoam 5.0, wmake error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] wmake problem | vville | OpenFOAM Installation | 1 | October 8, 2015 06:01 |
Implementing Radiation Model into buoyantBoussinesqPisoFoam compiling error | Fabian | OpenFOAM Programming & Development | 6 | October 26, 2010 17:46 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 11:46 |