|
[Sponsors] |
July 16, 2013, 20:13 |
Defining custom Cp library under 2.2.x
|
#1 |
Member
Chris
Join Date: Aug 2012
Location: Calgary, Alberta, Canada
Posts: 77
Rep Power: 13 |
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 ); 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 ... 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] |
|
|
|
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 |