|
[Sponsors] |
|
June 13, 2015, 14:41 |
|
#1 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
||
June 14, 2015, 12:32 |
|
#2 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
All rights, I have gone through all the threads about inflow generator, but I could not find any person who could/have implement a non-uniform velocity boundary condition in LeMOS inflow generator. Can you please elaborate this a little further??!!! A brief example would be highly appreciated. I do not have any idea how to do this myself.
Regards |
|
June 14, 2015, 13:18 |
|
#3 |
Senior Member
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 124
Rep Power: 18 |
Dear syavash,
all required fields for the inflowGenerator-BC can be specified "uniform" or "nonuniform" in space but only steady in time. Unfortunately, there is no straightforward and comfortable way in OpenFOAM to specify the values for the "nonuniform" type of the value entry. In our current development version, I have introduced a more flexible way of specifying the corresponding field entries. There, it can be not only "uniform" and "nonuniform" but also "linearProfile", "radialProfile", "fittedProfile" and so on. But this not yet ready for release and also not yet documented. ( But in case you are interested: The same code is also used in the "extendedFixedValueBC" here: http://sourceforge.net/p/insightcae/...ions/openfoam/ ) For now you need a workaround. Some possibilities come into my mind: 1.) If you don't mind a some programming, you could derive your own BC from the inflowGenerator-BC and set the fields in the "updateCoefficients" function. This also the only way if you need unsteadiness. 2.) You create a dummy-copy of the field and specify some other BC, e.g. "groovyBC" or "timeVaryingMappedFixedValue", then you run the solver and let it compute and write a new timestep with the proper "nonuniform" value-statement in it. You can then copy this into your original field file and start the simulation with it. I agree that this is pretty cumbersome. For that reason I started the new implementation... Regards, Hannes |
|
July 1, 2015, 03:10 |
|
#4 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Dear Foamers,
Unfortunately despite following the steps in Readme file, I encounter errors when trying to install LeMOS. The error message is as follows: Code:
syavash@syavash-VPCF11DGX:~/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x$ ./Allwmake + wmake libso libLEMOS-2.3.x /usr/bin/ld: cannot find -lgsl collect2: error: ld returned 1 exit status make: *** [/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLEMOS-2.3.x.so] Error 1 + cd applications + wmake all solvers make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/libLEMOS-2.3.x/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/PODSolver.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -lLEMOS-2.3.x -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/PODSolver /usr/bin/ld: cannot find -lLEMOS-2.3.x collect2: error: ld returned 1 exit status make[2]: *** [/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/PODSolver] Error 1 make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver' make[1]: *** [PODSolver] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic' make: *** [basic] Error 2 make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam' make[1]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoam' is up to date. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam' make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS' SOURCE=scalarPimpleFoamLDMMS.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o In file included from scalarPimpleFoamLDMMS.C:54:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:106:13: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘registerScalarField’ turbulence->registerScalarField(f,D_f); ^ scalarPimpleFoamLDMMS.C:113:44: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘molecularDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamLDMMS.C:113:94: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘turbulentDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamLDMMS.C:118:29: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divFeff’ + turbulence->divFeff(f) ^ make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o] Error 1 make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamLDMMS' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS' make: *** [scalarPimpleFoamLDMMS] Error 2 make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM' SOURCE=scalarPimpleFoamMFM.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamMFM.o In file included from scalarPimpleFoamMFM.C:54:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:106:13: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘registerScalarField’ turbulence->registerScalarField(f,D_f); ^ scalarPimpleFoamMFM.C:113:44: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘molecularDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamMFM.C:113:94: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘turbulentDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamMFM.C:118:29: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divFeff’ + turbulence->divFeff(f) ^ make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamMFM.o] Error 1 make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamMFM' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM' make: *** [scalarPimpleFoamMFM] Error 2 make: Target `application' not remade because of errors. + cd applications + wmake all utilities make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/libLEMOS-2.3.x/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/scalarSnapshots.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -lLEMOS-2.3.x -lODE -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarSnapshots /usr/bin/ld: cannot find -lLEMOS-2.3.x collect2: error: ld returned 1 exit status make[3]: *** [/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarSnapshots] Error 1 make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots' make[2]: *** [scalarSnapshots] Error 2 make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/libLEMOS-2.3.x/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/vectorSnapshots.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -lLEMOS-2.3.x -lODE -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/vectorSnapshots /usr/bin/ld: cannot find -lLEMOS-2.3.x collect2: error: ld returned 1 exit status make[3]: *** [/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/vectorSnapshots] Error 1 make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots' make[2]: *** [vectorSnapshots] Error 2 make[2]: Target `application' not remade because of errors. make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD' make[1]: *** [POD] Error 2 make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/postChannelExt' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt' make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/LambdaCI' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI' make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField' make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing' make: *** [postProcessing] Error 2 make: Target `application' not remade because of errors. Thanks |
|
July 1, 2015, 03:18 |
|
#5 | |
Senior Member
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 124
Rep Power: 18 |
I see two problems:
1. Gnu Scientific Library (gsl) is not installed. Please install the "-dev" package of your distribution. 2. You need to apply a patch to the OpenFOAM source to be able to compile the turbulence models. This patch adds some helper functions to the LESModel base class which were required for implementation of the DMM model. There is a script "applyPatches" for that. Note that this requires write access to the OpenFOAM sources, i.e. you need to have OpenFOAM installed in your $HOME directory. Quote:
Regards, Hannes |
||
July 1, 2015, 04:14 |
|
#6 | |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Dear Hannes, Thanks for quick reply! 1-I have installed OF in my $Home directory and "applyPatches" script seems to execute properly. 2- As you suggested, I installed GNU Scientific Library (gsl 1.16) but now another error message appears after running Allwmake: Code:
+ cd applications + wmake all solvers make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/libLEMOS-2.3.x/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/PODSolver.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -lLEMOS-2.3.x -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/PODSolver //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zher2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dtrsm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ctrmm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_csyrk' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dsyr2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dsyr' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sgemm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_srot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dzasum' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_idamax' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_csyr2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zhemv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_drotm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dsymm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zsyrk' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sdsdot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zgerc' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ssyr2' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cher' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zsymm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ztrsm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cher2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sasum' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ztrsv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ccopy' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ztrmm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dger' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dtrmv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_izamax' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zdscal' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sdot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zdotu_sub' collect2: error: ld returned 1 exit status make[2]: *** [/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/PODSolver] Error 1 make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver' make[1]: *** [PODSolver] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic' make: *** [basic] Error 2 make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam' make[1]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoam' is up to date. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam' make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS' SOURCE=scalarPimpleFoamLDMMS.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o In file included from scalarPimpleFoamLDMMS.C:54:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:106:13: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘registerScalarField’ turbulence->registerScalarField(f,D_f); ^ scalarPimpleFoamLDMMS.C:113:44: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘molecularDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamLDMMS.C:113:94: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘turbulentDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamLDMMS.C:118:29: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divFeff’ + turbulence->divFeff(f) ^ make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o] Error 1 make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamLDMMS' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS' make: *** [scalarPimpleFoamLDMMS] Error 2 make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM' SOURCE=scalarPimpleFoamMFM.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamMFM.o In file included from scalarPimpleFoamMFM.C:54:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:106:13: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘registerScalarField’ turbulence->registerScalarField(f,D_f); ^ scalarPimpleFoamMFM.C:113:44: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘molecularDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamMFM.C:113:94: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘turbulentDiffusivityCoeff’ volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamMFM.C:118:29: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divFeff’ + turbulence->divFeff(f) ^ make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamMFM.o] Error 1 make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamMFM' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM' make: *** [scalarPimpleFoamMFM] Error 2 make: Target `application' not remade because of errors. + cd applications + wmake all utilities make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/libLEMOS-2.3.x/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/scalarSnapshots.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -lLEMOS-2.3.x -lODE -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarSnapshots //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zher2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dtrsm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zhemm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sdot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zdotu_sub' collect2: error: ld returned 1 exit status make[3]: *** [/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarSnapshots] Error 1 make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots' make[2]: *** [scalarSnapshots] Error 2 make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/libLEMOS-2.3.x/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/vectorSnapshots.o -L/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -lLEMOS-2.3.x -lODE -lOpenFOAM -ldl -lm -o /home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/vectorSnapshots //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zher2k'' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zdotc_sub' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_strmm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_csymm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sger' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zscal' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_srotg' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_strmv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cgerc' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_saxpy' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cherk' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dsdot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ssymv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zher2' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ddot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dnrm2' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cgemv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zgemv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ctrmv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cswap' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zgemm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ctrmm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_csyrk' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dsyr2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dsyr' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sgemm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_srot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dzasum' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_idamax' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_csyr2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zhemv' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_drotm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_dsymm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zsyrk' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sdsdot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zgerc' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ssyr2' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cher' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zsymm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_ztrsm' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_cher2k' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_sdot' //usr/local/lib/libgsl.so.0: undefined reference to `cblas_zdotu_sub' collect2: error: ld returned 1 exit status make[3]: *** [/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/vectorSnapshots] Error 1 make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots' make[2]: *** [vectorSnapshots] Error 2 make[2]: Target `application' not remade because of errors. make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD' make[1]: *** [POD] Error 2 make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/postChannelExt' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt' make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/LambdaCI' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI' make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField' make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing' make: *** [postProcessing] Error 2 make: Target `application' not remade because of errors. Regards Syavash Last edited by syavash; July 1, 2015 at 05:30. |
||
July 1, 2015, 04:21 |
|
#7 |
Member
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17 |
You have to add "-lgslcblas" to the libraries in the option file. Unfortunately, the cblas interfaces have been outsourced into a separate library.
I will add the missing dependency to the repository as soon as possible. Good Luck Matthias |
|
July 1, 2015, 05:52 |
|
#8 | |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Thank you, I did as you suggested and included "-lgslcblas" after "-lgsl" in the options file, but some of the errors still remain. When I run applyPatches, the following message appears indicating it is working properly (I suppose!): Code:
syavash@syavash-VPCF11DGX:~/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x$ ./applyPatches patching file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.H Reversed (or previously applied) patch detected! Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.H.rej patching file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.C Reversed (or previously applied) patch detected! Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/LESfilter/LESfilter.C.rej + LES/Allwmake + wmakeLnInclude ../incompressible/LES + wmake libso LESfilters '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLESfilters.so' is up to date. + wmake libso LESdeltas '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLESdeltas.so' is up to date. + incompressible/Allwmake + wmake libso turbulenceModel '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleTurbulenceModel.so' is up to date. + wmake libso RAS '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so' is up to date. + wmake libso LES '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libincompressibleLESModels.so' is up to date. + compressible/Allwmake + wmake libso turbulenceModel '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libcompressibleTurbulenceModel.so' is up to date. + wmake libso RAS '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so' is up to date. + wmake libso LES '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libcompressibleLESModels.so' is up to date. + wmake libso derivedFvPatchFields '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libturbulenceDerivedFvPatchFields.so' is up to date. Code:
syavash@syavash-VPCF11DGX:~/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x$ ./Allwmake + wmake libso libLEMOS-2.3.x '/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/lib/libLEMOS-2.3.x.so' is up to date. + cd applications + wmake all solvers make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver' make[2]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/PODSolver' is up to date. make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic/PODSolver' make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/basic' make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam' make[1]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoam' is up to date. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoam' make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS' SOURCE=scalarPimpleFoamLDMMS.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o In file included from scalarPimpleFoamLDMMS.C:54:0: createFields.H: In function int main(int, char**): createFields.H:106:13: error: class Foam::incompressible::turbulenceModel has no member named registerScalarField turbulence->registerScalarField(f,D_f); ^ scalarPimpleFoamLDMMS.C:113:44: error: class Foam::incompressible::turbulenceModel has no member named molecularDiffusivityCoeff volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamLDMMS.C:113:94: error: class Foam::incompressible::turbulenceModel has no member named turbulentDiffusivityCoeff volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamLDMMS.C:118:29: error: class Foam::incompressible::turbulenceModel has no member named divFeff + turbulence->divFeff(f) ^ make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamLDMMS.o] Error 1 make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamLDMMS' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamLDMMS' make: *** [scalarPimpleFoamLDMMS] Error 2 make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM' SOURCE=scalarPimpleFoamMFM.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/turbulenceModels/LES/LESfilters/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/meshTools/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/fvOptions/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/scalarPimpleFoamMFM.o In file included from scalarPimpleFoamMFM.C:54:0: createFields.H: In function int main(int, char**): createFields.H:106:13: error: class Foam::incompressible::turbulenceModel has no member named registerScalarField turbulence->registerScalarField(f,D_f); ^ scalarPimpleFoamMFM.C:113:44: error: class Foam::incompressible::turbulenceModel has no member named molecularDiffusivityCoeff volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamMFM.C:113:94: error: class Foam::incompressible::turbulenceModel has no member named turbulentDiffusivityCoeff volScalarField DEff = turbulence->molecularDiffusivityCoeff(f.name()) + turbulence->turbulentDiffusivityCoeff(f.name()); ^ scalarPimpleFoamMFM.C:118:29: error: class Foam::incompressible::turbulenceModel has no member named divFeff + turbulence->divFeff(f) ^ make[1]: *** [Make/linux64GccDPOpt/scalarPimpleFoamMFM.o] Error 1 make[1]: Target `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarPimpleFoamMFM' not remade because of errors. make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/solvers/scalarPimpleFoamMFM' make: *** [scalarPimpleFoamMFM] Error 2 make: Target `application' not remade because of errors. + cd applications + wmake all utilities make[1]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/scalarSnapshots' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/scalarSnapshots' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/vectorSnapshots' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD/vectorSnapshots' make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/POD' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/postChannelExt' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous/postChannelExt' make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/miscellaneous' make[2]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField' make[3]: Entering directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI' make[3]: `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/platforms/linux64GccDPOpt/bin/LambdaCI' is up to date. make[3]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField/LambdaCI' make[2]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing/velocityField' make[1]: Leaving directory `/home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/LEMOS-2.3.x/applications/utilities/postProcessing' Thanks Syavash |
||
July 1, 2015, 06:29 |
|
#9 |
Member
Matthias Walter
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 63
Rep Power: 17 |
Dear Syavash,
as long as you don't need the turbulence models in the library you can ignore these errors. The library seems to be correctly build. There are some missing dependencies in the original turbulence models class of OpenFOAM. I have to modify the applyPatches to add these dependencies but this needs some time. I will do it till end of the week. Best Matthias |
|
July 1, 2015, 09:25 |
|
#10 | |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
I appreciate your comment, but the problem still persists when running solver "pisoFoam". I have added inlet boundary condition as follows: Code:
INLET { type decayingTurbulenceInflowGenerator; direction 1; LField uniform 0.00315; refField uniform ( 6.355 0 0 ); value uniform ( 6.355 0 0 ); } Code:
syavash@syavash-VPCF11DGX:~/OpenFOAM/syavash-2.3.1/run/tutorials/incompressible/pisoFoam/les/pitzDaily-94-3-24$ pisoFoam /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.3.1-262087cdf8db Exec : pisoFoam Date : Jul 01 2015 Time : 17:50:00 Host : "syavash-VPCF11DGX" PID : 3380 Case : /home/syavash/OpenFOAM/syavash-2.3.1/run/tutorials/incompressible/pisoFoam/les/pitzDaily-94-3-24 nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading field p Reading field U --> FOAM FATAL IO ERROR: Unknown patchField type decayingTurbulenceInflowGenerator for patch type patch Valid patchField types are : 75 ( SRFFreestreamVelocity SRFVelocity activeBaffleVelocity activePressureForceBaffleVelocity advective atmBoundaryLayerInletVelocity calculated codedFixedValue codedMixed cyclic cyclicACMI cyclicAMI cyclicSlip cylindricalInletVelocity directionMixed empty externalCoupled fixedGradient fixedInternalValue fixedJump fixedJumpAMI fixedMean fixedNormalInletOutletVelocity fixedNormalSlip fixedValue flowRateInletVelocity fluxCorrectedVelocity freestream inletOutlet interstitialInletVelocity kqRWallFunction mapped mappedField mappedFixedInternalValue mappedFixedPushedInternalValue mappedFlowRate mappedVelocityFlux mixed movingWallVelocity nonuniformTransformCyclic oscillatingFixedValue outletInlet outletMappedUniformInlet outletPhaseMeanVelocity partialSlip pressureDirectedInletOutletVelocity pressureDirectedInletVelocity pressureInletOutletParSlipVelocity pressureInletOutletVelocity pressureInletUniformVelocity pressureInletVelocity pressureNormalInletOutletVelocity processor processorCyclic rotatingPressureInletOutletVelocity rotatingWallVelocity sliced slip supersonicFreestream surfaceNormalFixedValue swirlFlowRateInletVelocity symmetry symmetryPlane timeVaryingMappedFixedValue translatingWallVelocity turbulentInlet uniformFixedGradient uniformFixedValue uniformInletOutlet uniformJump uniformJumpAMI variableHeightFlowRateInletVelocity waveTransmissive wedge zeroGradient ) file: /home/syavash/OpenFOAM/syavash-2.3.1/run/tutorials/incompressible/pisoFoam/les/pitzDaily-94-3-24/0/U.boundaryField.INLET from line 27 to line 31. From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&) in file /home/syavash/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 143. FOAM exiting Another question, Shouldn't I add something to controlDict??! P.S.: Isn't it strange that other people did not encounter such problems as I did??! Regards, Syavash |
||
July 1, 2015, 09:51 |
|
#11 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
I wanted to add I am running OF 2.3.1 under Ubuntu 14.04, Could it be making troubles??
|
|
July 1, 2015, 10:07 |
|
#12 | |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Knock, knock, Great! The problem was that I should have added the following line to the controlDict, Code:
libs ("libLEMOS-2.3.x.so"); Regards, Syavash |
||
February 27, 2016, 17:48 |
|
#13 | |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Dear Matthias,
For the boundary condition of "inflowGenerator", is there the corresponding version for OpenFOAM 3.0.0? Thank you. Quote:
|
||
July 2, 2016, 09:15 |
|
#14 |
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14 |
Hello everyone!
I am wondering how does the new divergence-free SEM ,method in the newest +release of OF correlate to the latest work in LEMOS. What Hannes presented in the OF-workshop this week looked very similar to what is described in the release statement, at least to a non-expert . Best, Timofey |
|
July 5, 2016, 02:54 |
|
#15 |
Senior Member
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 124
Rep Power: 18 |
Dear Timofey,
the DFSEM is a parallel development to our inflow generator. Although the basic idea is in principle the same, the differences are in the velocity distribution inside the spots (or synthetic eddies). From the latest paper that I'm aware of, I remember that there were some severe restrictions in the realizable ansiotropy of the DFSEM-generated turbulence. But I just got the code and I will take a deeper look now. Regards, Hannes |
|
November 13, 2017, 08:23 |
|
#16 | |
New Member
Xu Huang
Join Date: Apr 2015
Location: Netherlands
Posts: 23
Rep Power: 11 |
Quote:
I also your post, do you know how to solve this? I am using version OF-2.3.x. Thank you. Regards, Xu |
||
November 13, 2017, 08:26 |
|
#17 |
New Member
Xu Huang
Join Date: Apr 2015
Location: Netherlands
Posts: 23
Rep Power: 11 |
I am sorry for this repeating replies. It seems I made a mess between threads. I cannot delete this post.
Sorry. Cheers, Xu |
|
October 11, 2018, 05:14 |
|
#18 |
Senior Member
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 9 |
I've read all the above threads and the corresponding papers. I complied this BC in OF-4.x without any problem (cheers), and I'm testing it using a simple pipe flow(with 7.2mm diameter and 50mm length) with the Smagorinsky model.
The fluctuations at the velocity-inlet are fine at all instances (random and quite visible), but they die out pretty quickly downstream. At about 20mm (40% length), the axial velocity becomes flat in the middle section of the pipe. Any ideas how this can be fixed? Right now I'm using ~120,000 cells and my intention is to limit this number under ~300,000. I heard that the cell size in the axial direction matters the most and they should be relatively small, is this correct? |
|
October 11, 2018, 07:38 |
|
#19 |
New Member
Abhi
Join Date: Feb 2012
Location: United Kingdom
Posts: 3
Rep Power: 14 |
Hi Ruiyan,
Based on the dimensions you've provided for the pipe and the total number of cells, it looks like the grid may not be the issue. However, do check your grid, since LES is very sensitive to the cell aspect ratio. High aspect ratio cells near the wall will definitely cause perturbations to die out. I believe it's to do with the SGS model you are using. The Smagorinsky model is dissipative. Try using a dynamic model, for instance, the Dynamic kEquation Model in OF4x. This is what I have found in literature about the limitations of Smagorinsky model: The Smagorinsky model is based on the assumption that the small scales are in equilibrium and dissipate entirely and instantaneously the energy they receive from the large scales (see Turbulent Energy Cascade). However, due to its overly dissipative limitation, i.e. the excessive extraction of energy from the large scales, the perturbations/disturbances tend to die out. Likewise, in the case of laminar-turbulent transition, the Smagorinsky model fails to differentiate between laminar and turbulent flows, and therefore the turbulent eddy viscosity remains active throughout the whole domain. This causes the linear disturbances to decay prior to transition and the transition location is not predicted accurately. |
|
October 11, 2018, 21:36 |
|
#20 |
Senior Member
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 9 |
Hi Abhi,
Thank you for reading my post. You may be right, I tried the same grid with Smagorinsky model in ANSYS Fluent and the perturbation also die out quickly downstream. I will further improve my mesh and test it using different SGS model as you suggested. About the cell aspect ratio, is there an optimal value (or just a rule of a thumb) you recommend? I think most meshing softwares use a value around 1.20. |
|
Tags |
inflow conditions, lemos |
|
|