1 Attachment(s)
Dear dkxls:
Thank you for your previous replies! I think I still have to use "absoluteEnthalpy".I am new to OpenFOAM.I had a great progress by your help about my problem ,But if I would like to solve my problemcompletely, your help is necessary for me. According to your "myThermos.C",I add the following codes into "myThermos.C": Code:
makeReactionMixtureThermo Quote:
thermoType { type hePsiThermo; mixture reactingMixture; transport sutherland; thermo janaf; energy absoluteEnthalpy; equationOfState perfectGas; specie specie; },so I add the codes: Code:
makeReactionMixtureThermo Quote:
Attachment 25835 |
Quote:
I'm trying to create a thermo model that combines hConst thermodynamics with Sutherland transport for a multiComponentMixture. I edited a couple lines in the files you provided to do this, but when I try to wmake I get the following error: Quote:
Also I'm not clear how to link a solver against a new library, do you think you could give me a quick step-by-step? Thanks. -B |
Can you upload your modified version?
The error looks rather strange as a thermo shouldn't pull in any dependencies on AMI or the like. |
I posted earlier some instructions on how to include a lib in a solver (or even a case):
http://www.cfd-online.com/Forums/ope...tml#post452252 http://www.cfd-online.com/Forums/ope...tml#post451937 |
1 Attachment(s)
Quote:
|
I checked your code and it seems fine.
I also don't get any compilation error, it just compiles fine! Just to make sure: 1. You need OpenFOAM version 2.2.x 2. Compiling is done like this: Code:
cd path/to/myThermo Code:
EXE_INC = \ |
Thanks, I'm still getting the same error. The full message looks like this:
Code:
~/OpenFOAM/bschmidt-2.2.0/src/thermoPhysicalModels/myThermo$ wmake libso |
OK, sounds a bit strange. I doubt that it has something to do with the OF version (I never used 2.2.0 though, I upgraded directly from 2.0.x to a 2.2.x git version newer than 2.2.1).
Are these files (cyclicAMILduInterfaceField.H, ...) listed in your myThermos.dep file? In mine they are not, actually there is no *AMI*.H file at all in my myThermos.dep. Just to make sure: You ran 'wclean' in the 'myThermo' directory? And there is no old 'myThermos.dep' left? (You can savely remove the *.dep files, wmake will generate new ones.) Otherwise, I have no idea since I cannot reproduce your error. |
Those files are not in my dependency file, and I always run wclean before wmake. The only *AMI* files in myThermos.dep are *AMIFvPatch* files. I was trying to trace back from the error message what line of code was calling for this *AMILdu* file, but I can't find it.
Maybe you can help me with this: why does the Make/options file need to include a link to the $LIB_SRC/finiteVolume/lnInclude folder? I can't find anything in the .C file or .H file that link to anything there. Maybe that will help me find where the erroneous call to *AMILdu* is being made. |
The files you include in your lib will include themselves new dependencies and you need to tell the compiler where to find them.
Something you could try is to change the options file to match the one in the thermo library: https://github.com/OpenFOAM/OpenFOAM...o/Make/options |
Ha! That worked! I only had to include one more line in the file,
Code:
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude |
Hi dkxls,
Have you shared your code to calculate the mixture viscosity and conductivity to public. "For mixture I use the formulations due to Wilke (viscosity) and Mathur (conductivity)" If you can share the code with me, it will be very helpful. And many thanks in advance. Zhong |
All times are GMT -4. The time now is 15:29. |