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

coupling of interfFoam with solidParticle library

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 12, 2016, 12:28
Default coupling of interfFoam with solidParticle library
  #1
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 3
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, 13:29
Default
  #2
Member
 
Kaufman
Join Date: Jul 2013
Posts: 52
Rep Power: 5
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, 19 views)
kmefun is offline   Reply With Quote

Old   January 13, 2016, 06:30
Default Hi
  #3
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 3
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, 18:47
Default interFoam solver coupled with solidParticle
  #4
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 3
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, 12:36
Default
  #5
Member
 
Kaufman
Join Date: Jul 2013
Posts: 52
Rep Power: 5
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, 12:38
Default
  #6
Member
 
Kaufman
Join Date: Jul 2013
Posts: 52
Rep Power: 5
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, 13:02
Default
  #7
Member
 
Kaufman
Join Date: Jul 2013
Posts: 52
Rep Power: 5
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, 09:40
Default
  #8
New Member
 
Muhammad Usman
Join Date: Nov 2015
Location: Germay
Posts: 15
Rep Power: 3
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, 22:37
Smile
  #9
New Member
 
Li Linmin
Join Date: Nov 2015
Location: China
Posts: 24
Rep Power: 3
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: 3
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

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dispersion model for solidParticle Library ahcai007 OpenFOAM Running, Solving & CFD 1 January 14, 2016 21:14
ERROR: unable to find library HJH CFX 5 September 22, 2015 03:55
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 08: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 11:14.