|
[Sponsors] |
May 19, 2011, 18:28 |
Patch a temp profile
|
#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 |
|
January 14, 2012, 06:28 |
|
#2 |
New Member
RABETAB
Join Date: Oct 2010
Posts: 3
Rep Power: 16 |
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
|
|
January 14, 2012, 22:07 |
|
#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:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 03:34 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |