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

different initial velocities for released particles in space

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2022, 22:04
Default different initial velocities for released particles in space
  #1
New Member
 
George XU
Join Date: Dec 2009
Posts: 9
Rep Power: 16
gxuxg is on a distinguished road
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.
gxuxg is offline   Reply With Quote

Old   March 21, 2022, 15:13
Default
  #2
Member
 
Utkan Caliskan
Join Date: Aug 2014
Posts: 42
Rep Power: 11
dscian is on a distinguished road
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.
dscian is offline   Reply With Quote

Old   April 17, 2022, 08:26
Default
  #3
New Member
 
rqli
Join Date: Apr 2022
Posts: 2
Rep Power: 0
rqli_npu is on a distinguished road
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
rqli_npu is offline   Reply With Quote

Old   January 3, 2024, 02:49
Default
  #4
New Member
 
mingyu jin
Join Date: Nov 2022
Posts: 3
Rep Power: 3
jinmingyu is on a distinguished road
Quote:
Originally Posted by rqli_npu View Post
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
hello,please tell me if you solved the problem
jinmingyu 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
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


All times are GMT -4. The time now is 21:26.