|
[Sponsors] |
different initial velocities for released particles in space |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 20, 2022, 22:04 |
different initial velocities for released particles in space
|
#1 |
New Member
George XU
Join Date: Dec 2009
Posts: 9
Rep Power: 16 |
HI FOAMers,
For lagrangian particle tracking, the current practice is to set constant initial velocities for all particles released in space. The setting is defined for U0 in the file 'constant/kinematicCloudProperties'. In my test case, the initial velocities are supposed to be varied in space, dependent on the locations. Could you please kindly share your tricks or tips how to define various initial particle velocities? FYI, I am using OF v2012. Thanks for your help and sharing. |
|
March 21, 2022, 15:13 |
|
#2 |
Member
Utkan Caliskan
Join Date: Aug 2014
Posts: 42
Rep Power: 11 |
Depending on which Injection Model you use, you can make a specific code modification in the source code to inject particles with different velocities. For example, in PatchInjection.C, velocities are initialized in function setProperties.
this->owner() gives you access to the cloud. this->owner().mesh() will give you the access to the mesh. parcel.position() will give you the parcel position. You can also access the particle's cell ID by parcel.cell(), and so on. Then you can create a velocity distribution as a function of space. |
|
April 17, 2022, 08:26 |
|
#3 |
New Member
rqli
Join Date: Apr 2022
Posts: 2
Rep Power: 0 |
hello
I want to set the initial velocity of particles as the local velocity of flow field, using interpolation method, but I am not familiar with its source code, could you explain how to do it in detail, or do you have any examples that can be uploaded |
|
January 3, 2024, 02:49 |
|
#4 |
New Member
mingyu jin
Join Date: Nov 2022
Posts: 3
Rep Power: 3 |
hello,please tell me if you solved the problem
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free surface issues with interDyMFoam for hydroturbine | oumnion | OpenFOAM Running, Solving & CFD | 0 | October 6, 2017 14:05 |
chtMultiRegionSimpleFoam turbulent case | Aditya Patil | OpenFOAM Running, Solving & CFD | 6 | April 24, 2017 22:13 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 05:24 |
Error while running rhoPisoFoam.. | nileshjrane | OpenFOAM Running, Solving & CFD | 8 | August 26, 2010 12:50 |