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

Error occurs when I set the Opening Temperature using an expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2016, 03:48
Default Error occurs when I set the Opening Temperature using an expression
  #1
New Member
 
Tony
Join Date: Mar 2016
Posts: 24
Rep Power: 10
doublestrong is on a distinguished road
Hi, everyone,
I chose "Opening" as boundary type of the outlet of a compressor diffuser. For the section of "Heat Transfer", I chose "Opening Temperature" and want it to change with Mach number and pressure at the outlet. So I fill an expression in the blank of "Opening Temperature".(see option.jpg)

The expression named tTotalNext is shown below (see expression.jpg):
(massFlowAve(Total Temperature )@Diffuser Outlet)*(pOutNext /(massFlowAve(Total Pressure )@Diffuser Outlet))^(2/7)

Then an error immediately occurs after starting the run (see error.jpg).
A paragraph in the report:
Error processing expression 'Opening Temperature'.
The expression is invalid because:
Mach Number is not available for use in this term
Total Pressure is not available for use in this term
Total Temperature is not available for use in this term
mOld is not available for use in this term
pOld is not available for use in this term
Error processing expression: Opening Temperature = tTotalNext
+--------------------------------------------------------------------+
| An error has occurred in cfx5solve: |
| |
| Z:\Program Files (x86)\ANSYS |
| Inc\v161\CFX\bin\winnt-amd64\ccl2flow.exe was interrupted by |
| signal QUIT (3) |
+--------------------------------------------------------------------+
This run of the ANSYS CFX Solver has finished.

It looks like CFX cannot get Mach number, Total Pressure etc. to calculate this expression. But the initial solution must already have those info. I just start learning CFX.

Why this error happens and can anyone tell me other ways to set opening temperature as an equation? Thanks in advance.
Attached Images
File Type: jpg error.JPG (22.7 KB, 13 views)
File Type: jpg expression.JPG (18.7 KB, 13 views)
File Type: jpg option.JPG (52.5 KB, 16 views)
doublestrong is offline   Reply With Quote

Old   April 1, 2016, 06:06
Default
  #2
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 15
monkey1 is on a distinguished road
Hmm
not sure if it helps, but I think I had a similar problem. Wanted to use "Absolute Pressure" and the solver crashed saying the variable is not available.
Speaking with the support revealed I had to use "p" instead of "Absolute Pressure".
A List of variables available is to be found in the reference guide of the documentation.
There you will find for example that "Total Temperature" is represented by a variable named "Ttot"
Chapter is named "Variables in Ansys CFX". Chapter number seems to be different depending on the Ansys Version. In Ansys 17 it is Chapter 16 of the Reference Guide.
Maybe this might help.
monkey1 is offline   Reply With Quote

Old   April 1, 2016, 06:45
Default
  #3
New Member
 
Tony
Join Date: Mar 2016
Posts: 24
Rep Power: 10
doublestrong is on a distinguished road
Thanks for your reply.
I substituted Total Temperature and Total Pressure with Ttot and ptot respectively. The solver crashed again. However, it's the first time I know Total Temperature can be written as Ttot. Thank you.

Here is the message from report:
Error processing expression 'Opening Temperature'.
The expression is invalid because:
Mach Number is not available for use in this term
Ttot is not available for use in this term
mOld is not available for use in this term
pOld is not available for use in this term
ptot is not available for use in this term
doublestrong is offline   Reply With Quote

Old   April 1, 2016, 07:03
Default
  #4
New Member
 
Tony
Join Date: Mar 2016
Posts: 24
Rep Power: 10
doublestrong is on a distinguished road
I find a thread (http://www.cfd-online.com/Forums/cfx...ple-solve.html) suggesting to modify RULES file. I got that file in CFX/etc/. I looked for the descriptions about Relative Pressure, which must can be imposed by expression, and Opening Temperature.
PARAMETER: Relative Pressure
Parameter Type = Real
Quantity Type = Pressure
Dependency List = ANY
Profile Variables List = p,Pressure, ptot,Total Pressure, \
ptotstn,Total Pressure in Stn Frame
Solver Name = PRES
Dynamic Reread Item = Yes
END


PARAMETER: Opening Temperature
Parameter Type = Real
Solver Name = TTOT
Quantity Type = Temperature
Dependency List = XYZT,rNoDim,aitern,citern,atstep,ctstep, \
acplgstep,cstagger,T
Profile Variables List = T, Temperature
Lower Bound = 0 [K]
Dynamic Reread Item = Yes
END

Now I don't know what is the proper way to modify the description of Opening Temperature. And can I update Opening Temperature by other ways like Fortran?
doublestrong is offline   Reply With Quote

Old   April 1, 2016, 07:16
Default
  #5
New Member
 
Tony
Join Date: Mar 2016
Posts: 24
Rep Power: 10
doublestrong is on a distinguished road
I add ANY in the Denpendency List of Opening Temperature. Then it works. Is there any risk doing this? It seems to remove all the restrictions for Opening Temperature.

PARAMETER: Opening Temperature
Parameter Type = Real
Solver Name = TTOT
Quantity Type = Temperature
Dependency List = ANY,XYZT,rNoDim,aitern,citern,atstep,ctstep, \
acplgstep,cstagger,T
Profile Variables List = T, Temperature
Lower Bound = 0 [K]
Dynamic Reread Item = Yes
END
doublestrong is offline   Reply With Quote

Old   April 1, 2016, 08:10
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
Is there any risk doing this?
Sure is. Modifying the RULES file is a really bad idea in most cases. The restrictions are put on things for a reason. I strongly recommend you do not modify the RULES file.

Have you looked at the documentation monkey suggested? For instance it also says the name for Mach Number is "Mach". But there other restrictions as well - some variables are restricted by which variables they can be a function of. I think this is actually the problem you are seeing - you cannot make the total temp at an opening a function of the variables it lists. If you kludge the RULES file to allow you to do this you will just make the solver unstable and the run will crash.... that is why the restriction is there in the first place.
ghorrocks is offline   Reply With Quote

Old   April 1, 2016, 08:30
Default
  #7
New Member
 
Tony
Join Date: Mar 2016
Posts: 24
Rep Power: 10
doublestrong is on a distinguished road
Thank you, Glenn.
Yes, I had looked at the documentation. To make the trial simple, I just abbreviated total pressure and total temperature. ptot and toto still appeared in the message describing error.
Yes, I agree with you that my modification makes the restriction too slack. In case of any bad results from the case after modifying RULES file, I am also conducting a case with a constant and educated-guess opening temperature on another computer meanwhile.
doublestrong is offline   Reply With Quote

Reply

Tags
boundary condition, compressor diffuser cfx, expression, opening temperature


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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
set wall temperature Reunion STAR-CCM+ 7 January 29, 2012 07:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


All times are GMT -4. The time now is 15:55.