|
[Sponsors] |
How to add collisionModel in reactingParcelFoam? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 10, 2016, 03:39 |
How to add collisionModel in reactingParcelFoam?
|
#1 |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
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 |
|
June 11, 2016, 09:13 |
|
#2 |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10 |
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. |
|
June 12, 2016, 21:15 |
|
#3 | |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
Quote:
Thank you very much. I will try. Kind Regards. Ping |
||
June 13, 2016, 02:18 |
|
#4 | |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
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 |
||
June 13, 2016, 03:22 |
|
#5 |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10 |
Dear chpjz0391
Is your modified lagrangian library ( intermediate ) in Home directory?? |
|
June 13, 2016, 04:26 |
|
#6 | |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
Quote:
under parcels/derived/basicReactingMultiphaseParcel. But after I defined that, I got another error. show in the picture. JZ1K`CBE{LVLEBVG_HVP@A5.jpg I have no idea what is going on. Last edited by chpjz0391; June 13, 2016 at 21:28. |
||
June 21, 2016, 03:52 |
|
#7 |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
||
July 19, 2016, 11:27 |
|
#8 | |
Member
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16 |
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 |
||
July 19, 2016, 14:43 |
|
#9 | |
Member
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10 |
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” - create your modified solver - open “solverfolder/make/options” - replace “-llagrangianIntermediate \” by “-L$(FOAM_USER_LIBBIN)-lmylagrangianIntermediate \” - replace “-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \” by “-I$(WM_PROJECT_USER_DIR)/myintermediate/lnInclude \” - compile your modified solver |
||
July 20, 2016, 04:39 |
|
#10 |
Member
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16 |
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 \” - replace “-I$(LIB_SRC)/lagrangian/intermediate/lnInclude \” by “-I$(WM_PROJECT_USER_DIR)/myintermediate/lnInclude \” 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 |
|
September 29, 2020, 14:18 |
|
#11 | |
New Member
Saif Ali Khan
Join Date: Aug 2019
Posts: 5
Rep Power: 6 |
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? |
||
October 15, 2020, 02:35 |
|
#12 |
New Member
Chathuranga Wickramasinghe
Join Date: May 2017
Posts: 1
Rep Power: 0 |
@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. |
|
May 31, 2023, 18:15 |
|
#13 |
New Member
Nadun Palmada
Join Date: Apr 2017
Posts: 15
Rep Power: 9 |
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 11:04 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 05:38 |
[PyFoam] and paraview | eelcovv | OpenFOAM Community Contributions | 28 | May 30, 2016 09:23 |
add two area around Cylinder in ansys | sajjadcheraghian | CFX | 1 | May 24, 2016 01:23 |
How to add X and Y forces at a point | cgusty01 | SU2 | 4 | February 18, 2015 13:17 |