|
[Sponsors] |
July 16, 2021, 06:47 |
Obtain boundary face values for a cell
|
#1 |
New Member
qntldoql
Join Date: Sep 2020
Posts: 15
Rep Power: 6 |
I have read the UDF manual multiple times and also searched the forum, but could not find a solution.
For a 2D domain (rectangular), for each cell inside the domain (away from the walls) I want to obtain the temperature of the bottom wall at their corresponding cell x-location. Is there a way to do this? What I have currently done is to save the first-layer cell centroid temperature values and the temperature gradients to calculate the wall temperatures. (But for each cell, to obtain appropriate wall temperature, it would have to iterate through all the saved values of wall temperature to obtain correct x-location, thus very time consuming). |
|
July 16, 2021, 16:47 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Probably not, because Fluent does not know the concept "bottom face", Fluent can work with unstructured meshes, so you have to tell Fluent which walls are bottom, and you can only do that by looping through all of them at least once.
And this smells like a XY question. You are asking X, but actually your goal is Y. Why do you want to see the temperature at the bottom boundary of each cell? What do you want to do with that information?
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
July 16, 2021, 17:05 |
|
#3 |
New Member
qntldoql
Join Date: Sep 2020
Posts: 15
Rep Power: 6 |
My apologies, probably I wasn't very clear in the description.
Essentially I would want to obtain the temperature at the bottom wall of the domain (not of each cell) at the corresponding x-location of each cell. Its for a frost model with a criteria depending on the value of the cold plate (bottom wall) inside a channel. So when calculating the mass transfer rate (from define_mass_trasnfer) for a cell, it needs a wall/plate temperature at its x-location on the wall. (Its not a fixed temperature plate and the temperature varies along the plate) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition: check all cell values normal to the face of patch | agustinvo | OpenFOAM Programming & Development | 3 | May 1, 2021 07:00 |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |