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

Error in compiling modifiedReactingFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2018, 18:12
Wink Error in compiling modifiedReactingFoam
  #1
New Member
 
Kikuta Enoki
Join Date: Jun 2017
Posts: 9
Rep Power: 9
Kikuta.K is on a distinguished road
Dear all,

I'm trying to compile modifiedReactingFoam provided in below post,
https://www.cfd-online.com/Forums/op...ry-update.html
but not compiled yet due to occuring some errors.

Compilation of 'diffusivityModels' has already done.
Errors occur when compiling 'multiSpeciesTransportModels'.

The error messages are below.

Quote:

In file included from lnInclude/MaxwellStefan.H:139:0,
from multiSpeciesTransportModel/multiSpeciesTransportModels.C:33:
lnInclude/MaxwellStefan.C: In member function 'virtual Foam::scalar Foam::MaxwellStefan<ThermoType>::correct(Foam::mul tivariateSurfaceInterpolationScheme<double>::field Table&)':
lnInclude/MaxwellStefan.C:248:19: error: 'const class Foam::fvMesh' has no member named 'relax'
lnInclude/MaxwellStefan.C:282:19: error: 'const class Foam::fvMesh' has no member named 'relax'
lnInclude/MaxwellStefan.C:284:28: error: 'const class Foam::fvMesh' has no member named 'relaxationFactor'
multiSpeciesTransportModel/multiSpeciesTransportModel.C: In member function 'void Foam::multiSpeciesTransportModel::updateMolarFract ions()':
multiSpeciesTransportModel/multiSpeciesTransportModel.C:46:54: error: no matching function for call to 'dimensionedConstant(const char [2], double)'
multiSpeciesTransportModel/multiSpeciesTransportModel.C:46:54: note: candidates are:
In file included from multiSpeciesTransportModel/multiSpeciesTransportModel.C:28:0:
/home/kento/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/dimensionedConstants.H:55:19: note: Foam::dimensionedScalar Foam::dimensionedConstant(const Foam::word&, const Foam::word&)
/home/kento/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/dimensionedConstants.H:55:19: note: no known conversion for argument 2 from 'double' to 'const Foam::word&'
/home/kento/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/dimensionedConstants.H:59:3: note: template<class T> T Foam::dimensionedConstant(const Foam::word&, const Foam::word&, const T&)
/home/kento/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/dimensionedConstants.H:59:3: note: template argument deduction/substitution failed:
multiSpeciesTransportModel/multiSpeciesTransportModel.C:46:54: note: cannot convert '8.3145100000000002e+3' (type 'double') to type 'const Foam::word&'
multiSpeciesTransportModel/multiSpeciesTransportModel.dep:582: recipe for target 'Make/linux64Gcc47DPOpt/multiSpeciesTransportModel.o' failed
make: *** [Make/linux64Gcc47DPOpt/multiSpeciesTransportModel.o] Error 1
make: *** Waiting for unfinished jobs....
multiSpeciesTransportModel/multiSpeciesTransportModels.dep:639: recipe for target 'Make/linux64Gcc47DPOpt/multiSpeciesTransportModels.o' failed
make: *** [Make/linux64Gcc47DPOpt/multiSpeciesTransportModels.o] Error 1
I think I need to add the gas constant R to the dimensionedConstants.H file, but I do not know how to add it.

If possible, could anyone provide me suggestions how to modify the code in order to solve some errors about gas constant R in a precise manner?

Thank you for your kind help in advance.

Best regards,

Kikuta.K.
Kikuta.K is offline   Reply With Quote

Reply

Tags
modifiedreactingfoam, openfoam


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] Compiling OpenFOAM 5.0 on the Titan Supercomputer wildfire230 OpenFOAM Installation 20 May 6, 2020 08:30
Getting error both interpreting and compiling serene6390 Fluent UDF and Scheme Programming 1 October 27, 2017 01:49
All files present. but solver not compiling saddy OpenFOAM Programming & Development 1 July 29, 2017 10:50
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi foamer123 OpenFOAM Installation 9 August 20, 2015 15:03
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 06:40


All times are GMT -4. The time now is 18:35.