CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Defining an additional variable in CFX

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2023, 06:53
Default Defining an additional variable in CFX
  #1
New Member
 
Xavier
Join Date: Dec 2023
Posts: 3
Rep Power: 2
shearThickening is on a distinguished road
Hello everyone,
My problem originates from calculating the Nusselt number for heat transfer of the flow in a circular pipe with uniform wall heat flux. The theoretical value is different from that calculated with Nu=\frac{q D}{(Tw-Tbulk)k}.
I'm following a solution suggested in:
Convective heat transfer issues in CFX
by defining an additional variable for Tw. For some reason, which I don't know, I can't just calculate the area-average for temperature at the wall. He provide a code for Tw as
Code:
LIBRARY: 
  ADDITIONAL VARIABLE: Tw
    Boundary Only Field = On
    Option = Definition
    Tensor Type = SCALAR
    Units = [K]
    Variable Type = Unspecified
  END
END

FLOW: Flow Analysis 1
  DOMAIN: HeXe
    FLUID MODELS: 
      ADDITIONAL VARIABLE: Tw
        Additional Variable Value = T
        Option = Algebraic Equation
      END
    END
  END
END
I'm not sure how to use this code in CFX. Will appreciate any help.
shearThickening is offline   Reply With Quote

Old   December 10, 2023, 16:21
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,781
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The starting point for a calculation like this is to use areaAve(T)@Wall for the wall temperature, whatever your defined bulk temperature is for Tbulk, and the other properties as evaluated at the wall.

The thread you link to goes into a lot more detail on this and discusses things to consider to get much better accuracy. But only look at this more complex stuff if the basic stuff I just described is inadequate.

So before you look at the complex solution discussed in that thread, have you looked at a basic Nusselt number calculation? What does that say?
shearThickening likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 12, 2023, 06:25
Default
  #3
New Member
 
Xavier
Join Date: Dec 2023
Posts: 3
Rep Power: 2
shearThickening is on a distinguished road
Thanks ghorrocks for your response and sorry for the late reply. In fact, yes I'm looking for better accuracy if possible because the error is about 10% for this simple case. If the mentioned solution wouldn't reduce my error, I will accept what I am getting. But for the sake of knowledge, how can I implement this code? As a mathematician, I don't have much experience with CFD software but I had to work with it because implementing a numerical technique for a turbulent model from scratch is a waste of time.
shearThickening is offline   Reply With Quote

Old   December 12, 2023, 17:03
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,781
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The text snippet is CFX command language, CCL. In CFX-Pre you can edit the CCL directly and add the snippet into the CCL of your run.

Note that as you refine the mesh the error of the simple areaAve(T)@Wall should also reduce. So if you have refined your mesh enough to give an accurate simulation then the simple wall temeprature approach might be good enough.
shearThickening likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
cfx, nusselt number, temperature bc


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set bounds for additional variables NatpJ CFX 14 August 23, 2023 18:34
Diffusivity coefficient dependent on the additional variable 831726 CFX 9 June 25, 2018 07:25
How to define a static aditional variable in CFX cardioCFD CFX 8 January 22, 2018 04:58
Negative value of additional variable fkzstar CFX 12 July 9, 2012 18:49
Additional variable John CFX 2 October 16, 2008 05:33


All times are GMT -4. The time now is 22:11.