|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
im going to implement a function in icoLagrangianFoam, and i use basicKinematicCloud, i want to delete a particle from specific zone in computational domain. for now i can return access to particle and mark it, but i dont know how to remove it.
deleteParticle or move functions are a part of Cloud class, i can not understand how i can access to Cloud.H from basicKinematicCloud object?
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#2 | ||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
i continue this post, it can be achieve with following piece of code:
Quote:
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|||
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
the problem solved
![]()
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
sina
Join Date: Jul 2013
Posts: 21
Rep Power: 13 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
following syntax:
Code:
typedef typename Foam::KinematicParcel<Foam::particle> parcelType ; forAllIter( basicNewKinematicCloud , kinematicCloud, iter) { parcelType& p = iter(); //paticle kinematicCloud.deleteParticle(p); }
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Wenjie Yang
Join Date: Jul 2019
Posts: 2
Rep Power: 0 ![]() |
hi, could you please tell me where you write those codes?
|
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,268
Blog Entries: 1
Rep Power: 25 ![]() |
you can add it to your Lagrangian solver and recompile the solver
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
![]() |
![]() |
![]() |
Tags |
basickinematiccloud, particle |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for particle interception with pt_termination fortran routine | abcdefgh | CFX | 6 | October 6, 2019 14:30 |
Remove particle in solidParticleFoam | shchepan | OpenFOAM Programming & Development | 8 | April 16, 2014 18:29 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 02:30 |
forced to sticking of soot particle | kmgraju | CFX | 0 | November 27, 2012 10:08 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |