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

Mesh Adapt Expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2020, 20:59
Default Mesh Adapt Expression
  #1
Member
 
j
Join Date: Apr 2020
Posts: 34
Rep Power: 0
buckngnr11 is on a distinguished road
This might not be the right place to post this, but alas...I need to create an expression that allows me to refine the surface mesh on a specific wall boundary (titled "hole" in the image attached). I can do this by creating a boundary adapt marker. However, I also need an if statement to only flag cells on that boundary that are within a certain scalar range. You can make a field variable to do this, but it applies it to the entire mesh, and has no options to enforce it only on the boundary of interest. I think the only way to do this is to write an expression that basically says if both registers are satisfied. I have no idea how to write a statement to do this if it's possible. If I type in the name of my boundary expression (boundary_0), that works. But if I type boundary_) AND "field variable register name", that doesn't work. Any help as to how to accomplish this would be greatly appreciated.
Attached Images
File Type: jpg Screen Shot 2020-05-07 at 8.52.22 PM.jpg (99.8 KB, 25 views)
buckngnr11 is offline   Reply With Quote

Old   May 8, 2020, 05:10
Default And
  #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
In expressions, AND has to come before the operands. It is AND expr1 expr2 and not expr1 AND expr2. You cannot refine surface mesh because there is no surface mesh. Or may be you just stated it that way.
__________________
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
[snappyHexMesh] Snappyhex mesh: poor inlet mesh Swagga5aur OpenFOAM Meshing & Mesh Conversion 1 December 3, 2016 16:59
Star CCM Overset Mesh Error (Rotating Turbine) thezack Siemens 7 October 12, 2016 11:14
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 07:05
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
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 07:12.