# Temperature BC as function of coordinate

**URL:** <https://prepomax.discourse.group/t/temperature-bc-as-function-of-coordinate/1558>\
**Category:** General Questions\
**Created:** [February 23, 2024, 1:33pm UTC](https://prepomax.discourse.group/t/temperature-bc-as-function-of-coordinate/1558 "2024-02-23T13:33:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![earlybird](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@earlybird](https://prepomax.discourse.group/u/earlybird)\
**Post date:** [February 23, 2024, 1:33pm UTC](https://prepomax.discourse.group/t/temperature-bc-as-function-of-coordinate/1558/1 "2024-02-23T13:33:09Z")

</div>

Hey Everyone,

i’m performing a steady state mechanical analysis of a cenrifugal compressor impeller.  
I want to apply a temperature distribution on the impeller. Applying temperatures on surfaces is quite time consuming on that geometry and can lead to unrealistic temperature gradients → high stresses! I was thinking of applying a 1D function (raidial → cylinder coordinates) to the impeller. Is it possible in Prepromax / Calculix?

Thanks in advance for your help  
Eric

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [February 23, 2024, 1:49pm UTC](https://prepomax.discourse.group/t/temperature-bc-as-function-of-coordinate/1558/2 "2024-02-23T13:49:09Z")

</div>

Currently, there’s no built-in tool for that. In CalculiX, you could use the utemp.f subroutine but this requires some Fortran coding skills.

Of course, there are still some workarounds like splitting the surfaces into segments and applying different temperature values, mapping the spatial distribution on the mesh using custom code or [ParaView filters](https://discourse.paraview.org/t/how-to-add-temperature-data-for-external-mesh/5387) or even running a thermal analysis to cause the desired temperature distribution for use in a subsequent mechanical simulation.
