Search adjacent cells and assign
Hello, my dears.
I want to loop over all the cell in the computational domain, search the four or eight neighbor cells and assign at each timestep. It can be implemented in Fluent via the macros of c_face_loop and C_F0. How about on OpenFOAM? |
Neighbour cells can be accessed via cellCells(). So off the top of my head it would be something like :
Code:
forAll(mesh.C(), celli) //outer, all cell loop Caelan |
reply to Caelan
Dear Caelan,
Appreciate for your relpy! Your reply help me learn more on OpenFOAM. I will try the method on my program and share the result with you. Best wishes! |
All times are GMT -4. The time now is 16:33. |