|
[Sponsors] |
OpenFOAM 10 - multiphaseEulerFoam compilation error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 15, 2023, 04:14 |
OpenFOAM 10 - multiphaseEulerFoam compilation error
|
#1 |
New Member
Anonymous
Join Date: Mar 2018
Posts: 6
Rep Power: 8 |
Dear All,
I'm trying to compile the multiphaseEulerFoam of OpenFOAM 10 using the WSL utility without success. I have tried to copy the solver from source and compile it using the Allwmake script. I have used the following commands: Code:
2008 cp -r $FOAM_APP/solvers/multiphase/multiphaseEulerFoam . 1>log.copy_solver 2>err.copy_solver 2011 cd multiphaseEulerFoam/ 2013 ./Allwclean 1>log.Allwclean 2>err.Allwclean 2015 ./Allwmake 1>log.Allwmake 2>err.Allwmake 2016 history Code:
wmakeLnInclude: linking include files to ../interfacialModels//lnInclude wmakeLnInclude: linking include files to ../interfacialCompositionModels//lnInclude wmakeLnInclude: linking include files to ../multiphaseCompressibleMomentumTransportModels//lnInclude wmakeLnInclude: linking include files to ./lnInclude In file included from /home/user/OpenFOAM/OpenFOAM-10/src/finiteVolume/lnInclude/MRFZone.H:51, from /home/user/OpenFOAM/OpenFOAM-10/src/finiteVolume/lnInclude/MRFZoneList.H:41, from /home/user/OpenFOAM/OpenFOAM-10/src/finiteVolume/lnInclude/IOMRFZoneList.H:54, from lnInclude/phaseSystem.H:48, from phaseModel/phaseModel/phaseModel.C:27: ../interfacialCompositionModels/lnInclude/Function1.H:99:17: error: ‘Function1’ was not declared in this scope; did you mean ‘function1’? 99 | autoPtr<Function1<scalar>> function_; | ^~~~~~~~~ | function1 ... Code:
/home/user/OpenFOAM/OpenFOAM-10/src/finiteVolume/lnInclude/MRFZoneTemplates.C: In member function ‘void Foam::MRFZone::makeRelativeRhoFlux(const RhoFieldType&, Foam::surfaceScalarField&) const’: /home/user/OpenFOAM/OpenFOAM-10/src/finiteVolume/lnInclude/MRFZoneTemplates.C:44:26: error: ‘omega_’ was not declared in this scope; did you mean ‘Omega’? 44 | const vector Omega = omega_->value(mesh_.time().userTimeValue())*axis_; | ^~~~~~ | Omega ... Make/linux64GccDPInt32Opt/phaseModel/phaseModel/phaseModel.o] Error 1 Code:
#ifndef function1_H #define function1_H #include "saturationModel.H" #include "Function1.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { namespace saturationModels { /*---------------------------------------------------------------------------*\ Class function1 Declaration \*---------------------------------------------------------------------------*/ class function1 : public saturationModel { // Private Data //- Saturation temperature as a function of pressure autoPtr<Function1<scalar>> function_; public: //- Runtime type information TypeName("function1"); I apologize in advance, as this is likely a basic mistake of mine in the compilation. The precompiled version of the solver works just fine. Thanks in advance! |
|
February 16, 2023, 09:24 |
|
#2 |
New Member
Anonymous
Join Date: Mar 2018
Posts: 6
Rep Power: 8 |
Just as an update, the solver compiles fine if I'm using a Linux machine. Therefore, it could be a problem with copying files using the WSL virtual machine on Windows.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam openfoam 7 installation problem | Andrea23 | OpenFOAM Community Contributions | 1 | February 17, 2020 19:11 |
DPM udf error | haghshenasfard | FLUENT | 0 | April 13, 2016 07:35 |
Errors in UDF | shashank312 | Fluent UDF and Scheme Programming | 6 | May 30, 2013 21:30 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |