new thermodynamic model
Hi all,
i am working on a new thermodynamic model based on the flamelet solver of alberto cuoci. I copied the thermodynamic src code into a new folder, called SLFMThermo and renamed everything in the code to SLFM... Okay ... after that I compiled the basicThermo and the SLFMThermo and everything worked fine. After that I removed everything and build the alberto thermodynamicm model again and it worked :) Now I added my model to the Make/files file and compiled again. As I get to the SLFMThermo I ll get the following output: Code:
SLFMThermo/SLFMThermo.C:32: error: redefinition of ‘Foam::SLFMThermo<MixtureType>::SLFMThermo(const Foam::fvMesh&)’ Can someone give me an advice? Tobi |
Hi all,
today I had a look at the thermodynamic model hRho and hsRho and its the same like I have. Well I simplyfied my c++ code so that there is just the constructor and deconstructor in the header and source files. I get the same error: Code:
SLFMThermo/SLFMThermo.C:32: error: redefinition of ‘Foam::SLFMThermo<MixtureType>::SLFMThermo(const Foam::fvMesh&)’ My source file is: Code:
\*---------------------------------------------------------------------------*/ and my header file is: Code:
*---------------------------------------------------------------------------*/ :/ Couse if I just compile my thermo model it works. with both - i get redifinitions :( |
Hi all,
I fixed the problem. I deleted all folders and did the same things again. Now I can compile everything without any errors and the solvers are working :) If the laminarFlameletSolver works good and the validation gives good results I ll share it with you! Tobi |
Dear Tobias,
Can you tell me what the generic meaning of this error is? I also have an error that reads Code:
|
Hello Tobi:
Recently, I am trying to modify the ConeInjection model to my_ConeInjection, and I put my_ConeInjection.H and my_ConeInjection.C in a folder named my_Coneinjection, which also has a Make folder consists of files and options. All of these are in $WM_PROJECT_USER_DIR/src, when I user wmake libso script to compile it, an error appears,just like:my_ConeInjection.C:139:6: error:' redefinition of void Foam::my_ConeInjection<CloudType>::setFlowType()'. It seems that all the functions in my_ConeInjection.C are redefinitioned and previously declared here. Do you know how to solve my problems? Great thanks in advance! |
Hello all,
@Sherlock, sorry I did not notice that you made a post on that thread. The first error message give you the hint that you declare the slipNormal twice. Normally due to included files. @tjucus: the first steps of doing sth like you are going to do is:
|
Hello,Tobi
I have successfully compile my new model-my_ConeInjection,and it is now in libmylagrangianIntermediate.so. To use it in a particular tutorials such as aachenBomb,I have add the line libs ("libmylagrangianIntermediate.so") in the controlDict file of the case, when I run the case,it could not find my_ConeInjection?Do you know why? Thanks a lot in advance! |
All times are GMT -4. The time now is 23:23. |