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

Implementation of rhoreactingFoam into twoPhaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2015, 11:51
Default Implementation of rhoreactingFoam into twoPhaseEulerFoam
  #1
New Member
 
Werner
Join Date: Apr 2014
Posts: 19
Rep Power: 12
Polli is on a distinguished road
Hello,
i tried to implement the rhoReactingFoam into the twoPhaseEulerFoam in OF2.4 and got the following problem. When i implement the header

#include "psiCombustionModel.H"

I get the following error. I checkt from the original solver in the make folder the options file too there shoud all links be available. So can anyone suggest me what these error means or what to do?


SOURCE=twoPhaseEulerFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/transportModels/compressible/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/thermophysicalModels/basic/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/transportModels/incompressible/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/TurbulenceModels/compressible/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/TurbulenceModels/phaseCompressible/lnInclude -IphaseCompressibleTurbulenceModels/lnInclude -IinterfacialModels/lnInclude -ItwoPhaseSystem/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/meshTools/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/sampling/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/turbulenceModels/compressible/turbulenceModel -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/thermophysicalModels/specie/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/thermophysicalModels/reactionThermo/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/thermophysicalModels/basic/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/thermophysicalModels/chemistryModel/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/ODE/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude -IlnInclude -I. -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/twoPhaseEulerFoam.o
In file included from /home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/psiCombustionModel.H:40:0,
from twoPhaseEulerFoam.C:42:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModel.H:60:9: error: ‘compressible’ does not name a type
compressible::turbulenceModel* turbulencePtr_;
^
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModel.H:118:26: error: ‘compressible’ does not name a type
inline const compressible::turbulenceModel& turbulence() const;
^
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModel.H:123:17: error: ‘compressible’ has not been declared
compressible::turbulenceModel& turbModel
^
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModel.H:123:46: error: expected ‘,’ or ‘...’ before ‘&’ token
compressible::turbulenceModel& turbModel
^
In file included from /home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModel.H:161:0,
from /home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/psiCombustionModel.H:40,
from twoPhaseEulerFoam.C:42:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModelI.H: In member function ‘const surfaceScalarField& Foam::combustionModel:hi() const’:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModelI.H:36:9: error: ‘turbulencePtr_’ was not declared in this scope
if (turbulencePtr_)
^
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModelI.H: At global scope:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModelI.H:56:14: error: ‘compressible’ in namespace ‘Foam’ does not name a type
inline const Foam::compressible::turbulenceModel&
^
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModelI.H:87:5: error: variable or field ‘setTurbulence’ declared void
compressible::turbulenceModel& turbModel
^
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModelI.H:87:5: error: ‘compressible’ has not been declared
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/combustionModels/lnInclude/combustionModelI.H:87:36: error: ‘turbModel’ was not declared in this scope
compressible::turbulenceModel& turbModel
^
In file included from createFields.H:35:0,
from twoPhaseEulerFoam.C:52:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/compressibleCreatePhi.H: In function ‘int main(int, char**)’:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/compressibleCreatePhi.H:49:27: error: ‘U’ was not declared in this scope
linearInterpolate(rho*U) & mesh.Sf()
^
In file included from twoPhaseEulerFoam.C:52:0:
createFields.H:38:9: error: ‘compressible’ was not declared in this scope
autoPtr<compressible::turbulenceModel> turbulence
^
createFields.H:38:38: error: template argument 1 is invalid
autoPtr<compressible::turbulenceModel> turbulence
^
createFields.H:39:1: error: invalid type in declaration before ‘(’ token
(
^
createFields.H:40:5: error: ‘compressible’ is not a class or namespace
compressible::turbulenceModel::New
^
createFields.H:45:9: error: ‘thermo’ was not declared in this scope
thermo
^
createFields.H:50:36: error: ‘turbulence’ cannot be used as a function
reaction->setTurbulence(turbulence());
^
createFields.H:101:25: error: conflicting declaration ‘Foam::surfaceScalarField& phi’
surfaceScalarField& phi = fluid.phi();
^
In file included from createFields.H:35:0,
from twoPhaseEulerFoam.C:52:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/compressibleCreatePhi.H:39:20: error: ‘phi’ has a previous declaration as ‘Foam::surfaceScalarField phi’
surfaceScalarField phi
^
In file included from twoPhaseEulerFoam.C:52:0:
createFields.H:111:16: error: conflicting declaration ‘Foam::rhoThermo& thermo2’
rhoThermo& thermo2 = phase2.thermo();
^
In file included from twoPhaseEulerFoam.C:52:0:
createFields.H:9:20: error: ‘thermo2’ has a previous declaration as ‘Foam:siReactionThermo& thermo2’
psiReactionThermo& thermo2 = reaction->thermo();
^
In file included from twoPhaseEulerFoam.C:52:0:
createFields.H:113:21: error: redeclaration of ‘Foam::volScalarField& p’
volScalarField& p = thermo1.p();
^
In file included from twoPhaseEulerFoam.C:52:0:
createFields.H:31:17: error: ‘Foam::volScalarField& p’ previously declared here
volScalarField& p = thermo2.p();
^
In file included from twoPhaseEulerFoam.C:52:0:
createFields.H:118:40: error: invalid initialization of non-const reference of type ‘Foam::volScalarField& {aka Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&}’ from an rvalue of type ‘Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’
volScalarField& rho2 = thermo2.rho();
^
createFields.H:119:27: error: redeclaration of ‘const volScalarField& psi2’
const volScalarField& psi2 = thermo2.psi();
^
In file included from twoPhaseEulerFoam.C:52:0:
createFields.H:32:23: error: ‘const volScalarField& psi2’ previously declared here
const volScalarField& psi2 = thermo2.psi();
^
createFields.H:33:23: warning: unused variable ‘T’ [-Wunused-variable]
const volScalarField& T = thermo2.T();
^
In file included from twoPhaseEulerFoam.C:55:0:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/initContinuityErrs.H:37:8: warning: unused variable ‘cumulativeContErr’ [-Wunused-variable]
scalar cumulativeContErr = 0;
^
In file included from twoPhaseEulerFoam.C:56:0:
/home/TPT-Sim7/foam/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
scalar maxDeltaT =
^
make: *** [Make/linux64GccDPOpt/twoPhaseEulerFoam.o] Fehler 1
Polli is offline   Reply With Quote

Old   April 30, 2020, 23:54
Default
  #2
New Member
 
Tol
Join Date: Jul 2019
Posts: 3
Rep Power: 6
altinoluk_t is on a distinguished road
Hi Polli,

did you overcome the issue? I am trying to add radiation into twophaseeulerfoam, and ıt gives the "error: ‘thermo’ was not declared in this scope" error.
altinoluk_t 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
Issues in FGM combustion model implementation Lisandro Maders OpenFOAM Programming & Development 15 April 22, 2020 19:18
Suppress twoPhaseEulerFoam energy AlmostSurelyRob OpenFOAM Running, Solving & CFD 33 September 25, 2018 17:45
Is twoPhaseEulerFoam applicable to 3D cases / delivering erroneous results? ThomasV OpenFOAM 0 November 11, 2013 08:10
twoPhaseEulerFoam freemankofi OpenFOAM 0 May 23, 2011 16:24
Implementation issues of fvSchemes / laplacianScheme, in particular gaussLaplacianSch thomek OpenFOAM Programming & Development 0 October 18, 2010 05:10


All times are GMT -4. The time now is 05:49.