|
[Sponsors] |
April 20, 2013, 09:43 |
CFX Expression Language help
|
#1 |
Senior Member
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 15 |
Hi,
There is a well known condensation heat transfer coefficient formulated by Nusselt (you might be familiar with it): The subscripts and denote the liquid and gas phases, and the following symbols have their meanings: is the heat transfer coefficient. is the thermal conductivity. is the gravitational constant. is the density. is the enthalpy of vaporisation from liquid to gas phases. is the characteristic dimension. is the viscosity. is the steam temperature. is the wall temperature. Now inputting this into CFX at a boundary is dead easy in principle. You just enter it in at a boundary as a heat transfer coefficient (as a CEL expression) and select the steam temperature as the outside temperature. However the problem I am having is the symbols are functions of the steam temperature. Let's say for one simulation my steam temperature is 400K. Then my density at the liquid phase is 937 kg/m^3 and at the gas phase is 1.37 kg/m^3. Now I can enter each value for each property myself (density, viscosity, thermal conductivity etc) for my steam temperature of 400K. However I don't want to do this if I change my steam value from 400K to 500K 600K etc. In CFX Expression Language, is there a way of telling CFX that I want viscosity, density etc as a function of some temperature that I specify? I've read the CFX Reference Guide on CEL (CFX Expression Language) and it isn't very clear how this can be achieved. Thank you for your help! |
|
April 20, 2013, 10:45 |
|
#2 |
Senior Member
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 20 |
Unless am missing something, it's pretty easy.
1) Create expression for temperature, say FluidTemp. 2) Create expressions for density and a viscosity as a function of temperature, say FluidDensity=f(FluidTemp) 3) In the definition of your materials, use "expressions" to specify density and viscosity instead of the actual value with units. 4) Create Workbench parameter for FluidTemp Once you change the value from say 400K to 800K, the density and viscosity values, since they are parameterised, should change according to your function. OJ |
|
April 20, 2013, 13:07 |
|
#3 |
Senior Member
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 15 |
OJ, I am using IAPWS water so the thermophysical properties are a function of temperature and pressure.
What I am referring to in my original post is making the thermophysical properties in the heat transfer coefficient a function of some known temperature. |
|
April 21, 2013, 08:46 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,845
Rep Power: 144 |
You will have to define a function for this. It could be a CEL expression or 1D interpolation function or user fortran.
For the CEL expression you could put the IAPWS equations (simplified a bit as they are the full equations aer iterative if I remember correctly) or a simplified approximation. For a 1D interpolation function you could just map out the property against temperature and use that as a 1D interpolation function. For a user fortran routine you could use the full IAPWS equations in their full iterative glory, but of course you will have to code it. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem About Running Fluent In Linux | mitra | FLUENT | 18 | June 20, 2019 03:11 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
Importing solutions in CFX. | Alphonso | CFX | 1 | August 1, 2008 15:01 |
cfx expression variables | Manoj Kumar | CFX | 2 | February 16, 2006 11:03 |
CFX 4.4 installation problem | Pandu Sattvika | CFX | 1 | December 1, 2001 05:07 |