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

Fluent VOF Dynamic Mesh Adaptation problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2020, 11:53
Default Fluent VOF Dynamic Mesh Adaptation problem
  #1
Senior Member
 
karachun's Avatar
 
Join Date: Nov 2015
Posts: 244
Rep Power: 11
karachun is on a distinguished road
Hello to everyone!
I have 2D test problem. I have rectangular domain with thin channel attached and pressure outlet at the end of it. Domain is filled with water by 50%. I use VOF model and ignore surface tension, flow assumed to be laminar. I apply fixed gravity in vertical direction and variable acceleration in horizontal direction. I managed to solve model with out mesh adaptation.
Now I want to add dynamic mesh adaptation to refine mesh near free surface, that rapidly change during time. Something similar to this video.
https://www.youtube.com/watch?v=AiDFNevhJ98
I want to adapt cells near free surface and coarse cells far from free surface.
I have created two Expressions to determine free surface condition
Free_Surface: AND(Volumefraction>0.4,Volumefraction<0.6)
Far_Away_From_Free_Surface: OR(Volumefraction<=0.4,Volumefraction>=0.6)
I run tool Adapt/Refine and use setting as showed on picture. When I press Adapt or Display I get error
Error: Expression evaluation failed
Error Object: #f
Look like I`m doing something wrong but I can not find error. My expressions look OK for me, they return Boolean values and cover all range of VolumeFraction without overlaps.
I have attached my .cas and.dat files in archive. My Ansys version is 2019R3.
Thanks in advance!
Attached Images
File Type: png Domain.PNG (17.3 KB, 31 views)
File Type: png VolumeFraction.PNG (10.5 KB, 28 views)
File Type: png Expression.PNG (17.7 KB, 45 views)
File Type: png Adapt_Refine_Window.PNG (17.5 KB, 45 views)
Attached Files
File Type: zip box_2D_Outlet_Coarse.zip (174.4 KB, 4 views)
karachun is offline   Reply With Quote

Old   April 6, 2020, 06:01
Default Expression
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
The error is rather clear. The expression is incomplete. Since volume fraction could be of any of the phases, you also need to specify the phase in the expression.
__________________
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 6, 2020, 12:49
Default
  #3
Senior Member
 
karachun's Avatar
 
Join Date: Nov 2015
Posts: 244
Rep Power: 11
karachun is on a distinguished road
Oh, I suppose that Volumefraction represent Secondary Phase VFraction, but this can word only in two phase flow. Thank you for reply.


But now I have searched Fluent Users Guide and don’t find examples of Volumefraction variable syntax. I try Volumefraction_water or Volumefraction(water) but Expression Editor don’t recognize these variables. Here water is name of secondary phase.


Can you prompt me where to search syntax example or how proper variable syntax look like?
karachun is offline   Reply With Quote

Old   April 6, 2020, 13:46
Default Expressions
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Fluent expressions are defined in a more formal manner. You have to specify phase="water" within the expression.
__________________
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 6, 2020, 16:06
Default
  #5
Senior Member
 
karachun's Avatar
 
Join Date: Nov 2015
Posts: 244
Rep Power: 11
karachun is on a distinguished road
Now all working, thank you!
https://imgur.com/a/T6ZnY63

BTW I have found paragraph in User Guide about context specification.
Attached Images
File Type: png 1.PNG (42.9 KB, 34 views)
File Type: png 2.PNG (26.9 KB, 30 views)
karachun is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Interesting problem: Parallel Processor VOF Fluent + Dynamic Mesh + System Coupling spaceprop FLUENT 5 September 2, 2014 09:43
spring-based dynamic mesh problem uhhaha2157 FLUENT 0 January 1, 2014 07:38
Problem with Dynamic Mesh in Ansys Fluent 14.5 alireza_b FLUENT 2 May 10, 2013 08:20
keeping resolution of mesh in Dynamic mesh + Q about posprocessing the problem M.Sc_Student FLUENT 3 April 10, 2011 12:10
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 09:18.