CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] gmsh - mesh set by Field Threshold does not increase in size as expected

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2018, 05:31
Default gmsh - mesh set by Field Threshold does not increase in size as expected
  #1
Member
 
Adam
Join Date: Nov 2018
Posts: 36
Rep Power: 7
Adam_K is on a distinguished road
I would like to have a higher mesh density in/around some cylinders that are dispersed within a matrix. When I only have one cylinder present, the results are as expected; the element sizes increase away from the cylinder. However, when multiple cylinders are present, this is not the case.

Code:
R = 10;
LC = 50;

Field[1] = Distance;
Field[1].NNodesByEdge =40;
Field[1].EdgesList = {CircleIndex[]};

Field[2] = Threshold;
Field[2].IField = 1;
Field[2].LcMin = R/5;
Field[2].LcMax = LC;
Field[2].DistMin = 2*R;
Field[2].DistMax = 5*R;

Background Field = 2;
Adam_K is offline   Reply With Quote

Old   November 11, 2018, 23:40
Default nevermind
  #2
Member
 
Adam
Join Date: Nov 2018
Posts: 36
Rep Power: 7
Adam_K is on a distinguished road
I figured it out.

Options > Mesh > Advanced

Uncheck "Extend element sizes from boundary"
Adam_K 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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 10:56


All times are GMT -4. The time now is 22:42.