CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to add collisionModel in reactingParcelFoam?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By chpjz0391
  • 1 Post By bijan darbari

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2016, 03:39
Default How to add collisionModel in reactingParcelFoam?
  #1
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
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
marialhm and Kummi like this.
chpjz0391 is offline   Reply With Quote

Old   June 11, 2016, 09:13
Default
  #2
Member
 
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10
bijan darbari is on a distinguished road
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.
Kummi likes this.
bijan darbari is offline   Reply With Quote

Old   June 12, 2016, 21:15
Default
  #3
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by bijan darbari View Post
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.
Hi bijian,

Thank you very much. I will try.

Kind Regards.

Ping
chpjz0391 is offline   Reply With Quote

Old   June 13, 2016, 02:18
Default
  #4
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by bijan darbari View Post
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.

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
chpjz0391 is offline   Reply With Quote

Old   June 13, 2016, 03:22
Default
  #5
Member
 
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10
bijan darbari is on a distinguished road
Dear chpjz0391

Is your modified lagrangian library ( intermediate ) in Home directory??
bijan darbari is offline   Reply With Quote

Old   June 13, 2016, 04:26
Default
  #6
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by bijan darbari View Post
Dear chpjz0391

Is your modified lagrangian library ( intermediate ) in Home directory??
I know where is the problem. I forgot to define the makeReactingMultiphaseParcelCollisionModels.H
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.
chpjz0391 is offline   Reply With Quote

Old   June 21, 2016, 03:52
Default
  #7
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by bijan darbari View Post
Dear chpjz0391

Is your modified lagrangian library ( intermediate ) in Home directory??
Hi bijian,

I have solved my problem, I forget to modified the files under the parcels/derived/basicReactingParcelFoam and cloud/derived.

Cheers,

Ping
chpjz0391 is offline   Reply With Quote

Old   July 19, 2016, 11:27
Default
  #8
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16
Sylvain is on a distinguished road
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:
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.
That means that the solvers has also to be recompiled in the $FOAM_RUN directory, with the modified intermediate library, in order to be able to use the new model???

Thanks for your help

Sylvain
Sylvain is offline   Reply With Quote

Old   July 19, 2016, 14:43
Default
  #9
Member
 
Bijan Darbari
Join Date: Nov 2015
Posts: 48
Rep Power: 10
bijan darbari is on a distinguished road
Dear Sylvain

At the first, test that your new "cloudfunctionobject" have been added to your solver or not!!!

That warning was not important.

Quote:
That means that the solvers has also to be recompiled in the $FOAM_RUN directory, with the modified intermediate library, in order to be able to use the new model???
yes. do his steps:

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
Best wishes.
bijan darbari is offline   Reply With Quote

Old   July 20, 2016, 04:39
Default
  #10
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 41
Rep Power: 16
Sylvain is on a distinguished road
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 \”
but you were right in the first place, the solver didn't find my new cloud function object.

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
Sylvain is offline   Reply With Quote

Old   September 29, 2020, 14:18
Default
  #11
New Member
 
Saif Ali Khan
Join Date: Aug 2019
Posts: 5
Rep Power: 6
poseidon_CFD is on a distinguished road
Quote:
Originally Posted by chpjz0391 View Post
Hi bijian,

I have solved my problem, I forget to modified the files under the parcels/derived/basicReactingParcelFoam and cloud/derived.

Cheers,

Ping

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 is offline   Reply With Quote

Old   October 15, 2020, 02:35
Default
  #12
New Member
 
chathuranga's Avatar
 
Chathuranga Wickramasinghe
Join Date: May 2017
Posts: 1
Rep Power: 0
chathuranga is on a distinguished road
@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.
chathuranga is offline   Reply With Quote

Old   May 31, 2023, 18:15
Default
  #13
New Member
 
Nadun Palmada
Join Date: Apr 2017
Posts: 15
Rep Power: 9
Nadun19 is on a distinguished road
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.
Nadun19 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 07:44.