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

Obtain boundary face values for a cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2021, 06:47
Default Obtain boundary face values for a cell
  #1
New Member
 
qntldoql
Join Date: Sep 2020
Posts: 15
Rep Power: 6
qntldoql is on a distinguished road
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).
qntldoql is offline   Reply With Quote

Old   July 16, 2021, 16:47
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote

Old   July 16, 2021, 17:05
Default
  #3
New Member
 
qntldoql
Join Date: Sep 2020
Posts: 15
Rep Power: 6
qntldoql is on a distinguished road
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)
qntldoql is offline   Reply With Quote

Reply


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


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