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

Add New Pyrolysis Chemistry Type

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2015, 19:54
Default Add New Pyrolysis Chemistry Type
  #1
New Member
 
L.Bryce Whitson Jr.
Join Date: Jun 2011
Posts: 18
Rep Power: 15
LWhitson2 is on a distinguished road
I am trying to add the ability to utilize constant gas thermophysics with the pyrolysis solid chemistry model. I thought it would be as easy as modifying:

solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModels.C
solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolvers.C

with a line such as:

makeSolidChemistrySolverTypes
(
pyrolysisChemistryModel,
basicSolidChemistryModel,
hConstSolidThermoPhysics,
constGasHThermoPhysics
)

and similar for the basicSolidChemistryModels.C file.

When I try to compile either of these, I get the following error:

Code:
+ wmake libso solidChemistryModel
SOURCE=basicSolidChemistryModel/basicSolidChemistryModels.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/specie/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/solidSpecie/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/ODE/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/chemistryModel/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/basic/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/specie/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/solidThermo/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/basicSolidChemistryModels.o
In file included from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/typeInfo.H:57:0,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/token.H:46,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/UListIO.C:28,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/UList.C:239,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/UList.H:473,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/List.H:43,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/wordList.H:42,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/hashedWordList.H:39,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/specie/lnInclude/speciesTable.H:35,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/specie/lnInclude/Reaction.H:40,
                 from lnInclude/solidChemistryModel.H:42,
                 from lnInclude/makeSolidChemistryModel.H:33,
                 from basicSolidChemistryModel/basicSolidChemistryModels.C:33:
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:103:38: error: redefinition of ‘const Foam::word Foam::solidChemistryModel<Foam::basicSolidChemistryModel, Foam::constIsoSolidTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > >::typeName’
     const ::Foam::word Type::typeName(Name)
                                      ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:120:5: note: in expansion of macro ‘defineTypeNameWithName’
     defineTypeNameWithName(Type, Name)
     ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:149:5: note: in expansion of macro ‘defineTemplateTypeNameWithName’
     defineTemplateTypeNameWithName(Type, Name);                               \
     ^
lnInclude/makeSolidChemistryModel.H:48:5: note: in expansion of macro ‘defineTemplateTypeNameAndDebugWithName’
     defineTemplateTypeNameAndDebugWithName                                    \
     ^
basicSolidChemistryModel/basicSolidChemistryModels.C:72:5: note: in expansion of macro ‘makeSolidChemistryModel’
     makeSolidChemistryModel
     ^
lnInclude/makeSolidChemistryModel.H:50:9: error: ‘const Foam::word Foam::solidChemistryModel<Foam::basicSolidChemistryModel, Foam::constIsoSolidTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > >::typeName’ previously declared here
         sChemistryl##Comp##SThermo,                                           \
         ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:103:24: note: in definition of macro ‘defineTypeNameWithName’
     const ::Foam::word Type::typeName(Name)
                        ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:149:5: note: in expansion of macro ‘defineTemplateTypeNameWithName’
     defineTemplateTypeNameWithName(Type, Name);                               \
     ^
lnInclude/makeSolidChemistryModel.H:48:5: note: in expansion of macro ‘defineTemplateTypeNameAndDebugWithName’
     defineTemplateTypeNameAndDebugWithName                                    \
     ^
basicSolidChemistryModel/basicSolidChemistryModels.C:45:5: note: in expansion of macro ‘makeSolidChemistryModel’
     makeSolidChemistryModel
     ^
In file included from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:34:0,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/typeInfo.H:57,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/token.H:46,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/UListIO.C:28,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/UList.C:239,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/UList.H:473,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/List.H:43,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/wordList.H:42,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/hashedWordList.H:39,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/specie/lnInclude/speciesTable.H:35,
                 from /home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/thermophysicalModels/specie/lnInclude/Reaction.H:40,
                 from lnInclude/solidChemistryModel.H:42,
                 from lnInclude/makeSolidChemistryModel.H:33,
                 from basicSolidChemistryModel/basicSolidChemistryModels.C:33:
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/debugName.H:120:36: error: redefinition of ‘int Foam::solidChemistryModel<Foam::basicSolidChemistryModel, Foam::constIsoSolidTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > >::debug’
     int Type::debug(::Foam::debug::debugSwitch(Name, DebugSwitch))
                                    ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/debugName.H:138:5: note: in expansion of macro ‘defineDebugSwitchWithName’
     defineDebugSwitchWithName(Type, Name, DebugSwitch)
     ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:150:5: note: in expansion of macro ‘defineTemplateDebugSwitchWithName’
     defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
     ^
lnInclude/makeSolidChemistryModel.H:48:5: note: in expansion of macro ‘defineTemplateTypeNameAndDebugWithName’
     defineTemplateTypeNameAndDebugWithName                                    \
     ^
basicSolidChemistryModel/basicSolidChemistryModels.C:72:5: note: in expansion of macro ‘makeSolidChemistryModel’
     makeSolidChemistryModel
     ^
lnInclude/makeSolidChemistryModel.H:50:9: error: ‘int Foam::solidChemistryModel<Foam::basicSolidChemistryModel, Foam::constIsoSolidTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > >::debug’ previously declared here
         sChemistryl##Comp##SThermo,                                           \
         ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/debugName.H:120:9: note: in definition of macro ‘defineDebugSwitchWithName’
     int Type::debug(::Foam::debug::debugSwitch(Name, DebugSwitch))
         ^
/home/lunitsond/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/className.H:150:5: note: in expansion of macro ‘defineTemplateDebugSwitchWithName’
     defineTemplateDebugSwitchWithName(Type, Name, DebugSwitch)
     ^
lnInclude/makeSolidChemistryModel.H:48:5: note: in expansion of macro ‘defineTemplateTypeNameAndDebugWithName’
     defineTemplateTypeNameAndDebugWithName                                    \
     ^
basicSolidChemistryModel/basicSolidChemistryModels.C:45:5: note: in expansion of macro ‘makeSolidChemistryModel’
     makeSolidChemistryModel
     ^
make: *** [Make/linux64GccDPOpt/basicSolidChemistryModels.o] Error 1
Any thoughts on what I am doing wrong here would be greatly appreciated.
LWhitson2 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
second order schemes marine OpenFOAM 67 April 11, 2022 19:19
[Other] simulation of closing the gate using moving mesh simin_ds OpenFOAM Meshing & Mesh Conversion 8 April 12, 2019 06:49
BuoyantBoussinesqPimpleFoam Modification for LES Capability simonsg OpenFOAM 11 July 20, 2017 12:31
SimpleFoam - instable simulation Specialist OpenFOAM Running, Solving & CFD 17 August 12, 2014 05:52
Divergent temperature in chtMultiRegion(Simple)Foam akrasemann OpenFOAM Running, Solving & CFD 13 March 24, 2014 03:54


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