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 22, 2020, 12:20
Default I use the VOF model and workbench to calculate, I think it may be because that the so
  #21
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 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.
I use the VOF model and workbench to calculate, I think it may be because that the solution did not finish calculation. If it finished, it will show in it.
Thank you ,do you know how to delete a surface that have been formed in the Design Model, I try everytime, but it does not work.Snipaste_2020-04-22_10-15-18.png
Attached Images
File Type: png Snipaste_2020-04-22_10-54-31.png (18.6 KB, 2 views)
hitzhwan is offline   Reply With Quote

Old   April 22, 2020, 14:17
Default Surface Delete
  #22
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
You cannot delete a surface or any other feature if it is being used by some other entity. You have to first delete the entity that is based on this surface and then you can delete this surface. E.g., if any volume is cut using this surface, you have to remove that cut before you can delete the surface. But you can suppress it easily.
__________________
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 23, 2020, 17:32
Default Thanks, I got it. I have another question, do you have met the phenomena that the sta
  #23
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
You cannot delete a surface or any other feature if it is being used by some other entity. You have to first delete the entity that is based on this surface and then you can delete this surface. E.g., if any volume is cut using this surface, you have to remove that cut before you can delete the surface. But you can suppress it easily.
Thanks, I got it. I have another question, do you have met the phenomena that the static pressure in the calculation domain is not continuous, do you think it is reasonable? But the relative difference is not very big? Do you we can neglect the thing?
hitzhwan is offline   Reply With Quote

Old   April 24, 2020, 04:55
Default Continuity
  #24
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
What do you mean by static pressure not being continuous?
__________________
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 24, 2020, 12:23
Default You see the static pressure in the picture, it has obviously discontinuity,do you th
  #25
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
What do you mean by static pressure not being continuous?
You see the static pressure in the picture, it has obviously discontinuity,do you think it is reasonable?

Last edited by hitzhwan; April 25, 2020 at 00:12.
hitzhwan is offline   Reply With Quote

Old   April 24, 2020, 12:36
Default Discontinuity
  #26
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
That's not discontinuity; its just the scale that you are using. Change the scale and you will observe something else.
__________________
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 24, 2020, 13:33
Default I change it, but it also has the same phenomenon
  #27
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
That's not discontinuity; its just the scale that you are using. Change the scale and you will observe something else.
I change it, but it also has the same phenomenon

Last edited by hitzhwan; April 25, 2020 at 00:12.
hitzhwan is offline   Reply With Quote

Old   April 24, 2020, 13:51
Default Pressure
  #28
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
Static pressure, in case of VOF and mixture, even total pressure should be continuous. However, it appears that you have discontinuity. How do the volume fraction contours look?
__________________
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 25, 2020, 00:14
Default Yes ,you are right, it is continuous by changing the scale. Do you know how to show t
  #29
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Static pressure, in case of VOF and mixture, even total pressure should be continuous. However, it appears that you have discontinuity. How do the volume fraction contours look?
Yes ,you are right, it is continuous by changing the scale. Do you know how to show the worst quality mesh position in the Ansys mesh? And how to improve it ?
hitzhwan is offline   Reply With Quote

Old   April 26, 2020, 16:51
Default Quality
  #30
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
Meshing tool shows a histogram below the graphics window when a quality criterion is selected under the Mesh. You can click on Control in the histogram, then define the limits of the criterion, such as, 0.96 - 1.0 for skewness, and then click on Update for number of cells. Then close the control and let the histogram display again. Now click on any bar in the histogram and you can see the cells that have bad cells. You can click on the bar(s) even without changing the limits but if you have many bad cells then it will show a huge number of cells in graphics.
__________________
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 27, 2020, 23:04
Default Yes, I can find it now, but how can I improve it,does there have any function to impr
  #31
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Meshing tool shows a histogram below the graphics window when a quality criterion is selected under the Mesh. You can click on Control in the histogram, then define the limits of the criterion, such as, 0.96 - 1.0 for skewness, and then click on Update for number of cells. Then close the control and let the histogram display again. Now click on any bar in the histogram and you can see the cells that have bad cells. You can click on the bar(s) even without changing the limits but if you have many bad cells then it will show a huge number of cells in graphics.


Yes, I can find it now, but how can I improve it,does there have any function to improve it? Secondly, do you think there need any layers for the laminar flow?
hitzhwan is offline   Reply With Quote

