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

How to write an expression in CFD-POST

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2020, 00:41
Default How to write an expression in CFD-POST
  #1
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
How to write an expression in CFD-POST?
the down is the errors.
Attached Images
File Type: png ERROR.png (46.4 KB, 229 views)
hitzhwan is offline   Reply With Quote

Old   April 17, 2020, 03:56
Default Expression
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Your expression is correct. The problem most likely is with the name; CFDPost is case-sensitive. Wall and wall are different.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 17, 2020, 13:13
Default Thanks, but I do not understand your meaning. You mean I should use "Wall" but not "
  #3
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Your expression is correct. The problem most likely is with the name; CFDPost is case-sensitive. Wall and wall are different.

Thanks, but I do not understand your meaning. You mean I should use "Wall" but not " wall", but this is now written by me, but just use the right click to get it. Additionally , what is PM?
hitzhwan is offline   Reply With Quote

Old   April 17, 2020, 13:18
Default Wall
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
The error is Temperature. CFDPost uses only T and not Temperature.

PM implies private message within cfd-online.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 17, 2020, 13:29
Default No, it is not the problem, the Temperature is just the list of variable in the CFDPOS
  #5
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
The error is Temperature. CFDPost uses only T and not Temperature.

PM implies private message within cfd-online.
No, it is not the problem, the Temperature is just the list of variable in the CFDPOST, both T and Temperature is Ok. Because I tried it successfully. The most problem I think it the 300[K], why the K is italic?
hitzhwan is offline   Reply With Quote

Old   April 17, 2020, 13:36
Default Unit
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Units are always italic.

Click on More... when it shows the error. See it shows something useful though I doubt that.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 17, 2020, 13:37
Default Space
  #7
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
It appears you do not have a space between 300 and [K]. Space is must.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 17, 2020, 13:43
Default But what is the reason? Can you try it by yourself?
  #8
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
It appears you do not have a space between 300 and [K]. Space is must.
But what is the reason? Can you try it by yourself?
hitzhwan is offline   Reply With Quote

Old   April 17, 2020, 14:01
Default Expression
  #9
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
It works perfectly at my end, with T as well as with Temperature. With or without space. So, the only remaining portion is boundary name. Check it against the names it shows in the Tree in Outline Tab.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 19, 2020, 20:37
Default Yes , you are right. It cannot be defined as wall name, when it changes ,it works. Th
  #10
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
It works perfectly at my end, with T as well as with Temperature. With or without space. So, the only remaining portion is boundary name. Check it against the names it shows in the Tree in Outline Tab.
Yes , you are right. It cannot be defined as wall name, when it changes ,it works. Thanks .I have a another question, why I can not find the static pressure in the CFD post, I only can use the pressure variable. Why?
Attached Images
File Type: png error.png (21.2 KB, 33 views)
hitzhwan is offline   Reply With Quote

Old   April 19, 2020, 20:46
Default What's more, the static temperature also can not find.
  #11
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
Yes , you are right. It cannot be defined as wall name, when it changes ,it works. Thanks .I have a another question, why I can not find the static pressure in the CFD post, I only can use the pressure variable. Why?
What's more, the static temperature also can not find.
Attached Images
File Type: png error2.png (12.5 KB, 21 views)
hitzhwan is offline   Reply With Quote

Old   April 20, 2020, 06:12
Default Variable Names
  #12
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
The names of the variables are defined to ensure that there is no ambiguity. For static values, just the regular names are enough. So, static temperature is just Temperature and static pressure is just Pressure. For total or absolute, Total or Absolute are used as first word.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 20, 2020, 12:57
Default I find that the total temperature is equal to static temperature for the imcompressib
  #13
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
The names of the variables are defined to ensure that there is no ambiguity. For static values, just the regular names are enough. So, static temperature is just Temperature and static pressure is just Pressure. For total or absolute, Total or Absolute are used as first word.
I find that the total temperature is equal to static temperature for the imcompressible flow. But the total pressure is not equal to the static pressure. The total pressure should add the dynamic pressure.
Attached Images
File Type: png fluent pressure.png (11.8 KB, 22 views)
hitzhwan is offline   Reply With Quote

Old   April 20, 2020, 14:12
Default Total values
  #14
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Both, total temperature and total pressure, are functions of velocity and have got nothing to do with compressibility. Both are equal to their static counterparts only when the velocity is 0. Otherwise, total values are always sum of static and dynamic values.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 21, 2020, 10:41
Default But I cannot find the total pressure or total temperature in the CFD POST
  #15
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Both, total temperature and total pressure, are functions of velocity and have got nothing to do with compressibility. Both are equal to their static counterparts only when the velocity is 0. Otherwise, total values are always sum of static and dynamic values.
But I cannot find the total pressure or total temperature in the CFD POST
hitzhwan is offline   Reply With Quote

Old   April 21, 2020, 10:44
Default Variables
  #16
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Total Pressure and Total Temperature are always there. Variables are listed alphabetically in CFDPost.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 21, 2020, 22:47
Default As you can see, we can not see the total pressure or total temperature in the list, I
  #17
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Total Pressure and Total Temperature are always there. Variables are listed alphabetically in CFDPost.
As you can see, we can not see the total pressure or total temperature in the list, I also search in the other option, it also does not have. Moreover, we cannot find the phase fraction ,too. Do you know why?
Attached Images
File Type: png variables in cfdpost.png (58.1 KB, 23 views)
File Type: png variables in cfdpost2.png (39.4 KB, 24 views)
hitzhwan is offline   Reply With Quote

Old   April 22, 2020, 05:26
Default Total Values
  #18
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Since total values are velocity dependent, those are specific to each phase, i.e., total pressure for Phase 1 is different from that for Phase 2. All these would be available under Phases. Same is true for phase (volume) fraction.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 22, 2020, 12:05
Default You see, in the phase interface, we can not see those variables. Why?
  #19
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Since total values are velocity dependent, those are specific to each phase, i.e., total pressure for Phase 1 is different from that for Phase 2. All these would be available under Phases. Same is true for phase (volume) fraction.
You see, in the phase interface, we can not see those variables. Why?
Attached Images
File Type: png CFDpost phase.png (12.1 KB, 15 views)
hitzhwan is offline   Reply With Quote

Old   April 22, 2020, 12:11
Default Total Values
  #20
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
It appears that you are using either VOF or Mixture model. That implies there is single set of Navier-Stokes equation. In this case, there would be single velocity field, hence, single total pressure and total temperature. So, ignore my previous post. About the unavailability of total values, it is strange. However, it is possible that you wrote selected variables. If you loaded Fluent data file, then total values should be there. However, you can just create total values yourself using expressions.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply


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
CFD Post Expression creation jasonbot CFX 2 July 15, 2015 07:21
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 07:16
CEL mathematical functions in CFD Post Jonathan CFX 9 November 5, 2012 09:37
Poly lines in CFD Post ashtonJ CFX 0 December 2, 2010 03:46
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25


All times are GMT -4. The time now is 01:56.