CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

error when compiling wmake to include temperature in the icoFoam app

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By cyss38

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2018, 20:19
Default error when compiling wmake to include temperature in the icoFoam app
  #1
New Member
 
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 7
CtnLuiz is on a distinguished road
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!
CtnLuiz is offline   Reply With Quote

Old   July 24, 2018, 07:07
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
There is probably an error in your Make/files or Make/options file. Can you post them here.
jherb is offline   Reply With Quote

Old   July 24, 2018, 09:33
Wink
  #3
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 85
Rep Power: 11
cyss38 is on a distinguished road
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)
vivek05 and CtnLuiz like this.
cyss38 is offline   Reply With Quote

Old   July 24, 2018, 12:10
Default
  #4
New Member
 
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 7
CtnLuiz is on a distinguished road
Quote:
Originally Posted by cyss38 View Post
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)
Thanks for the suggestion cyss38, you're right my problem was related to root access.

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!
CtnLuiz is offline   Reply With Quote

Old   July 24, 2018, 12:12
Default
  #5
New Member
 
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 7
CtnLuiz is on a distinguished road
Quote:
Originally Posted by jherb View Post
There is probably an error in your Make/files or Make/options file. Can you post them here.
Thanks a lot jherb I've already solved the problem.
CtnLuiz is offline   Reply With Quote

Old   July 24, 2018, 12:45
Default
  #6
New Member
 
Cleiton Luiz
Join Date: Jul 2018
Posts: 8
Rep Power: 7
CtnLuiz is on a distinguished road
Quote:
Originally Posted by CtnLuiz View Post
Thanks for the suggestion cyss38, you're right my problem was related to root access.

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!
Comparing the transportIcoFoamN.C file of the tutorial with the OpenFoam icoFoam.C file I noticed that the "PISO loop" is written differently, but I think it is not enough just to copy and paste, anyway I do not know how to change it.

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?
CtnLuiz is offline   Reply With Quote

Old   April 11, 2019, 07:16
Default
  #7
New Member
 
Join Date: Dec 2016
Posts: 24
Rep Power: 9
Dozer_94 is on a distinguished road
Any luck with this one?
Dozer_94 is offline   Reply With Quote

Old   February 22, 2022, 23:34
Default
  #8
New Member
 
Greg Nordin
Join Date: Feb 2022
Posts: 9
Rep Power: 4
GregNordin is on a distinguished road
Quote:
Originally Posted by Dozer_94 View Post
Any luck with this one?
I'm having the same problem that basicMultiComponentSolution.H is not found when I try to compile transportIcoFoamN with OpenFoam 2112. Does anyone have any suggestions to get this to compile?
GregNordin is offline   Reply With Quote

Old   February 24, 2022, 17:07
Default
  #9
New Member
 
Greg Nordin
Join Date: Feb 2022
Posts: 9
Rep Power: 4
GregNordin is on a distinguished road
Quote:
Originally Posted by GregNordin View Post
I'm having the same problem that basicMultiComponentSolution.H is not found when I try to compile transportIcoFoamN with OpenFoam 2112. Does anyone have any suggestions to get this to compile?
Jose Manuel Olmos has an updated solver at Transport of solutes. If you follow the discussion there, you can compile and use the solver with the latest version of OF (v. 2112).
GregNordin is offline   Reply With Quote

Reply

Tags
openfoam 5.0, wmake error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] wmake problem vville OpenFOAM Installation 1 October 8, 2015 05:01
Implementing Radiation Model into buoyantBoussinesqPisoFoam compiling error Fabian OpenFOAM Programming & Development 6 October 26, 2010 16:46
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46


All times are GMT -4. The time now is 16:03.