How to add collisionModel in reactingParcelFoam?
Hi Foamers,
I am quite new to OF, now I am trying to add particle collisionModel in reactingParcelFoam? But I am poor in C++. Could someone give me some suggestion or tutorials about how to achieve this? Thanks Ping |
Dear chpjz0391
Read this report,the author described how to add submodels: http://www.tfd.chalmers.se/~hani/kur...man-Arshad.pdf http://www.tfd.chalmers.se/~hani/kur.../movies.tar.gz but remember that you must addressed your modified lagrangian/intermediate library in your solver/Make/Options. else your solver didn't find it you can't use your new submodel. |
Quote:
Thank you very much. I will try. Kind Regards. Ping |
Quote:
Hi bijian, Sorry to disturb you again. I have followed that report, but it did not work.Below is my step: 1. I copied CollisionModel folder from src/lagrangian/intermediate/submodels/Kinematic to src/lagrangian/intermediate/submodels/ReactingMultiphase 2. I copied makeParcelCollisionModels.H to makeReactingMultiParcelCollisionModels.H under src/lagrangian/intermediate/parcels/include 3. I changed "makeParcelCollisionModel_H" to "makeReactingMultilParcelCollisionModel_H" in the new makeReactingMultiParcelCollisionModels.H 4. wclean and wmake libso 5. I added collisionModel under reactingCloud1Properties in constant When I run the case, it doest work. I mean the collision submodel was still not available. Can you give me some suggestions? King Regards, Ping |
Dear chpjz0391
Is your modified lagrangian library ( intermediate ) in Home directory?? |
1 Attachment(s)
Quote:
under parcels/derived/basicReactingMultiphaseParcel. But after I defined that, I got another error. show in the picture. Attachment 48213 I have no idea what is going on. |
Quote:
I have solved my problem, I forget to modified the files under the parcels/derived/basicReactingParcelFoam and cloud/derived. Cheers, Ping |
Hi Bijan
I tried to use the methodology described in the report to adda new CloudFunction Object. So i recompiled the whole intermediate library inside my $FOAM_RUN directory. But when I run the solver it says that the functions are defined twice. when you says: Quote:
Thanks for your help Sylvain |
Dear Sylvain
At the first, test that your new "cloudfunctionobject" have been added to your solver or not!!! That warning was not important. Quote:
Code:
- rename “intermediate” to “myintermediate” |
Thank you so much Bijan
actually it was those two lines i didn't know how to write Code:
- replace “-llagrangianIntermediate \” by “-L$(FOAM_USER_LIBBIN)-lmylagrangianIntermediate \” I don't know what is wrong as i have declared it in the makeParcelCloudFunctionObjects.H What I don't understand is that we have know two intermediate libraries side by side with two different list of cloudfunctionobject. is it the fact that i compiled my new solver with my new library which guarantees that he using my new library? Best regards Sylvain |
Quote:
Hello I am facing the exact same error right now as the picture you posted before this message. Can you please tell how did you resolve the issue? |
@poseidon_CFD
As I understand, you have to modify parcels/derived/basicReactingMultiphaseParcel and that of cloud/derived/ since the error massage questions about the parcel type. |
Has anyone managed to successfully add collisions to reacting parcels on a later version of OpenFOAM (5+). If so could you please provide the source code for the modified lagrangian library.
|
All times are GMT -4. The time now is 03:33. |