CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

KinematicCloud - inject particles each and every second.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By amuzeshi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2018, 09:56
Default KinematicCloud - inject particles each and every second.
  #1
New Member
 
SSA
Join Date: Dec 2017
Posts: 16
Rep Power: 8
senthilathiban is on a distinguished road
Hi all,

I am trying to study the movement of particles inside a wind tunnel. My kinematicCloudProperties looks as follows.

Code:
injectionModels
    {
	model1
	{
            type             manualInjection;
            positionsFile   "kinematicCloudPositions";
            duration         1000;
	    parcelsPerSecond 100;
            massTotal        0;
            parcelBasisType  fixed;
            flowRateProfile  constant 1;
            nParticle        10;
            SOI              1;
            U0               (0 0 0);

            sizeDistribution
            {
                type        fixedValue;
                fixedValueDistribution
                {
                    value   0.0000025;
                }
            }
        }
    }
But during simulation, the particles are released only once during the start of the simulation. I want the particles to be inserted continuously each and every second of the simulation.

What should I change in the code.

Can anyone please help.
senthilathiban is offline   Reply With Quote

Old   August 22, 2018, 17:26
Default
  #2
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by senthilathiban View Post
Hi all,

I am trying to study the movement of particles inside a wind tunnel. My kinematicCloudProperties looks as follows.

Code:
injectionModels
    {
    model1
    {
            type             manualInjection;
            positionsFile   "kinematicCloudPositions";
            duration         1000;
        parcelsPerSecond 100;
            massTotal        0;
            parcelBasisType  fixed;
            flowRateProfile  constant 1;
            nParticle        10;
            SOI              1;
            U0               (0 0 0);

            sizeDistribution
            {
                type        fixedValue;
                fixedValueDistribution
                {
                    value   0.0000025;
                }
            }
        }
    }
But during simulation, the particles are released only once during the start of the simulation. I want the particles to be inserted continuously each and every second of the simulation.

What should I change in the code.

Can anyone please help.

Hi
I myself, prefer kinematicLookupTableInjection instead of manualInjection.
It handles what u want; It also needs one more file named parcelInjectionProperties in constant directory that comes in the following.
The following files are my setting for 8 injectors aligned in z direction:



kinematicCloudProperties:
Code:
injectionModels
 {
model1
{
massFlowRate        .0001;
type kinematicLookupTableInjection; massTotal 0; parcelBasisType fixed; nParticle 1; SOI .25; inputFile "parcelInjectionProperties"; duration .25; parcelsPerSecond 1000; randomise on; } }




parcelInjectionProperties (mDot entry is of no importance.) :

Code:
                         
FoamFile
{
version 2.0; format ascii; class dictionary; location "constant"; object scalarListList; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // (x y z) (u v w) d(diameter) rho(particle) mDot ( ( 0 0 0.003125 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // 1 ( 0 0 0.009375 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // 2 ( 0 0 0.015625 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // 3 ( 0 0 0.021875 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // 4 ( 0 0 0.028125 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // 5 ( 0 0 0.034375 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // 6 ( 0 0 0.040625 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // 7 ( 0 0 0.046875 ) ( 0 0 0 ) 1.75E-005 2526 1.00E-007 // );
regards
Ali
senthilathiban likes this.
amuzeshi is offline   Reply With Quote

Old   August 28, 2018, 06:10
Default
  #3
New Member
 
SSA
Join Date: Dec 2017
Posts: 16
Rep Power: 8
senthilathiban is on a distinguished road
Hi Ali, I have used this kinematic lookup table and the problem now is, the simulation suddenly stops and shows no error.

the last line in the terminal is

''solving kinematic cloud''

and there is no error, it doesn't stop. it's just stuck at this point.

do you have any idea, why this happens.

thanks,
Senthil.
senthilathiban is offline   Reply With Quote

Old   December 7, 2019, 04:09
Default
  #4
New Member
 
Join Date: Sep 2019
Posts: 14
Rep Power: 6
johanning is on a distinguished road
senthilathiban do you habe a solution for your problem? because I have now the same problem and no idea.
johanning is offline   Reply With Quote

Old   December 7, 2019, 06:04
Default
  #5
New Member
 
SSA
Join Date: Dec 2017
Posts: 16
Rep Power: 8
senthilathiban is on a distinguished road
There were problems when you run in parallel with openfoam 4. The kinematiccloud was not able to transfer data within processors.

I upgraded to openfoam 5 and then it worked fine.
senthilathiban is offline   Reply With Quote

Old   December 10, 2019, 15:29
Default
  #6
New Member
 
Join Date: Sep 2019
Posts: 14
Rep Power: 6
johanning is on a distinguished road
okay that's sounds easy. I try to do the same but there is no positive result. First when I used the patch injection the simulation worked. Now I'm using kinematicLookUpTableInjection and I have the problem. Maybe someone has an idea?
johanning 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



All times are GMT -4. The time now is 06:41.