CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   OpenFOAM construct Lagrangian Cloud with particle positions (https://www.cfd-online.com/Forums/openfoam-programming-development/244244-openfoam-construct-lagrangian-cloud-particle-positions.html)

LHeisler July 29, 2022 05:53

OpenFOAM construct Lagrangian Cloud with particle positions
 
Hello,

I would like to test my GPU based particle tracking solver. For this, I would like to construct a default lagrangian cloud with particles placed through global positions.
Now, I can get it to work with the following setup in 0 -> langrangian -> defaultCloud, in this folder are a d, positions and U file. The problem is, that the positions file only works with barycentric coordinates. I would like to place particles with global coordinates.

How do I need to call the constructor of the cloud such that it can read global positions?
Similar to the parcelInBox tutorial case, where there is a reactingCloudPositions file in the constant folder ?

Thanks in advance.

A minimal working example would be very helpful!!

Thank you!


All times are GMT -4. The time now is 10:45.