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

Defining custom Cp library under 2.2.x

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 16, 2013, 20:13
Default Defining custom Cp library under 2.2.x
  #1
Member
 
Chris
Join Date: Aug 2012
Location: Calgary, Alberta, Canada
Posts: 77
Rep Power: 13
ChrisA is on a distinguished road
I'm trying to update my code to run with 2.2.x and part of doing this involves porting over our Cp and viscosity libraries. Prior to this, declaring a new library for the various thermotypes involved adding the thermotype to the list of thermotypes in the *thermos.C files (like psiThermos.C). For example:

Code:
makeThermo
(
    psiThermo,
    hePsiThermo,
    pureMixture,
    sutherlandTransport,
    sensibleEnthalpy,
    myJanafThermo,
    perfectGas,
    specie
);
This seems to not be sufficient in the new version. With the new ThemoType definitions there seems to be an additional place to declare the new library name.... what leads me to believe this is at runtime my code gives the following error:

Code:
Unknown psiThermo type 
thermoType
{
    type            hePsiThermo;
    mixture         pureMixture;
    transport       sutherland;
    thermo          myJanaf;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleEnthalpy;
}


Valid psiThermo types are:

type            mixture                    transport   thermo      equationOfState  specie            energy    
...
hePsiThermo     pureMixture                sutherland  janaf       perfectGas       specie            sensibleInternalEnergy  
hePsiThermo     pureMixture                sutherland  perfectGas  specie           sensibleEnthalpy                          
hePsiThermo     reactingMixture            const       hConst      perfectGas       specie            sensibleEnthalpy  
...
You'll notice that the place where "myJanaf" should appear as a valid choice is blank shoving all the columns over to the side. I interpret this as the runtime selection table is reading the thermotypes from psiThermos.C and picking out the valid thermotypes but when it gets to "myJanafThermo" it can't recognize it and it skips over it.

Does anyone know where this magic happens? Or what I'm missing? I've spent far more time than any one person should trying to find this and I can't imagine I'm alone in having this issue.

Also related is that upon execution the code spews the following:

Code:
Duplicate entry irreversibleArrheniusReaction in runtime selection table Reaction
#0    /opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam5error14safePrintStackERSo+0x25) [0x7ffd89369cd5]
#1    /home/carisman/OpenFOAM/carisman-2.2.0/platforms/linux64GccDPOpt/lib/libRCBFV2.0Specie.so(+0x148e9c) [0x7ffd8acd3e9c]
#2    /lib64/ld-linux-x86-64.so.2(+0xf306) [0x7ffd8dac6306]
#3    /lib64/ld-linux-x86-64.so.2(+0xf3df) [0x7ffd8dac63df]
#4    /lib64/ld-linux-x86-64.so.2(+0x16ea) [0x7ffd8dab86ea]
Duplicate entry irreversibleArrheniusReaction in runtime selection table Reaction
#0    /opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam5error14safePrintStackERSo+0x25) [0x7ffd89369cd5]
#1    /home/carisman/OpenFOAM/carisman-2.2.0/platforms/linux64GccDPOpt/lib/libRCBFV2.0Specie.so(+0x14fc88) [0x7ffd8acdac88]
#2    /lib64/ld-linux-x86-64.so.2(+0xf306) [0x7ffd8dac6306]
#3    /lib64/ld-linux-x86-64.so.2(+0xf3df) [0x7ffd8dac63df]
#4    /lib64/ld-linux-x86-64.so.2(+0x16ea) [0x7ffd8dab86ea]
Duplicate entry reversibleArrheniusReaction in runtime selection table Reaction
#0    /opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam5error14safePrintStackERSo+0x25) [0x7ffd89369cd5]
#1    /home/carisman/OpenFOAM/carisman-2.2.0/platforms/linux64GccDPOpt/lib/libRCBFV2.0Specie.so(+0x14fc34) [0x7ffd8acdac34]
#2    /lib64/ld-linux-x86-64.so.2(+0xf306) [0x7ffd8dac6306]
#3    /lib64/ld-linux-x86-64.so.2(+0xf3df) [0x7ffd8dac63df]
#4    /lib64/ld-linux-x86-64.so.2(+0x16ea) [0x7ffd8dab86ea]
for what appears to be all of the runTime selection tables... or something, I don't completely understand whats going on there but it started happening as I added my thermotype so I imagine (hope) both issues resolve themselves together as soon as I find the piece of the puzzle I'm missing.
mgg likes this.
ChrisA is offline   Reply With Quote

 


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
[Other] Multi species mass transport library [update] novyno OpenFOAM Community Contributions 111 November 9, 2021 23:37
flow solver won't recognize custom library hakonbar OpenFOAM Programming & Development 2 April 7, 2014 08:09
Compiled library vs. inInclude Files, DSMC solver crashes after run GPesch OpenFOAM Programming & Development 8 April 18, 2013 07:17
defining custom convetive terms CFD user CFX 1 February 22, 2009 22:40
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 15:49


All times are GMT -4. The time now is 14:06.