|
[Sponsors] |
[swak4Foam] Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 29, 2016, 03:09 |
Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7
|
#1 |
New Member
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10 |
Hello, foamers.
I got some trouble in installing swak4Foam into openfoam2.3.0 on Centos7. I download the swak4Foam_2.x form Contrib/swak4Foam - OpenFOAMWiki. Then I cd the swak4Foam and use ./Allwmake. Code:
Previously compiled for OpenFOAM 2.3.0 No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems Checking swak4Foam-version and generating file Swak version is 0.3.2 Bison is version 2.7 Flex is version 2.5.37 (Minor version: 37) OpenFOAM-version: Major 2 Minor 3 Patch 0 (-1 == x / 0) No change to swak4FoamParsers/foamVersion4swak.H '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file swakImplicitSources.C Making dependency list for source file swakExplicitSources.C Making dependency list for source file swakSetValues.C Making dependency list for source file forceEquation.C Making dependency list for source file expressionSource.C could not open file foamString.H for source file swakImplicitSources.C due to No such file or directory After some time, it appears: Code:
../swak4FoamParsers/lnInclude/PatchValueExpressionDriverI.H: In the memberFunction:‘Foam::tmp<Foam::Field<Type> > Foam::PatchValueExpressionDriver::mapPointField(const Foam::word&)’: ../swak4FoamParsers/lnInclude/PatchValueExpressionDriverI.H:965:61: warning:typedef ‘localPointField’ locally defined but not used [-Wunused-local-typedefs] typedef GeometricField<T,pointPatchField,pointMesh> localPointField; Code:
../../Libraries/swak4FoamParsers/lnInclude/SubsetValueExpressionDriver.H:110:18: Warning: Use inline functions‘Foam::label Foam::SubsetValueExpressionDriver::getIndexFromIterator(const Iter&) const [with Iter = const int*; Foam::label = int]’But never defined [enabled by default] inline label getIndexFromIterator(const Iter &it) const; Code:
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/customer/OpenFOAM/OpenFOAM-2.3.0/swak4Foam_2.x/Libraries (most people will be fine without setting that variable) Attached is my second compile make.log. Can someone help me. Thanks very much. make.log for second time: Code:
Previously compiled for OpenFOAM 2.3.0 No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems Checking swak4Foam-version and generating file Swak version is 0.3.2 Bison is version 2.7 Flex is version 2.5.37 (Minor version: 37) OpenFOAM-version: Major 2 Minor 3 Patch 0 (-1 == x / 0) No change to swak4FoamParsers/foamVersion4swak.H '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date. Compiling swakFvOptions '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakFvOptions.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date. SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakMeshWaveFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date. '/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/lib/libswakCoalCloudAdaptor.so' is up to date. If you have your own function-plugins you can specify them using the SWAK_USER_PLUGINS environment variable and they would be compiled now. If you don't know what this means: don't bother. You propably don't need it SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped”is up to date. make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/replayTransientBC”is up to date. make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/funkyDoCalc”is up to date. make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField”is up to date. make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/funkySetFields”is up to date. make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/funkyWarpMesh”is up to date. make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/fieldReport”is up to date. make[1]: “/home/customer/OpenFOAM/customer-2.3.0/platforms/linux64GccDPOpt/bin/funkySetLagrangianField”is up to date. If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/customer/OpenFOAM/OpenFOAM-2.3.0/swak4Foam_2.x/Libraries (most people will be fine without setting that variable) Last edited by wyldckat; May 1, 2016 at 16:56. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE] |
|
April 29, 2016, 10:04 |
|
#2 |
New Member
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10 |
hello Bruno and all foamers
I compile the swak4Foam_2.x on contrib/swak4Foam on centos7. My openfoam version is 2.3.0 and bison2.7, flex is also ok. When I compile it , it shows ok. But when I use the groovyB.C. It happens like this: pro.JPG And finally it said: pro2.JPG. My log file is like this: Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.3.0-f5222ca19ce6 Exec : flameletFoam -parallel Date : Apr 29 2016 Time : 20:49:36 Host : "localhost.localdomain" PID : 22938 Case : /home/customer/OpenFOAM/OpenFOAM-2.3.0/flameletFoam/tutorial/pilotedDiffusionFlame/caseA nProcs : 4 Slaves : 3 ( "localhost.localdomain.22939" "localhost.localdomain.22940" "localhost.localdomain.22941" ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 http://www.cfd-online.com/Forums/ope...0-centos7.html. Can you tell me where is wrong? Thanks for your help. [ Moderator note: Moved from here: http://www.cfd-online.com/Forums/ope...ak4foam-4.html ] Last edited by wyldckat; May 1, 2016 at 16:59. Reason: see "Moderator note:" |
|
April 29, 2016, 10:10 |
|
#3 |
New Member
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10 |
When I compile it , it shows ok.
pro3.JPG But when I use the groovyB.C. It happens like this: pro.JPG And finally: in attached files, it stop running. My log file is like this: Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.3.0-f5222ca19ce6 Exec : flameletFoam -parallel Date : Apr 29 2016 Time : 20:49:36 Host : "localhost.localdomain" PID : 22938 Case : /home/customer/OpenFOAM/OpenFOAM-2.3.0/flameletFoam/tutorial/pilotedDiffusionFlame/caseA nProcs : 4 Slaves : 3 ( "localhost.localdomain.22939" "localhost.localdomain.22940" "localhost.localdomain.22941" ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading g Creating combustion model Selecting combustion model YSLFModel<rhoThermoCombustion> Selecting thermodynamics package { type heRhoThermo; mixture reactingMixture; transport sutherland; thermo janaf; energy sensibleEnthalpy; equationOfState perfectGas; specie specie; } Selecting chemistryReader chemkinReader -------------------------------------------------------------------------- mpirun noticed that process rank 3 with PID 22941 on node localhost exited on signal 11 (Segmentation fault). -------------------------------------------------------------------------- Last edited by wyldckat; May 1, 2016 at 16:56. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE] |
|
May 1, 2016, 19:51 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: According to the outputs you've provided:
__________________
|
|
May 2, 2016, 02:59 |
|
#5 |
New Member
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10 |
Dear Bruno,
Thanks for your reply. I use flameletFoam which is downloaded here.http://openfoamwiki.net/index.php/Ex...n/flameletFoam Just as you said, the swak4Foam is built properly since I check the groovyB.C with other solver, and it did not report errors.But when I use flameletFoam, it report that error.And when I use flameletFoam without using the groovy.B.C, it works. My case setting is listed below. 1.Mesh check shows OK. MESH.png checkMesh.png 2.I add to the top of the controlDict Code:
libs ( "libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" ); Code:
JET { type groovyBC; value uniform (49.6 0 0); variables ( "umax=49.6/0.817;" "yp=pos().y;" "zp=pos().z;" "r=sqrt(pow(yp,2)+pow(zp,2));" "u=umax*pow((1.0-r/0.0036), (1.0/7.0));" "um=u+0.01*randNormal()*u;" ); valueExpression "vector(um,0,0)"; } There are a lot of "Duplicate ..." and then messy code. canteraToFoam-log:canteraToFoam-log.jpg flameletFoam-log:flameletFoam-log.jpg |
|
May 2, 2016, 15:36 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
There is not much that can be done here. A "special" version of swak for flameletFoam that uses their library. But that would involve some modifications to the code Sorry (but not my fault)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 4, 2016, 08:16 |
|
#7 | |
New Member
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10 |
Quote:
Maybe I should try other way to set the inlet velocity B.C. I try this type of boundary "timeVaryingMappedFixedValue". But I do not know which is better for the turbulent velocity inlet. |
||
May 6, 2016, 10:14 |
|
#8 |
New Member
Qiaoling Wang
Join Date: Dec 2015
Posts: 18
Rep Power: 10 |
Greetings:
Now I find out that the swak4Foam can be used with flameletFoam solver (Muller) although some strange information may happen at begin. Thanks for those who reply to this thread. |
|
July 17, 2016, 23:36 |
|
#9 | |
New Member
Esmaeel Eftekharian
Join Date: Jan 2016
Location: Sydney, Australia
Posts: 16
Rep Power: 10 |
Quote:
I am using Linux Ubuntu 16.04 and OpenFoam4. I desperately need to use Swak4Foam in my work, however, in the final step of installing Swak4Foam (./Allwmake > log.make 2>&1) it is not compiled and it stops. I wonder if this is because of the version of OpenFoam I use; if so, would you please let me know if there is a version of Swak4Foam available compatible with OpenFoam4. By the way, what is the latest version of OpenFoam on which I can install swak4Foam? Thank you in advance. |
||
July 23, 2017, 16:27 |
|
#10 | |
Member
Raunak Bardia
Join Date: Jan 2015
Posts: 32
Rep Power: 11 |
Quote:
Can someone please help me with this? The log file after the second run of Allwmake command is attached. Last edited by raunakbardia; July 24, 2017 at 18:04. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Using OpenFOAM 2.3.0 from Deb pack in Ubuntu 14.04 + ParaView 5 from OpenFOAM 4.1 | ad2eb | OpenFOAM Installation | 12 | May 28, 2017 15:30 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
[OpenFOAM.org] OpenFOAM 2.3.0 Installation Problem on CentOS 6.6 | shenzhou1987 | OpenFOAM Installation | 1 | December 14, 2014 14:34 |
[swak4Foam] Installing swak4Foam to OpenFOAM in mac | Kaquesang | OpenFOAM Community Contributions | 22 | January 21, 2013 12:51 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |