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

coupling of interfFoam with solidParticle library

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By kmefun

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2016, 11:28
Default coupling of interfFoam with solidParticle library
  #1
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 10
msman is on a distinguished road
Hello everyone,

I am following the following tutorial

http://www.tfd.chalmers.se/~hani/kur...LPT_120911.pdf

but I am experiencing the the following error. please help me how to fix it the spc which in bold letters


solidParticleCloud.C: In member function ‘void Foam::solidParticleCloud::inject(Foam::solidPartic le::trackingData&)’:
solidParticleCloud.C:76:33: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc
label cellI=mesh_.findCell(td.spc().posP1_);
^
solidParticleCloud.C:77:51: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc’
solidParticle* ptr1= new solidParticle(*this,td.spc().posP1_,cellI,
^
solidParticleCloud.C:78:8: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc
td.spc().dP1_,td.spc().UP1_);
^
solidParticleCloud.C:78:22: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc’
td.spc().dP1_,td.spc().UP1_);
^
solidParticleCloud.C:81:27: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc’
cellI=mesh_.findCell(td.spc().posP2_);
^
solidParticleCloud.C:82:51: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc
solidParticle* ptr2= new solidParticle(*this,td.spc().posP2_,cellI,
^
solidParticleCloud.C:83:6: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc
td.spc().dP2_,td.spc().UP2_);
^
solidParticleCloud.C:83:20: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc’
td.spc().dP2_,td.spc().UP2_);
^
solidParticleCloud.C: In member function ‘void Foam::solidParticleCloud::move(const dimensionedVector&)’:
solidParticleCloud.C:108:33: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc’
if(mesh_.time().value()> td.spc().tInjStart_ &&
^
solidParticleCloud.C:109:27: error: ‘class Foam::solidParticle::trackingData’ has no member named ‘spc
mesh_.time().value()< td.spc().tInjEnd_)
^
msman is offline   Reply With Quote

Old   January 12, 2016, 12:29
Default
  #2
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Hi

There is a need to modify some parts of the code. Please see attachment which is based on OF 2.4. You can also read this thread for some helpful information. http://www.cfd-online.com/Forums/ope...-tracking.html

Good luck,
Attached Files
File Type: gz LPTVOF.tar.gz (11.7 KB, 199 views)
BlnPhoenix and yuno like this.
kmefun is offline   Reply With Quote

Old   January 13, 2016, 05:30
Default Hi
  #3
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 10
msman is on a distinguished road
Thank you for your help.

One more thing, Can I use this code for water to water multiphase? I mean they have developed this code for water to air multiphase. Is it?
msman is offline   Reply With Quote

Old   January 14, 2016, 17:47
Default interFoam solver coupled with solidParticle
  #4
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 10
msman is on a distinguished road
Hi,

The attached interFoam solver coupled with solidParticle works but without injection model. It works like the default interFoam solver without LPT. How to tackle this problem?

Quote:
Originally Posted by kmefun View Post
Hi

There is a need to modify some parts of the code. Please see attachment which is based on OF 2.4. You can also read this thread for some helpful information. http://www.cfd-online.com/Forums/ope...-tracking.html

Good luck,
msman is offline   Reply With Quote

Old   January 21, 2016, 11:36
Default
  #5
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Hi,

In constant directory, there is a particleProperties file which defines and controls how the particle injection.
kmefun is offline   Reply With Quote

Old   January 21, 2016, 11:38
Default
  #6
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Here is the testCase file.

https://www.dropbox.com/s/k75f1robmd...ck.tar.gz?dl=0
kmefun is offline   Reply With Quote

Old   January 21, 2016, 12:02
Default
  #7
Member
 
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 12
kmefun is on a distinguished road
Quote:
Originally Posted by msman View Post
Thank you for your help.

One more thing, Can I use this code for water to water multiphase? I mean they have developed this code for water to air multiphase. Is it?
Yes, you can use it for droplet/liquid multiphase. In Aurelia Vallier's code, it is designed for droplet/liquid multiphase. But I modified the code into bubble/liquid multiphase. You can restore LPTtoVOF.H file back to Aurelia Vallier's one to implement droplet/liquid multiphase.
kmefun is offline   Reply With Quote

Old   January 27, 2016, 08:40
Default
  #8
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 10
msman is on a distinguished road
Thanks for your kind help.

The properties of the closed rectangular computational domain and particles are: 24mm by 77 mm. Inlet velocity at 10 cm/s and have two outlets. Fluid: water Laminar Flow. Solid Particles are made of silica having diameter of 100nm. For me 4-way coupling is very important.

Is it a wise decision to use LPTVOF solver?
msman is offline   Reply With Quote

Old   March 26, 2016, 21:37
Smile
  #9
New Member
 
Li Linmin
Join Date: Nov 2015
Location: China
Posts: 27
Rep Power: 10
lilinmin is on a distinguished road
Quote:
Originally Posted by kmefun View Post
Dear kmefun,
I am interested in your code and I want to use the case file. I cannot open the link, can you give a new one?
Linmin
lilinmin is offline   Reply With Quote

Old   April 1, 2016, 10:25
Default Combining all particles in a cell
  #10
Member
 
HM
Join Date: Apr 2015
Posts: 30
Rep Power: 11
hojjat.m is on a distinguished road
Hi foamers,

I am using solidParticle class and I am trying to calculate the number of particles in each cell at certain times. I want to combine all of the particles in a cell. Any suggestions?

Thanks,
hojjat.m is offline   Reply With Quote

Old   July 22, 2017, 07:48
Default
  #11
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
i know this is an old thread. but the solver kaufamn provided and the test case provided are running and compiling on openfoam 2.4.0
however i am trying to simulate the collision case. however when i change the velocity direction to cause the droplets/bubbles to collide by giving velocity in +x for particle 1 and velocity in -x direction for particle 2.
but. they don't take the veloocity i have provided. they keep rising up in the y direction
no collision takes place and later lpt to vof conversion takes place which is ok
but plz tell me guys am i missing something here???
saddy is offline   Reply With Quote

Old   July 29, 2017, 11:51
Default
  #12
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
well...kaufman once again saved the day
he pointed out the fact that. viscosity of water is quite high. which is why bubbles dont show the velocity profile or path trajectory
once you decrease the drag, decrease the particle size and decrease the viscosity of water.
wolaa...you get the desired results...
saddy is offline   Reply With Quote

Old   October 20, 2021, 21:35
Default
  #13
New Member
 
Linan Guan
Join Date: Sep 2021
Posts: 1
Rep Power: 0
Linan is on a distinguished road
Quote:
Originally Posted by kmefun View Post
this link could not opened, can you send shis case to me by email, 2801265324@qq.com , thanks a lot!!
Linan 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
ERROR: unable to find library HJH CFX 6 February 26, 2019 06:52
Dispersion model for solidParticle Library ahcai007 OpenFOAM Running, Solving & CFD 2 April 25, 2017 19:12
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 07:53
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 15:49
MPCCI Code coupling library Bukhari Main CFD Forum 0 April 25, 2007 03:43


All times are GMT -4. The time now is 12:20.