Old   April 28, 2020, 12:50
Default Mesh Improvement
  #32
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
There are hard and fast rules for mesh improvement. You learn it with practice. For laminar flow, you may not require a very fine mesh near the boundary because the gradients are lower than those in turbulent flows.
__________________
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 29, 2020, 13:09
Default But when I refinement a mesh, I find it do not reach a steady state, what is the rea
  #33
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
There are hard and fast rules for mesh improvement. You learn it with practice. For laminar flow, you may not require a very fine mesh near the boundary because the gradients are lower than those in turbulent flows.
But when I refinement a mesh, I find it do not reach a steady state, what is the reason? I do not agree with you, if the mesh is not fine, the film will broke down, and if I do not give the boundary layer, it enhanced.
hitzhwan is offline   Reply With Quote

Old   April 29, 2020, 13:29
Default Film Thickness
  #34
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
A pre-requisite of using VOF is that the mesh should be much smaller than the interfacial length scale. So, yes, the mesh has to be fine enough to resolve the interface but that is not defined using y^+. Though y^+ can be defined for both, laminar and turbulent, flows, it is not available as a field variable in Fluent when laminar flow is solved. The reason for that is the velocity profile in laminar flow. So, to resolve velocity boundary layer, you do not need a fine mesh or inflation or boundary layer. However, if you have a thin film of a fluid, then you have to resolve it but the reason and scales 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 29, 2020, 17:51
Default Yes, you are right,we can not get the y+ in the laminar flow of fluent, so how can w
  #35
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
A pre-requisite of using VOF is that the mesh should be much smaller than the interfacial length scale. So, yes, the mesh has to be fine enough to resolve the interface but that is not defined using y^+. Though y^+ can be defined for both, laminar and turbulent, flows, it is not available as a field variable in Fluent when laminar flow is solved. The reason for that is the velocity profile in laminar flow. So, to resolve velocity boundary layer, you do not need a fine mesh or inflation or boundary layer. However, if you have a thin film of a fluid, then you have to resolve it but the reason and scales are different.


Yes, you are right,we can not get the y+ in the laminar flow of fluent, so how can we decide the first mesh size of our model. Additionally, as see in the figure, I can see the min orthogonal quality is 0.456, but I cannot find it by clicking the bar in the bottom. I only can find the orthogonal quality=0.55 elements. You see , I want to improve these, but I do not know how?
Attached Images
File Type: jpg Snipaste_2020-04-29_15-41-19.jpg (97.5 KB, 6 views)
File Type: jpg Snipaste_2020-04-29_15-41-43.jpg (97.8 KB, 2 views)
File Type: jpg all.jpg (160.2 KB, 3 views)
hitzhwan is offline   Reply With Quote

Old   April 30, 2020, 06:01
Default Mesh Quality
  #36
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 orthogonal quality is already good enough. No need to improve it nor will it help. But do check for skewness; it appears that skewness is high. But if the maximum is below 0.96, then that is alright as well.
__________________
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 30, 2020, 10:22
Default Yes, the maximum skewness is below 0.96,but I cannot accept it, can we improve manu
  #37
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 orthogonal quality is already good enough. No need to improve it nor will it help. But do check for skewness; it appears that skewness is high. But if the maximum is below 0.96, then that is alright as well.
Yes, the maximum skewness is below 0.96,but I cannot accept it, can we improve manually?
hitzhwan is offline   Reply With Quote

Old   April 30, 2020, 10:31
Default Mesh Quality
  #38
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
Whether it can be improved or not depends on the geometric model. But you won't get any difference in results even if you bring it down from 0.96 to 0.94 or 0.92 until and unless it is brought down to 0.5. Even going to 0.5 may not show much improvement in results.
__________________
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 30, 2020, 10:37
Default What is reason? Do you mean the mesh quality has no such high influence on the result
  #39
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Whether it can be improved or not depends on the geometric model. But you won't get any difference in results even if you bring it down from 0.96 to 0.94 or 0.92 until and unless it is brought down to 0.5. Even going to 0.5 may not show much improvement in results.
What is reason? Do you mean the mesh quality has no such high influence on the results? There are only few elements are bad, why can not improve it?
Attached Images
File Type: jpg Snipaste_2020-04-30_08-25-23.jpg (149.6 KB, 2 views)
hitzhwan is offline   Reply With Quote

Old   April 30, 2020, 10:41
Default Mesh Quality
  #40
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 quality of the mesh is certainly important, however, once the quality is above a certain threshold, further improvements do not change the results significantly.
__________________
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 23:22.