CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   coupling of interfFoam with solidParticle library (https://www.cfd-online.com/Forums/openfoam-solving/165247-coupling-interffoam-solidparticle-library.html)

msman January 12, 2016 11:28

coupling of interfFoam with solidParticle library
 
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_)
^

kmefun January 12, 2016 12:29

1 Attachment(s)
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 January 13, 2016 05:30

Hi
 
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 January 14, 2016 17:47

interFoam solver coupled with solidParticle
 
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 (Post 580671)
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,


kmefun January 21, 2016 11:36

Hi,

In constant directory, there is a particleProperties file which defines and controls how the particle injection.

kmefun January 21, 2016 11:38

Here is the testCase file.

https://www.dropbox.com/s/k75f1robmd...ck.tar.gz?dl=0

kmefun January 21, 2016 12:02

Quote:

Originally Posted by msman (Post 580763)
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.

msman January 27, 2016 08:40

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?

lilinmin March 26, 2016 21:37

Quote:

Originally Posted by kmefun (Post 581958)

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

hojjat.m April 1, 2016 10:25

Combining all particles in a cell
 
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,

saddy July 22, 2017 07:48

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 July 29, 2017 11:51

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...

Linan October 20, 2021 21:35

Quote:

Originally Posted by kmefun (Post 581958)

this link could not opened, can you send shis case to me by email, 2801265324@qq.com , thanks a lot!!


All times are GMT -4. The time now is 17:14.