|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Aaron
Join Date: May 2011
Posts: 6
Rep Power: 15 ![]() |
I am trying to patch a linear temperature profile going from 300K at the bottom of my domain to 325K at the top. Does anyone have any ideas on how to do this. The domain is 0.4 meters high so a function for the temperature would look like
T=300+(25/0.4)*y where y is the distance measured from the bottom. In the custom field functions area I can't find anyway to reference position. And the patch tool doesn't seem to be able to access user defined functions. Any ideas? Thanks |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
RABETAB
Join Date: Oct 2010
Posts: 3
Rep Power: 15 ![]() |
well, I had also similar problem in the past. But I read this post <http://www.cfd-online.com/Forums/fluent-udf/75232-define-profile-inlet_temperature-udf.html> and I could figure out my problem. I hope it helps
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 ![]() |
The thing you're looking for is Mesh-->Cell Y Position. There's something like that under custom field functions -- trust me. I don't have Fluent right now, but you can reference the geometric coordinate of a cell. Then, of course, you would need to change your function to be (y-0.4), or whatever the defined Y-coordinate of the bottom of your geometry is (it doesn't have to be 0).
ComputerGuy Quote:
|
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 04:04 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 04:38 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 02:34 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 08:19 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 05:12 |