CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

compilation error of modifiedReactingFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Kikuta.K

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2018, 09:44
Default compilation error of modifiedReactingFoam
  #1
New Member
 
Kikuta Enoki
Join Date: Jun 2017
Posts: 9
Rep Power: 9
Kikuta.K is on a distinguished road
Hello foamers.

I am trying to install a solver "modifiedReactingFoam" which is provided in below thread.
https://www.cfd-online.com/Forums/op...ry-update.html

But I have not been able to achieve it yet because several errors are occuring on compilation process.

After coping files in each directories, I typed below

Quote:
cd $FOAM_RUN/../lib
wmake libso diffusivityModels
but returned,

Quote:
g++ -std=c++0x -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 -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c constant/constant.C -o Make/linux64GccDPInt32Opt/constant/constant.o
constant/constant.C: In member function ‘virtual Foam::tmp<Foam::Field<double> > Foam::binaryDiffusivityModels::constant:(const scalarField&, const scalarField&, Foam::label) const’:
constant/constant.C:93:24: error: binding ‘const Foam::Field<double>’ to reference of type ‘Foam::scalarField& {aka Foam::Field<double>&}’ discards qualifiers
scalarField& d = tD();
^
constant/constant.C: In member function ‘virtual Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::binaryDiffusivityModels::constant:() const’:
constant/constant.C:126:27: error: binding ‘const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>’ to reference of type ‘Foam::volScalarField& {aka Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&}’ discards qualifiers
volScalarField& d = tD();
^
constant/constant.C:136:58: error: binding ‘const Foam::fvPatchField<double>’ to reference of type ‘Foam::fvPatchScalarField& {aka Foam::fvPatchField<double>&}’ discards qualifiers
fvPatchScalarField& pD = d.boundaryField()[patchi];
My OpenFOAM is version 4.1.
Other foamers seem to using this solver in another version of OpenFOAM, i.e. 2.3.x.
Above errors are caused by the difference of version?

I don't know how I can fix this compilation error.
Hopefully anyone could help me to fix this problem?


Best regards.
anujk20 likes this.
Kikuta.K is offline   Reply With Quote

Reply


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
[foam-extend.org] foam-extend-3.2 compilation on windows kirmaks OpenFOAM Installation 7 December 3, 2019 21:20
[OpenFOAM.org] OpenFOAM 5.0: sudden new compilation error on on the Titan supercomputer (Cray) wildfire230 OpenFOAM Installation 1 July 15, 2018 11:06
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 06:21
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 06:56
Compilation Error.... Arnab Siemens 4 September 12, 2004 16:54


All times are GMT -4. The time now is 14:07.