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, 08:39
Default snappyHexMeshDict - user defined variables
  #1
Senior Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 102
Rep Power: 14
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, 05:25
Default
  #2
Senior Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 102
Rep Power: 14
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 10:49
User defined heat source redwanamit034 STAR-CCM+ 2 April 6, 2018 11:00
[General] Paraview User defined view prapanj ParaView 3 January 3, 2014 21:54
user defined turbulence model manuutin STAR-CD 5 October 14, 2009 06:29
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 19:18


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