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

Particle tracking and AMI patches error for parallel processing

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By lxufeishi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2023, 13:04
Default Particle tracking and AMI patches error for parallel processing
  #1
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
Hi everyone,

I am using icoUncoupledKinematicParcelFoam in OpenFoam 2.206 for tracking of particles. I am using simple method for parallel processing to run the simulations on 6 cores. When I am using decomposePar on my PC, everything is fine and simulations are run, but when I take the simulations to run on HPC with the same setting as that on pc, I get this error although it is being decomposed on 1 node with the same 6 cores using simple method:

--> FOAM FATAL ERROR: (openfoam-2206 patch=221104)
[5] Particle tracking across AMI patches is only currently supported for cases where the AMI patches reside on a single processor.

Does anyone have some ideas why this happens?
Thank you so much all.
Mahdi_Kh is offline   Reply With Quote

Old   February 21, 2023, 02:55
Default Particle tracking with AMI patches
  #2
New Member
 
Join Date: Jul 2019
Location: MARS
Posts: 9
Rep Power: 6
lxufeishi is on a distinguished road
As shown in the error message, the AMI patches should be distributed to the same processor in parallel running. We can use "singleProcessorFaceSets" constraint for this:

1. Use topoSet to assemble the AMI patches (often in pairs) to FaceSets.
Code:
actions
(
    {
        name    AMI_faceSets1;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name "(AMI-interface1-2|AMI-interface2-1)";
        }
)
2. Add the "singleProcessorFaceSets" constraint in the decomposeParDict:
Code:
singleProcessorFaceSets 
(
        (AMI_faceSets1 -1)
);
3. decomposePar and run in parallel.

For more details, check the attached test case, especially the decomposePar_annotated file. The case is run with OpenFOAM-2112 but is compatible for OpenFOAM-7. An example of the results:
Attached Images
File Type: png amiParticalTracking.png (17.0 KB, 31 views)
Attached Files
File Type: zip amiParticalTracking.zip (111.2 KB, 35 views)
Aramisss and yujia111 like this.

Last edited by lxufeishi; February 21, 2023 at 21:08.
lxufeishi is offline   Reply With Quote

Old   March 2, 2023, 19:16
Default
  #3
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
Thank you so much for your detailed and exact description of the solution lxufeishi!!

It is interesting that you use icouncoupled with pimplefoam. I thought it is only for when you have the velocity field. I need actually for an unsteady solution. Can I use the same functions you have for my own problem?

Thank you,
Mahdi.
Mahdi_Kh is offline   Reply With Quote

Old   March 2, 2023, 21:30
Default
  #4
New Member
 
Join Date: Jul 2019
Location: MARS
Posts: 9
Rep Power: 6
lxufeishi is on a distinguished road
Quote:
Originally Posted by Mahdi_Kh View Post
It is interesting that you use icouncoupled with pimplefoam. I thought it is only for when you have the velocity field. I need actually for an unsteady solution. Can I use the same functions you have for my own problem?
Yes, the function can run with the transient solvers so the particle will be driven by the unsteady velocity field.
lxufeishi is offline   Reply With Quote

Old   March 3, 2023, 02:27
Default
  #5
New Member
 
Mahdi
Join Date: May 2016
Posts: 22
Rep Power: 9
Mahdi_Kh is on a distinguished road
Hi lxufeishi,
Thank you for your reply again. Can you please explain a bit what changes you have made in the solver to run it with pimpleFoam? Can the solver you have developed be used for any transient case? or it is case-specific?

Thank you.
Mahdi_Kh is offline   Reply With Quote

Old   March 3, 2023, 02:56
Default
  #6
New Member
 
Join Date: Jul 2019
Location: MARS
Posts: 9
Rep Power: 6
lxufeishi is on a distinguished road
Quote:
Originally Posted by Mahdi_Kh View Post
Can you please explain a bit what changes you have made in the solver to run it with pimpleFoam? Can the solver you have developed be used for any transient case? or it is case-specific?
Actually, I didn't make any change to the solvers but just add a "icoUncoupledKinematicCloud" type function in the controlDict. If you set your case properly (e.g. kinematicCloudProperties), then you can run your solver (steady or transient) together with the lagrangian particle tracking function. It is a built-in feature of OpenFOAM.

You may find the following tutorial helpful.
https://www.cemf.ir/residence-time-d...ticle-tracing/

Cheers,
lxufeishi 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
particle tracking and moving meshes cristobal OpenFOAM Running, Solving & CFD 2 October 29, 2021 10:58
Lagrangian particle tracking cannot be run in parallel for the cases with AMI patches Armin.Sh OpenFOAM Running, Solving & CFD 7 March 28, 2021 22:33
AMI dynamic mesh and Lagrangian Particle Clouds lr103476 OpenFOAM Running, Solving & CFD 9 February 28, 2018 09:35
Streamlines and AMI patches johannesk OpenFOAM Post-Processing 5 March 24, 2016 04:13
Lagrangain tracking with sliding mesh with AMI patches jiejie OpenFOAM Running, Solving & CFD 0 March 6, 2012 23:59


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