|
[Sponsors] |
May 31, 2022, 09:04 |
Intelligent loop over cells
|
#1 |
Member
Chris
Join Date: Dec 2020
Posts: 45
Rep Power: 6 |
Hey,
I would like to solve some iterative equations on my cell centers (if there is no "good" way, faces would be ok too). The problem is, for iteration step n+1 in cell i, I need the value of n+1 from cell i-1. What I mean is, I do not only calculate iterative, I also need the value of my upstream previous cell to get the result in the next downstream cell. To do this, I need some intelligent looping where I first calculate the cells at my inlet (z=0), than the next "plane" (e.g. z=0.1), and so on... What makes it much more hard is, that the mesh in unstructured. Does anybody know, if there is a way to loop over all cells by coordinates e.g.? Than I could loop over x,y (parallel to main flow direction) and than over z until I reach the outlet. Thanks in advance. Chris |
|
Tags |
coordinates, looping over cells |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh sticking point | natty_king | OpenFOAM Meshing & Mesh Conversion | 11 | February 20, 2024 10:12 |
problem with parallel calculations OF8 mpirun | otaolafr | OpenFOAM Programming & Development | 0 | January 5, 2021 08:33 |
cellZone not taking all the cells inside | rahulksoni | OpenFOAM | 0 | January 16, 2019 02:16 |
snappyhexmesh remove blockmesh geometry | philipp1 | OpenFOAM Running, Solving & CFD | 2 | December 12, 2014 11:58 |
[snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |