CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Spatially varying wall temperature (https://www.cfd-online.com/Forums/openfoam/214534-spatially-varying-wall-temperature.html)

daily February 4, 2019 16:01

Spatially varying wall temperature
 
I need to run a channel flow simulation where the wall temperature varies along the length of the channel. I suppose I could chop up the wall into short segments and impose different temperature on each segment, although that doesn't seem every satisfactory. Anyone have an easier solution? What would be nice is to be able to provide a spline or other fit to the whole wall without changing the mesh.

RobertHB February 6, 2019 04:30

There seems to be the possibility of reading data from a file for the fixedValue BC
Code:

  inlet
  {
      type        uniformFixedValue;
      uniformValue
      {
          type            tableFile;
          file            "dataTable.txt";
      }
  }

Link: https://cfd.direct/openfoam/user-guide/v6-boundaries/


But i've never tried it.

gkarlsen February 6, 2019 08:06

AFAIK uniformFixedValue deals with variation over time, not spatial variation? I think groovyBC would be good for what you are trying do do. More specifically the pos().x, pos().y and pos().z functions.

http://openfoamwiki.net/index.php/Contrib/groovyBC


All times are GMT -4. The time now is 13:41.