CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

snappyHexMeshDict - user defined variables

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2021, 07:39
Default snappyHexMeshDict - user defined variables
  #1
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
how do you specify user defined variables in snappyHexMeshDict?

eg...
minLevel = 4
maxLevel = 6

then...
baseline
{
level ($minLevel $maxLevel);
}
ufocfd is offline   Reply With Quote

Old   June 14, 2021, 04:25
Default
  #2
Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 98
Rep Power: 13
ufocfd is on a distinguished road
its actually quite easy...

// levels are specified below in feature edge refinement,
// surface based refinement, and region based refinement.
minLev 4;
maxLev 6;

geometry
{
level ($minLev $maxLev);
}
ufocfd is offline   Reply With Quote

Reply

Tags
openfoam, snappyhexmesh


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
User defined time step - Possible to put variable time stepping in it? maccheese Fluent UDF and Scheme Programming 19 June 4, 2018 09:49
User defined heat source redwanamit034 STAR-CCM+ 2 April 6, 2018 10:00
[General] Paraview User defined view prapanj ParaView 3 January 3, 2014 20:54
user defined turbulence model manuutin STAR-CD 5 October 14, 2009 05:29
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 18:18


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