CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   -   Field Function Question. Need help writing it :((( (https://www.cfd-online.com/Forums/cd-adapco/96990-field-function-question-need-help-writing.html)

 kj878 February 6, 2012 17:44

Field Function Question. Need help writing it :(((

:confused:

So I'm fairly knew to StarCCM and I need to set up my initial wall temperature such that it decreases as it goes along the length. I believe i need to write a field function for this but unfortunately I have zero experience in writing programs/codes and I have no idea how to write field function formula for my problem.

Wont someone be kind enough to help me write a field function?:D

My problem statement is a fluid flowing through a pipe, length say 1m and the temperature of the wall varies through the length.

From L=0 to L=.5 I need my wall temp to be at 150C. From L=.5 to L=.75, the wall temp needs to drop from 150C to 70C, linearly. Similarly, from L=.75 to L=1m, the wall temp needs to drop from 70C to 35C, linearly as well.