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

Chemkin Reader for 9 polynomial coefficient CEA

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2021, 21:37
Smile Chemkin Reader for 9 polynomial coefficient CEA
  #1
New Member
 
sanjeev adhikari
Join Date: May 2018
Posts: 13
Rep Power: 8
sanjeev_adhikari is on a distinguished road
OF231,
Hello everybody, I was trying to compile newJanaf for 9 polynomial coefficient for of231. During compilation i had a error on adding addChemistryReaderType(chemkinReader, gasHNewThermoPhysics); in ChemkinReader.C



namespace Foam
{
addChemistryReaderType(chemkinReader, gasHThermoPhysics);
addChemistryReaderType(chemkinReader, gasHNewThermoPhysics);
}



however i can compile if remove the second line but it leads to second error later while running i.e. it wont read the newThermoPhysics added. (which is the main purpose of whole work).


ps: I had tried compiling newJanaf; one in Chalmers university and other editing thermoPhyiscalModels(OF231) from the begining.(results in same error)



What might be the possible solution to this, any suggestions? Thank you in advance!!!





Error is as follows::


In file included from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/typeInfo.H:57:0,
from lnInclude/chemistryReader.H:38,
from chemistryReaders/chemkinReader/chemkinReader.H:39,
from chemistryReaders/chemkinReader/chemkinReader.C:26:
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:107:40: error: redefinition of ‘const Foam::word Foam::chemkinReader::typeName’
defineTypeNameWithName(Type, Type::typeName_())
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:103:39: note: in definition of macro ‘defineTypeNameWithName’
const ::Foam::word Type::typeName(Name)
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:144:5: note: in expansion of macro ‘defineTypeName’
defineTypeName(Type); \
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:50:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHNewThermoPhysics);
^
chemistryReaders/chemkinReader/chemkinReader.C:49:28: note: ‘const Foam::word Foam::chemkinReader::typeName’ previously declared here
addChemistryReaderType(chemkinReader, gasHThermoPhysics);
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:103:24: note: in definition of macro ‘defineTypeNameWithName’
const ::Foam::word Type::typeName(Name)
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:144:5: note: in expansion of macro ‘defineTypeName’
defineTypeName(Type); \
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:49:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHThermoPhysics);
^
In file included from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:34:0,
from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/typeInfo.H:57,
from lnInclude/chemistryReader.H:38,
from chemistryReaders/chemkinReader/chemkinReader.H:39,
from chemistryReaders/chemkinReader/chemkinReader.C:26:
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:120:36: error: redefinition of ‘int Foam::chemkinReader::debug’
int Type::debug(::Foam::debug::debugSwitch(Name, DebugSwitch))
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:124:5: note: in expansion of macro ‘defineDebugSwitchWithName’
defineDebugSwitchWithName(Type, Type::typeName_(), DebugSwitch); \
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:145:5: note: in expansion of macro ‘defineDebugSwitch’
defineDebugSwitch(Type, DebugSwitch)
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:50:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHNewThermoPhysics);
^
chemistryReaders/chemkinReader/chemkinReader.C:49:28: note: ‘int Foam::chemkinReader::debug’ previously declared here
addChemistryReaderType(chemkinReader, gasHThermoPhysics);
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:120:9: note: in definition of macro ‘defineDebugSwitchWithName’
int Type::debug(::Foam::debug::debugSwitch(Name, DebugSwitch))
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:145:5: note: in expansion of macro ‘defineDebugSwitch’
defineDebugSwitch(Type, DebugSwitch)
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:49:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHThermoPhysics);
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:45:11: error: redefinition of ‘class Foam::addchemkinReaderToDebug’
class add##Tag##ToDebug \
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:125:5: note: in expansion of macro ‘registerDebugSwitchWithName’
registerDebugSwitchWithName(Type, Type, Type::typeName_())
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:145:5: note: in expansion of macro ‘defineDebugSwitch’
defineDebugSwitch(Type, DebugSwitch)
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:50:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHNewThermoPhysics);
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:45:11: error: previous definition of ‘class Foam::addchemkinReaderToDebug’
class add##Tag##ToDebug \
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:125:5: note: in expansion of macro ‘registerDebugSwitchWithName’
registerDebugSwitchWithName(Type, Type, Type::typeName_())
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:145:5: note: in expansion of macro ‘defineDebugSwitch’
defineDebugSwitch(Type, DebugSwitch)
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:49:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHThermoPhysics);
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:125:51: error: redefinition of ‘Foam::addchemkinReaderToDebug Foam::addchemkinReaderToDebug_’
registerDebugSwitchWithName(Type, Type, Type::typeName_())
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:65:42: note: in definition of macro ‘registerDebugSwitchWithName’
add##Tag##ToDebug add##Tag##ToDebug_(Name)
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:145:5: note: in expansion of macro ‘defineDebugSwitch’
defineDebugSwitch(Type, DebugSwitch)
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:50:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHNewThermoPhysics);
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:65:23: note: ‘Foam::addchemkinReaderToDebug Foam::addchemkinReaderToDebug_’ previously declared here
add##Tag##ToDebug add##Tag##ToDebug_(Name)
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/debugName.H:125:5: note: in expansion of macro ‘registerDebugSwitchWithName’
registerDebugSwitchWithName(Type, Type, Type::typeName_())
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/className.H:145:5: note: in expansion of macro ‘defineDebugSwitch’
defineDebugSwitch(Type, DebugSwitch)
^
lnInclude/chemistryReader.H:150:5: note: in expansion of macro ‘defineTypeNameAndDebug’
defineTypeNameAndDebug(Reader, 0); \
^
chemistryReaders/chemkinReader/chemkinReader.C:49:5: note: in expansion of macro ‘addChemistryReaderType’
addChemistryReaderType(chemkinReader, gasHThermoPhysics);
^
In file included from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/token.H:49:0,
from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:35,
from lnInclude/chemistryReader.H:39,
from chemistryReaders/chemkinReader/chemkinReader.H:39,
from chemistryReaders/chemkinReader/chemkinReader.C:26:
lnInclude/chemistryReader.H: In instantiation of ‘static Foam::autoPtr<Foam::chemistryReader<ThermoType> > Foam::chemistryReader<ThermoType>::adddictionaryCo nstructorToTable<chemistryReaderType>::New(const Foam::dictionary&, Foam::speciesTable&) [with chemistryReaderType = Foam::chemkinReader; ThermoType = Foam::sutherlandTransport<Foam::species::thermo<Fo am::newJanafThermo<Foam:erfectGas<Foam::specie> >, Foam::sensibleEnthalpy> >; Foam::speciesTable = Foam::hashedWordList]’:
lnInclude/chemistryReader.H:82:9: required from ‘Foam::chemistryReader<ThermoType>::adddictionaryC onstructorToTable<chemistryReaderType>::adddiction aryConstructorToTable(const Foam::word&) [with chemistryReaderType = Foam::chemkinReader; ThermoType = Foam::sutherlandTransport<Foam::species::thermo<Fo am::newJanafThermo<Foam:erfectGas<Foam::specie> >, Foam::sensibleEnthalpy> >]’
chemistryReaders/chemkinReader/chemkinReader.C:50:5: required from here
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:76:66: error: no matching function for call to ‘Foam::autoPtr<Foam::chemistryReader<Foam::sutherl andTransport<Foam::species::thermo<Foam::newJanafT hermo<Foam:erfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::autoPtr(Foam::chemkinReader*)’
return autoPtr< baseType >(new baseType##Type parList); \
^
lnInclude/chemistryReader.H:82:9: note: in expansion of macro ‘declareRunTimeSelectionTable’
declareRunTimeSelectionTable
^
In file included from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/autoPtr.H:135:0,
from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:40,
from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/token.H:49,
from /home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:35,
from lnInclude/chemistryReader.H:39,
from chemistryReaders/chemkinReader/chemkinReader.H:39,
from chemistryReaders/chemkinReader/chemkinReader.C:26:
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/autoPtrI.H:48:8: note: candidate: Foam::autoPtr<T>::autoPtr(const Foam::autoPtr<T>&, bool) [with T = Foam::chemistryReader<Foam::sutherlandTransport<Fo am::species::thermo<Foam::newJanafThermo<Foam:er fectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >]
inline Foam::autoPtr<T>::autoPtr(const autoPtr<T>& ap, const bool reUse)
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/autoPtrI.H:48:8: note: candidate expects 2 arguments, 1 provided
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/autoPtrI.H:39:8: note: candidate: Foam::autoPtr<T>::autoPtr(const Foam::autoPtr<T>&) [with T = Foam::chemistryReader<Foam::sutherlandTransport<Fo am::species::thermo<Foam::newJanafThermo<Foam:er fectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >]
inline Foam::autoPtr<T>::autoPtr(const autoPtr<T>& ap)
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/autoPtrI.H:39:8: note: no known conversion for argument 1 from ‘Foam::chemkinReader*’ to ‘const Foam::autoPtr<Foam::chemistryReader<Foam::sutherla ndTransport<Foam::species::thermo<Foam::newJanafTh ermo<Foam:erfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >&’
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/autoPtrI.H:32:8: note: candidate: Foam::autoPtr<T>::autoPtr(T*) [with T = Foam::chemistryReader<Foam::sutherlandTransport<Fo am::species::thermo<Foam::newJanafThermo<Foam:er fectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >]
inline Foam::autoPtr<T>::autoPtr(T* p)
^
/home/hypersonic/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/autoPtrI.H:32:8: note: no known conversion for argument 1 from ‘Foam::chemkinReader*’ to
sanjeev_adhikari is offline   Reply With Quote

Reply

Tags
9 polynoimal coefficient, chemkinreader.c, newjanaf, of231


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
Thermodynamic data using the CEA (9-coefficients) polynomial format charryzzz OpenFOAM Programming & Development 1 May 6, 2020 05:19
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 18:00
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
Automotive test case vinz OpenFOAM Running, Solving & CFD 98 October 27, 2008 09:43


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