CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Conflicting declaration of "typedef" class in OpenFOAM (https://www.cfd-online.com/Forums/openfoam-programming-development/131320-conflicting-declaration-typedef-class-openfoam.html)

SKLee March 13, 2014 04:11

Conflicting declaration of "typedef" class in OpenFOAM
 
Hi all,

I am trying to implemente the power law transport into thermoPhysical model by modifying sutherland model in OpenFoam. When I compile it and have errors belows


lnInclude/thermoPhysicsTypes.H:228:7: error: conflicting declaration ‘typedef class Foam::powerLawTransport<Foam::species::thermo<Foam ::janafThermo<Foam::incompressiblePerfectGas<Foam: :specie> >, Foam::sensibleInternalEnergy> > Foam::incompressibleGasEThermoPhysics’
> incompressibleGasEThermoPhysics;


lnInclude/thermoPhysicsTypes.H:215:7: error: ‘Foam::incompressibleGasEThermoPhysics’ has a previous declaration as ‘typedef classFoam::sutherlandTransport<Foam::species::ther mo<Foam::janafThermo<Foam::incompressiblePerfectGa s<Foam::specie> >, Foam::sensibleInternalEnergy> > Foam::incompressibleGasEThermoPhysics’
> incompressibleGasEThermoPhysics;

Error messages show that I have a conflicting declaration of "typedef" class with sutherland model in openFoam. How can I set declaration "typedef' for my own model and where can I do this?

SungKi

saurabhg2014 March 10, 2018 05:19

Did you figure it out? I am facing the same problem..


All times are GMT -4. The time now is 12:43.