CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Intelligent loop over cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2022, 09:04
Default Intelligent loop over cells
  #1
Member
 
Chris
Join Date: Dec 2020
Posts: 45
Rep Power: 6
Pyrokrates is on a distinguished road
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
Pyrokrates is offline   Reply With Quote

Reply

Tags
coordinates, looping over cells


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
[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


All times are GMT -4. The time now is 15:51.