|
[Sponsors] |
How to access the value from previous node (cell) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 24, 2020, 09:17 |
How to access the value from previous node (cell)
|
#1 | |
Senior Member
|
Hello Foamers,
Here is my code sample below. Quote:
Kindly someone suggest me how to access the value of K_[cellI] and T_[cellI] from previous node alone (not from all neighboring nodes). Thank you |
||
July 27, 2020, 12:00 |
Boundary and Internal cells
|
#2 | |
Senior Member
|
Hello Foamers,
The discussion is about calculation of QBK here highlighted in blue. The image in the attachment gives clear overview. In the image, 2 cells are pictured with both cells possess its own cell centered node points. In cell 1, the calculation of QBK requires values of K_ and T_ from boundary cell (from wall) and in cell 2, the QBK calculation requires values of K_ and T_ from previous cell 1 (internal cells) and calculation prolongs among internal cells. Below I have code written to extract values from boundary and internal cells. Code for boundary cell needed just for the calculation in NODE 1 alone, whereas code for internal cell prolongs inside the main domain for other NODES (from NODE 2 - till end). How to adopt the phenomenon separately for boundary and internal cells based on QBK value? Quote:
Thank you Last edited by Kummi; July 27, 2020 at 14:15. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Node and cell in cell centred system | lucamirtanini | Main CFD Forum | 20 | November 24, 2018 07:36 |
interFoam running blowing up | sandy13 | OpenFOAM Running, Solving & CFD | 2 | May 5, 2015 08:16 |
How to access previous time | waku2005 | OpenFOAM Programming & Development | 3 | December 16, 2014 20:06 |
How to access the Cell numbers OpenFOAM framework? | pradeepramesh | OpenFOAM Programming & Development | 8 | August 25, 2014 23:32 |
Journal file error | magicalmarshmallow | FLUENT | 3 | April 4, 2014 13:25 |