Difference between revisions of "BlockMesh"

From OpenFOAMWiki
(Graphical User Interfaces for visualizing and designing {{tt|blockMeshDict}})
(27 intermediate revisions by 9 users not shown)
Line 1: Line 1:
Trick:
+
__FORCETOC__
  
1. use the -blockTopology argument to dump out a blockTopology.obj file.
+
= Introduction =
 +
<tt>blockMesh</tt> is one of the most basic mesh generators in OpenFOAM. It relies on a single dictionary file <tt>blockMeshDict</tt>, usually placed inside the folder <tt>constant/polyMesh</tt>. The latest official documentation on how to use <tt>blockMesh</tt> can be found on the OpenFOAM User Guide and online at the OpenFOAM Foundation website at this page: [http://www.openfoam.org/docs/user/blockMesh.php 5.3 blockMesh]
  
2. the vertex numbering in this file is consistent with that of the vertices in the blockMeshDict
+
{{VersionInfo}} {{version1.0}} {{version1.1}} {{version1.2}} {{version1.3}} {{version1.4}} {{version1.5}} {{version1.6}} {{version1.7}} {{version2.0}} {{version2.1}} {{version2.2}} {{version2.3}} {{version1.4-dev}} {{version1.5-dev}} {{version1.6-ext}} {{version3.0-ext}}
  
3. visualize in javaview or with 'objToVTK blockTopology.obj blockTopology.vtk' in Paraview.
+
Feel free to contribute to this page!
<div id="aflknwerkamfs" style="overflow:auto;height:4px;">[http://weblogs.bnn.nl/fake-gucci-handbag-360/ fake gucci handbag] [http://weblogs.bnn.nl/fake-louis-vuitton-handbag-803/ fake louis vuitton handbag] [http://weblogs.bnn.nl/fake-designer-handbag-637/ fake designer handbag] [http://weblogs.bnn.nl/dooney-bourke-imitation-handbag-576/ dooney bourke imitation handbag] [http://weblogs.bnn.nl/designer-imitation-replica-handbag-687/ designer imitation replica handbag] [http://weblogs.bnn.nl/designer-handbag-imitation-purse-443/ designer handbag imitation purse] [http://weblogs.bnn.nl/chanel-handbag-imitation-635/ chanel handbag imitation] [http://weblogs.bnn.nl/imitation-handbag-980/ imitation handbag] [http://weblogs.bnn.nl/bag-dior-gaucho-replica-898/ bag dior gaucho replica] [http://weblogs.bnn.nl/replica-prada-messenger-bag-324/ replica prada messenger bag] [http://weblogs.bnn.nl/louis-vuitton-replica-hand-bag-722/ louis vuitton replica hand bag] [http://weblogs.bnn.nl/gucci-messenger-bag-replica-847/ gucci messenger bag replica] [http://weblogs.bnn.nl/louis-vuitton-replica-bag-wholesale-449/ louis vuitton replica bag wholesale] [http://weblogs.bnn.nl/replica-coach-diaper-bag-624/ replica coach diaper bag] [http://weblogs.bnn.nl/bag-bangkok-designer-in-made-replica-464/ bag bangkok designer in made replica] [http://weblogs.bnn.nl/replica-louis-vuitton-diaper-bag-731/ replica louis vuitton diaper bag] [http://weblogs.bnn.nl/chloe-replica-bag-799/ chloe replica bag] [http://weblogs.bnn.nl/fendi-replica-bag-285/ fendi replica bag] [http://weblogs.bnn.nl/louis-vuitton-replica-bag-810/ louis vuitton replica bag] [http://weblogs.bnn.nl/replica-handbag-wholesaler-780/ replica handbag wholesaler] [http://weblogs.bnn.nl/designer-kate-spade-replica-handbag-956/ designer kate spade replica handbag] [http://weblogs.bnn.nl/replica-designer-handbag-chanel-578/ replica designer handbag chanel] [http://weblogs.bnn.nl/manufacturer-of-replica-handbag-666/ manufacturer of replica handbag] [http://weblogs.bnn.nl/versace-replica-handbag-146/ versace replica handbag] [http://weblogs.bnn.nl/designer-replica-handbag-and-accessory-402/ designer replica handbag and accessory] [http://weblogs.bnn.nl/designer-handbag-exact-replica-516/ designer handbag exact replica] [http://weblogs.bnn.nl/replica-juicy-couture-handbag-843/ replica juicy couture handbag] [http://weblogs.bnn.nl/replica-knockoffs-fake-handbag-452/ replica knockoffs fake handbag] [http://weblogs.bnn.nl/cheap-replica-louis-vuitton-handbag-716/ cheap replica louis vuitton handbag] [http://weblogs.bnn.nl/cheap-replica-louis-vuitton-handbag-436/ cheap replica louis vuitton handbag] [http://weblogs.bnn.nl/quality-replica-handbag-875/ quality replica handbag] [http://weblogs.bnn.nl/replica-gucci-designer-handbag-958/ replica gucci designer handbag] [http://weblogs.bnn.nl/replica-chloe-handbag-440/ replica chloe handbag] [http://weblogs.bnn.nl/replica-chanel-handbag-202/ replica chanel handbag] [http://weblogs.bnn.nl/marc-jacobs-replica-handbag-830/ marc jacobs replica handbag] [http://weblogs.bnn.nl/glasses-lv-replica-sun-776/ glasses lv replica sun] [http://weblogs.bnn.nl/lv-replica-luggage-974/ lv replica luggage] [http://weblogs.bnn.nl/replica-lv-bag-203/ replica lv bag] [http://weblogs.bnn.nl/lv-replica-luggage-259/ lv replica luggage] [http://handbag.web-log.nl/replica/ replica designer handbag] [http://yngracy.bb-fr.com/ lv purse replica] [http://qansuns.bb-fr.com/ lv replica watch] [http://peibkmw.bb-fr.com/ designer leather replica handbag] [http://fnqica.bb-fr.com/ designer imitation replica handbag] [http://vwbuqea.bb-fr.com/ replica designer handbag wholesaler] [http://pchby.bb-fr.com/ replica designer dress] [http://qjmdko.bb-fr.com/ quality designer replica handbag] [http://xywoq.bb-fr.com/ fake designer replica handbag] [http://hmnol.bb-fr.com/ designer replica jewelry] [http://qazobzg.bb-fr.com/ designer louis vuitton replica handbag] [http://ysyugh.bb-fr.com/ discount designer replica handbag] [http://urgfefp.bb-fr.com/ designer inspired replica handbag] [http://sjjgkbq.bb-fr.com/ replica designer luggage] [http://xcxtoag.bb-fr.com/ replica gucci designer handbag] [http://bzdah.bb-fr.com/ aaa designer replica handbag] [http://gbeckk.bb-fr.com/ wholesale designer replica] [http://udpon.bb-fr.com/ wholesale designer replica jewelry] [http://ptpcc.bb-fr.com/ buy replica designer handbag] [http://zqttkbn.bb-fr.com/ replica designer handbag chanel] [http://hybpw.bb-fr.com/ replica designer perfume] [http://vlsee.bb-fr.com/ man designer replica sun glasses] [http://smhlh.bb-fr.com/ replica designer jeans] [http://vkvdajo.bb-fr.com/ aaa replica designer handbag wholesale] [http://cwbpr.bb-fr.com/ designer replica handbag supplier] [http://qdbxh.bb-fr.com/ replica designer belt] [http://ydnxcft.bb-fr.com/ cheap designer replica purse] [http://jhpzd.bb-fr.com/ bag diaper louis replica vuitton] [http://okvkqh.bb-fr.com/ bag prada replica] [http://qzsnaa.bb-fr.com/ bag christian dior replica] [http://xqwcfx.bb-fr.com/ bag cheap replica] [http://rajirk.bb-fr.com/ bag cheap louis replica vuitton] [http://dyddt.bb-fr.com/ bag hand louis replica vuitton] [http://dtmrzq.bb-fr.com/ bag birkin hermes replica] [http://axujr.bb-fr.com/ replica birkin bag] [http://mgsuud.bb-fr.com/ bag dior gaucho replica] [http://sjirwd.bb-fr.com/ louis vuitton replica messenger bag] [http://laglet.bb-fr.com/ replica luis vuitton bag] [http://mprjo.bb-fr.com/ louis vuitton replica hand bag] [http://gkzbjz.bb-fr.com/ bag cheap fendi replica spy] [http://axysh.bb-fr.com/ mirror image replica bag] [http://qvqbcq.bb-fr.com/ replica vuitton bag] [http://oeeob.bb-fr.com/ b bag fendi replica] [http://wtheaid.bb-fr.com/ wholesale replica designer bag] [http://sjqsgfp.bb-fr.com/ bag gucci handbag purse replica] [http://czvbnza.bb-fr.com/ motorcycle bag balenciaga replica] [http://tegpv.bb-fr.com/ designer replica hand bag] [http://feykj.bb-fr.com/ cheap replica louis vuitton bag] [http://vsukxz.bb-fr.com/ replica diaper bag] [http://rhputo.bb-fr.com/ wholesale replica bag] [http://pzfcts.bb-fr.com/ dooney and bourke bag replica] [http://jyokq.bb-fr.com/ fendi replica bag] [http://fhmjs.bb-fr.com/ chanel replica bag] [http://hczbizh.bb-fr.com/ replica gucci bag] [http://jqqbko.bb-fr.com/ replica designer bag] [http://biqcu.bb-fr.com/ replica coach bag] [http://mauxel.bb-fr.com/ cheap designer replica] [http://qjlkdg.bb-fr.com/ coach designer handbag inspired replica] [http://ohwox.bb-fr.com/ designer handbag jewelry replica] [http://hvlba.bb-fr.com/ designer glasses replica sale sun] [http://alghqee.bb-fr.com/ designer dior handbag replica] [http://hngfnr.bb-fr.com/ designer glasses replica] [http://zyxvb.bb-fr.com/ designer perfume replica] [http://ruspgd.bb-fr.com/ bag designer diaper replica] [http://tuvogf.bb-fr.com/ designer glasses man replica sun] [http://mopemmg.bb-fr.com/ designer handbag replica wholesaler] [http://ayizwa.bb-fr.com/ buy designer handbag replica where] [http://dyftvu.bb-fr.com/ designer handbag kate replica spade] [http://fuvvqn.bb-fr.com/ bag bangkok designer in made replica] [http://knaknxj.bb-fr.com/ chanel designer handbag replica] [http://cqvfy.bb-fr.com/ bag designer hand replica] [http://nsdfiu.bb-fr.com/ chanel designer replica] [http://giduu.bb-fr.com/ accessory designer handbag replica] [http://ldnfgg.bb-fr.com/ designer replica wholesale] [http://viuszsv.bb-fr.com/ designer jewelry replica wholesale] [http://gwgsct.bb-fr.com/ clothes designer replica] [http://xemgli.bb-fr.com/ designer gucci handbag replica] [http://tesxqhl.bb-fr.com/ designer fake handbag replica] [http://vthhzxg.bb-fr.com/ designer luggage replica] [http://wscccu.bb-fr.com/ designer handbag purse replica] [http://vsuaae.bb-fr.com/ accessory designer replica] [http://zvsqw.bb-fr.com/ designer handbag inspired replica] [http://epzvmgz.bb-fr.com/ designer glasses replica sun wholesale] [http://nydym.bb-fr.com/ designer replica wallet] [http://dlnizd.bb-fr.com/ designer handbag louis replica vuitton] [http://asdoz.bb-fr.com/ cheap designer handbag replica] [http://lzafet.bb-fr.com/ designer purse replica wholesale] [http://pfwbx.bb-fr.com/ coach designer handbag replica] [http://jivigat.bb-fr.com/ designer replica shoes] [http://ueabhxx.bb-fr.com/ designer jewelry replica] [http://wqgzpnb.bb-fr.com/ designer handbag replica wholesale] [http://vwevw.bb-fr.com/ designer replica watch] [http://tvcuxus.bb-fr.com/ bag designer replica] [http://inucn.bb-fr.com/ designer replica] [http://ysywav.bb-fr.com/ louis vuitton replica backpack] [http://ibxcuy.bb-fr.com/ lv wallet replica] [http://oroolmk.bb-fr.com/ lv replica luggage] [http://diotih.bb-fr.com/ replica lv bag] [http://rgcmgxb.zikforum.com/ lv replica watch] [http://xheau.zikforum.com/ handbag mirror replica] [http://cmrhq.zikforum.com/ canal handbag replica street] [http://eowrjd.zikforum.com/ handbag replica ysl] [http://myxea.zikforum.com/ handbag luxury replica] [http://bdanu.zikforum.com/ cheap coach handbag replica] [http://jrasoe.zikforum.com/ handbag replica signature] [http://zlwjypx.zikforum.com/ handbag replica versace] [http://tmtjo.zikforum.com/ 7 handbag replica star] [http://ftszhg.zikforum.com/ designer exact handbag replica] [http://gwodfq.zikforum.com/ fake handbag knockoffs replica] [http://pxlez.zikforum.com/ canal handbag new replica street york] [http://kjlxf.zikforum.com/ handbag jacobs marc replica] [http://lncbfur.zikforum.com/ handbag hermes replica] [http://tfsfot.zikforum.com/ handbag lv replica] [http://lzusoq.zikforum.com/ burberry handbag replica] [http://wxqehzn.zikforum.com/ handbag prada replica] [http://medwh.zikforum.com/ coach handbag replica] [http://xsabcpb.zikforum.com/ designer handbag replica] [http://ctjhzl.zikforum.com/ handbag replica] [http://rbistx.zikforum.com/ designer handbag replica wholesale] [http://pkzkpji.zikforum.com/ handbag manufacturer replica] [http://fvvryrt.zikforum.com/ louis vuitton replica leather handbag] [http://zmxaq.zikforum.com/ luis vuitton replica handbag] [http://shyebi.zikforum.com/ shopping replica louis vuitton handbag] [http://rbeith.zikforum.com/ bag coach replica] [http://eqmwbhg.zikforum.com/ bag gucci messenger replica] [http://zxztboz.zikforum.com/ bag gucci replica] [http://qkijnv.zikforum.com/ bag diaper louis replica vuitton] [http://nkqvcsr.zikforum.com/ bag balenciaga motorcycle replica] [http://qlydahs.zikforum.com/ bag louis replica vuitton wholesale] [http://xhvrovz.zikforum.com/ bourke dooney handbag imitation] [http://pwwcmu.zikforum.com/ christian dior handbag imitation] [http://uopqqr.zikforum.com/ burberry handbag imitation] [http://pyjosk.zikforum.com/ designer handbag imitation] [http://rzjngr.zikforum.com/ bourke dooney fake handbag] [http://xtdhezy.zikforum.com/ designer handbag jewelry replica] [http://vssua.zikforum.com/ replica designer handbag dior] [http://sxyyb.zikforum.com/ fendi gucci handbag replica] [http://bbcpudv.zikforum.com/ handbag replica umbrella wholesale] [http://jpdufj.zikforum.com/ wholesale replica prada handbag] [http://maxxu.zikforum.com/ fendi and gucci replica handbag] [http://otaozue.zikforum.com/ chloe handbag paddington replica] [http://qnwjmtm.zikforum.com/ christian dior handbag replica] [http://ovrlar.zikforum.com/ cheap replica chanel handbag] [http://hjlmmd.zikforum.com/ hermes birkin replica handbag] [http://xkpircp.zikforum.com/ designer handbag purse replica] [http://dsnlg.zikforum.com/ aaa replica designer handbag wholesale] [http://dgsaxu.zikforum.com/ wholesale manufacturer replica handbag] [http://jjletm.zikforum.com/ china designer handbag manufacturer replica] [http://eazgydw.zikforum.com/ handbag louis rainbow replica vuitton] [http://swiude.zikforum.com/ handbag leather louis replica vuitton] [http://fahrfob.zikforum.com/ canada handbag in louis replica vuitton] [http://vleydnf.zikforum.com/ handbag luis replica vuitton] [http://udpwo.zikforum.com/ handbag louis replica shopping vuitton] [http://yiyrv.zikforum.com/ accessory handbag louis replica vuitton] [http://gqtdbd.zikforum.com/ handbag replica vuitton] [http://rmrhf.zikforum.com/ handbag louie replica vuitton] [http://nmxofs.zikforum.com/ cheap handbag louis replica vuitton] [http://xdpgzfz.zikforum.com/ handbag louis replica vuitton wholesale] [http://yvvbgwj.zikforum.com/ designer handbag kate replica spade] [http://xelcll.zikforum.com/ designer discount handbag replica] [http://bbzns.zikforum.com/ fake juicy couture handbag] [http://xhiqwg.zikforum.com/ fake chloe handbag] [http://mhenz.zikforum.com/ real or fake designer handbag] [http://qajfs.zikforum.com/ fake lv handbag] [http://gevkim.zikforum.com/ how to spot a fake coach handbag] [http://mnfpnpt.zikforum.com/ cheap fake louis vuitton handbag] [http://zkcshgi.zikforum.com/ cheap fake designer handbag] [http://hvmjg.zikforum.com/ chinatown designer fake handbag] [http://idiwah.zikforum.com/ fake fendi handbag] [http://iecxb.zikforum.com/ fake dooney bourke handbag] [http://zawte.zikforum.com/ fake copy designer handbag] [http://ggwdw.zikforum.com/ fake prada handbag] [http://ektyqf.zikforum.com/ fake gucci handbag] [http://wgjstks.zikforum.com/ fake designer handbag wholesale] [http://lewbjn.zikforum.com/ fake coach handbag] [http://pmfxkf.zikforum.com/ fake louis vuitton handbag] [http://zrzwc.zikforum.com/ fake designer handbag] [http://rtonjsq.zikforum.com/ dooney bourke imitation handbag] [http://rkkyu.zikforum.com/ handbag imitation replica] [http://jrxout.zikforum.com/ imitation christian dior handbag] [http://uwtswu.zikforum.com/ handbag imitation wholesale] [http://rxnkn.zikforum.com/ designer imitation replica handbag] [http://zyachk.zikforum.com/ burberry imitation handbag] [http://xixbqv.zikforum.com/ imitation gucci handbag] [http://zohpse.zikforum.com/ imitation prada handbag] [http://umvgxh.zikforum.com/ imitation coach handbag] [http://sshmevs.zikforum.com/ imitation handbag] [http://poqissl.zikforum.com/ imitation designer handbag] [http://mstkrl.zikforum.com/ cheap replica designer bag] [http://rmqve.zikforum.com/ 7 bag image mirror replica star] [http://qkaoo.zikforum.com/ louis vuitton replica messenger bag] [http://llsjog.zikforum.com/ bag brighton handbag purse replica] [http://wyapegn.zikforum.com/ asia bag designer from replica] [http://kucajp.zikforum.com/ bag coach patchwork replica] [http://zhsjx.zikforum.com/ replica luis vuitton bag] [http://caryptz.zikforum.com/ bag gucci replica wholesale] [http://edbtjqx.zikforum.com/ bag cheap fendi replica spy] [http://jugdul.zikforum.com/ mirror image replica bag] [http://wfufejs.zikforum.com/ gucci messenger bag replica] [http://zxzlpc.zikforum.com/ replica vuitton bag] [http://rmjix.zikforum.com/ b bag fendi replica] [http://kzztd.zikforum.com/ bag replica spy] [http://emvkyd.zikforum.com/ replica coach diaper bag] [http://cdapqa.zikforum.com/ replica designer diaper bag] [http://acyez.zikforum.com/ replica hermes birkin bag] [http://thembww.zikforum.com/ motorcycle bag balenciaga replica] [http://lulzr.zikforum.com/ marc jacobs replica bag] [http://uqrko.zikforum.com/ replica kate spade bag] [http://bjtwsf.zikforum.com/ replica hermes bag] [http://arifzex.zikforum.com/ replica juicy couture bag] [http://enyldrq.zikforum.com/ replica louis vuitton diaper bag] [http://yvrzfk.zikforum.com/ replica diaper bag] [http://trvice.zikforum.com/ wholesale replica bag] [http://gikfd.zikforum.com/ chloe replica bag] [http://tosdwd.zikforum.com/ prada replica bag] [http://oraip.zikforum.com/ replica hand bag] [http://apmftx.zikforum.com/ louis vuitton replica bag] [http://ivdbpjg.zikforum.com/ cherry handbag louis replica vuitton] [http://fbaux.zikforum.com/ handbag louis replica spring vitton] [http://nssjb.zikforum.com/ discount replica handbag] [http://grzifki.zikforum.com/ cheap coach designer handbag replica] [http://guwvoi.zikforum.com/ bag handbag louis purse replica vuitton] [http://zoyhwmy.zikforum.com/ mirror replica handbag] [http://rdyvmga.zikforum.com/ fendi handbag replica spy] [http://liyjyc.zikforum.com/ ysl replica handbag] [http://ztkyowh.zikforum.com/ best designer handbag replica] [http://tevbzkg.zikforum.com/ handbag wholesale replica watch] [http://tzkumfk.zikforum.com/ replica designer handbag wholesaler] [http://idckx.zikforum.com/ designer kate spade replica handbag] [http://unfrm.zikforum.com/ coach handbag patchwork replica] [http://xhlpl.zikforum.com/ denim handbag louis replica vuitton] [http://aspqefd.zikforum.com/ cheap replica coach handbag] [http://yjnns.zikforum.com/ coach signature replica handbag wholesale] [http://pwkzsx.zikforum.com/ replica vuitton handbag] [http://oiepou.zikforum.com/ buy replica designer handbag] [http://rwist.zikforum.com/ replica jp tods handbag] [http://suptgx.zikforum.com/ tods replica handbag] [http://wdupjs.zikforum.com/ dolce and gabbana replica handbag] [http://qacxqy.zikforum.com/ quality designer replica handbag] [http://mdvysm.zikforum.com/ versace replica handbag] [http://aowmt.zikforum.com/ high quality replica handbag] [http://dwyotex.zikforum.com/ louie vuitton replica handbag] [http://xfpiyze.zikforum.com/ 7 star replica handbag] [http://nhwmbuf.zikforum.com/ aaa designer replica handbag] [http://ezxbh.zikforum.com/ designer handbag exact replica] [http://adqksmo.zikforum.com/ replica juicy couture handbag] [http://rwsmb.zikforum.com/ cheap replica louis vuitton handbag] [http://pafne.zikforum.com/ replica designer handbag purse] [http://tskzg.zikforum.com/ designer inspired replica handbag] [http://xzjvjt.zikforum.com/ mirror image replica handbag] [http://tjeyzc.zikforum.com/ quality replica handbag] [http://xgupt.zikforum.com/ wholesale replica coach handbag] [http://pcqqz.zikforum.com/ aaa replica handbag] [http://ooryjy.zikforum.com/ wholesale louis vuitton replica handbag] [http://pmujs.zikforum.com/ hermes handbag replica] [http://szcnfki.zikforum.com/ balenciaga replica handbag] [http://krvrhjz.zikforum.com/ cheap replica handbag] [http://uzjro.zikforum.com/ dior replica handbag] [http://dopuw.zikforum.com/ replica chloe handbag] [http://ygyvt.zikforum.com/ replica burberry handbag] [http://ankznwp.zikforum.com/ wholesale designer replica handbag] [http://zmnpe.zikforum.com/ fendi replica handbag] [http://azdqxc.zikforum.com/ kate spade replica handbag] [http://hfzeew.zikforum.com/ prada replica handbag] [http://gvjhcul.zikforum.com/ louis vuitton replica handbag] [http://hwyzltt.zikforum.com/ replica designer handbag] [http://hftaeb.zikforum.com/ replica handbag] [http://oiekajh.zikforum.com/ lv wallet replica] [http://qqxqvq.zikforum.com/ wholesale replica lv handbag] [http://xijbg.zikforum.com/ lv replica purse] [http://ynmxicm.zikforum.com/ glasses lv replica sun] [http://rxfqt.zikforum.com/ replica lv bag] [http://weblogs.bnn.nl/wholesale-handbag wholesale handbag] [http://mybonus.bb-fr.com designer handbag] [http://givemebonus.forumer.com/ gucci handbag] [http://weblogs.bnn.nl/replica-handbag replica handbag] [http://topovod.bb-fr.com/ prada replica handbag] [http://topovod.forumer.com/ wholesale replica handbag] [http://weblogs.bnn.nl/replica-gucci-handbag replica gucci handbag] [http://mrcolos.bb-fr.com replica coach handbag] [http://mrcolos.forumer.com louis vuitton replica handbag] </div>
+
 
 +
 
 +
==Synopsis==
 +
blockMesh [OPTIONS]
 +
 
 +
==Description==
 +
As the name implies, {{tt|blockMesh}} helps the user build the mesh with blocks. It relies on a single dictionary file {{tt|blockMeshDict}}, usually located at {{tt|constant/polyMesh/blockMeshDict}}. Inside that dictionary file should be defined:
 +
# all of the reference vertices of mesh;
 +
# all of the building blocks for the mesh, each block composed of:
 +
#* 8 vertices (repeat vertices, for collapsing edges);
 +
#* grading definition;
 +
#* cell count over each major axis;
 +
# optionally, one can assign special edge definitions for specific edges on blocks, such as arcs and splines;
 +
# assign faces of blocks to patch names;
 +
# and finally, be able to define special face merging, but associating/merging patches.
 +
 
 +
The following options can be used with {{tt|blockMesh}}:
 +
 
 +
'''-case''' ''DIR''
 +
:Execute the command on the case directory ''DIR''. If not provided, use the current directory.
 +
'''-dict''' ''FILE''
 +
:Read dictionary from specified location.
 +
'''-blockTopology'''
 +
: Write block edges and centres as {{tt|.obj}} files, for visual inspection elsewhere.
 +
'''-noFunctionObjects'''
 +
:Skip the execution of the [[functionObjects]]
 +
'''-region''' ''NAME''
 +
:Generate the mesh only for a specific region (e.g. for multi-region simulations).
 +
'''-help'''
 +
:Display the help and exit
 +
 
 +
 
 +
= Tips =
 +
On this chapter are listed links and direct tips on using <tt>snappyHexMesh</tt>.
 +
 
 +
== Using {{tt|blockMesh}} to export {{tt|blockMeshDict}} to {{tt|.obj}}  ==
 +
Before there were any nice graphical user interfaces for visually designing and inspecting the {{tt|blockMeshDict}} files, {{tt|blockMesh}} can interpret the dictionary file and export it to an {{tt|.obj}} file, which can be opened by any compatible 3D software, such as ParaView, JavaView and so on. There steps are as follows:
 +
 
 +
# Use the {{tt|-blockTopology}} argument to dump out a {{tt|blockTopology.obj}} file: <bash>blockMesh -blockTopology</bash>
 +
# The vertex numbering in this file is consistent with that of the vertices in the {{tt|blockMeshDict}} file.
 +
# The file {{tt|blockTopology.obj}} can be visualized in the following 3D software:
 +
#* Visualize directly with JavaView;
 +
#* Visualize directly in ParaView or convert the file to VTK if you prefer: <bash>objToVTK blockTopology.obj blockTopology.vtk</bash>
 +
#* Import in Blender.
 +
#* ''(fell free to add more...)''
 +
 
 +
 
 +
== Graphical User Interfaces for visualizing and designing {{tt|blockMeshDict}} ==
 +
 
 +
;{{tt|paraFoam -block}}: Introduced in OpenFOAM 2.0.0, this argument for the {{tt|paraFoam}} script requires that the respective OpenFOAM plugin is built for ParaView. This means that ParaView has to be built from source code or to use the Deb/RPM packages provided by the OpenFOAM Foundation.
 +
 
 +
;{{tt|blockMesh -blockTopology}}: Already explained in the section [[#Using blockMesh to export blockMeshDict to .obj|Using {{tt|blockMesh}} to export {{tt|blockMeshDict}} to {{tt|.obj}}]]
 +
 
 +
;{{tt|pyFoamDisplayBlockMesh.py}}: This Python script provides a way to visually inspect the current {{tt|blockMeshDict}} settings in 3D. It is part of [[Contrib/PyFoam|PyFoam]], which relies on VTK and Qt for the graphical interface. For more information, see section [[Contrib/PyFoam#pyFoamDisplayBlockMesh.py|pyFoamDisplayBlockMesh.py]] in the page [[Contrib/PyFoam]].
 +
 
 +
;SwiftBlock: This is also a Python script, but it's a powerful add-on for Blender, which provides an interactive way to design the {{tt|blockMeshDict}} directly in 3D. For more information, see the respective wiki page: [[Contrib/SwiftBlock]]
 +
 
 +
;HexBlocker: This is a dedicated application for visually editing in 3D the {{tt|blockMeshDict}} file. For more information, see this forum page: [http://www.cfd-online.com/Forums/openfoam-meshing/114773-hexblocker-gui-blockmeshdict-alpha-release.html HexBlocker a GUI for blockMeshDict, alpha release]
 +
 
 +
;FreeCAD: If you are looking for out of the box and cross platform solutions, there are attempts to import blockMeshDict topologies into FreeCAD. The other advantage is that it does not require the mesh, so if you have problems with mesh generation it help you to visualize in advance and debug the topology. An early version of the Python script can be found [https://gist.github.com/Foadsf/9ef9975d31bb01fa2bb88b6db7e0bda9 here]. To follow up on this project you may follow [https://forum.freecadweb.org/viewtopic.php?f=37&t=30426 this thread] in FreeCAD forum.
 +
 
 +
== Calculating the grading ==
 +
 
 +
There is [[Scripts/blockMesh_grading_calculation|this utility]] here on the Wiki and [http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/61785-blockmesh-grading-calculator.html this thread with a utility on the MessageBoard].
 +
 
 +
== Programmatically generating {{tt|blockMeshDict}} files ==
 +
Since the {{tt|blockMeshDict}} files are essentially text files, they can be generated by any means necessary. In this section is addressed the currently known documented ways of using scripts to generate {{tt|blockMeshDict}} files.
 +
 
 +
; {{tt|#codeStream}}: This is a feature that was introduced in OpenFOAM 2.0.0: [http://openfoam.org/release/2-0-0/run-time-control-code-compilation/ OpenFOAM® v2.0.0: Run-time Control] - Examples:
 +
:* The main tutorial provided in OpenFOAM for this feature in {{tt|blockMeshDict}}: {{tt|$FOAM_TUTORIALS/basic/potentialFoam/cylinder}}
 +
 
 +
;GNU m4, ''aka'' {{tt|blockMeshDict.m4}}:
 +
:* The [https://www.gnu.org/software/m4/m4.html GNU m4 (manual)] is a macro processor, which is essentially a simple programming language for calculating values and definitions to be written in the resulting file. In the following wiki page is a good example on this topic: [[HowTo blockMesh with m4]]. For more examples, run in the command line: <bash>find $FOAM_TUTORIALS -name "blockMeshDict.m4"</bash>
 +
:* A report by Erwin Adi Hartono for the [http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/ MSc/PhD course in CFD with OpenSource software, 2010] at Chalmers University of Technology:  [http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/erwinAdiHartono/erwinAdiHartonoReport.pdf Python Scripting and M4-Scripting for Automatization and Parameterization in OpenFOAM]
 +
 
 +
;MATLAB:
 +
:* BananaSplit: This is a MATLAB script for generating {{tt|blockMeshDict}} files. For more information, see this forum thread: [http://www.cfd-online.com/Forums/openfoam-meshing/108336-bananasplit-helper-openfoam-blockmesh.html BananaSplit helper for OpenFOAM blockMesh]
 +
 
 +
; Using Python scripts:
 +
:* Generating a pipe: [http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/82520-how-create-large-mesh.html#post285979 How to create large Mesh? - post #4]
 +
:* Python library {{tt|ofblockmeshdicthelper}} available at PyPi: [https://pypi.python.org/pypi/ofblockmeshdicthelper ofblockmeshdicthelper]
 +
:* Blog post on how to use {{tt|numpy}} for creating the {{tt|blockMeshDict}} file:  [http://dambreak.blogspot.pt/2013/06/generating-openfoam-mesh-from-point.html Generating an OpenFOAM mesh from a point cloud (x,y,z)]
 +
 
 +
<br>
 +
 
 +
== Generating double-graded meshes ==
 +
Although {{tt|blockMesh}} is considerably powerful as it is, the community has provided a modified version named {{tt|blockMeshDG}} for generating double graded meshes, in the sense of having an easy way to define symmetrical geometrical grading. For more information, see the dedicated wiki page: [[Contrib_blockMeshDG|blockMeshDG]]
 +
 
 +
 
 +
== Generating multi-graded meshes ==
 +
 
 +
A new feature was introduced into OpenFOAM 2.3.x, some weeks after the release of 2.3.1, which is the ability to do multi-grading. This was introduced in the commit [https://github.com/OpenFOAM/OpenFOAM-2.3.x/commit/cf370883644ec59782be375041b2434eb3e2c4ed cf370883644e] and is documented in the comment of the commit with the usage instructions. Quoting from said comment:
 +
<pre>
 +
    '''blockMesh: Add support for multi/sectional grading in a block'''
 +
 
 +
    Consider a block describing a channel with two opposite walls.
 +
    Currently in order to grade the mesh towards the walls and have a
 +
    uniform region in the centre the channel would need to be spit into 3
 +
    blocks.  With the new multi/sectional grading this can be achieved in a
 +
    single block e.g.
 +
 
 +
    blocks
 +
    (
 +
        hex (0 1 2 3 4 5 6 7) (20 60 20)
 +
        simpleGrading
 +
        (
 +
            1
 +
            ((0.2 0.3 4) (0.6 0.4 1) (0.2 0.3 0.25))
 +
            1
 +
        )
 +
    );
 +
 
 +
    In this example the block is divided uniformly in the x and z -directions
 +
    and split into three grading sections in the y-direction described by
 +
    three triples:  ((0.2 0.3 4) (0.6 0.4 1) (0.2 0.3 0.25)).  Each of the
 +
    grading sections is described by a triple consisting of the fraction of
 +
    the block, the fraction of the divisions and the grading ratio (size of
 +
    first division/size of last division).  Both the fraction of the block
 +
    and the fraction of the divisions are normalized automatically so they
 +
    can be specified scaled in anyway, e.g. as percentages:
 +
 
 +
    blocks
 +
    (
 +
        hex (0 1 2 3 4 5 6 7) (20 60 20)
 +
        simpleGrading
 +
        (
 +
            1
 +
            ((2 3 4) (6 4 1) (2 3 0.25))
 +
            1
 +
        )
 +
    );
 +
 
 +
    and they need not sum to 1 or 100.
 +
 
 +
    This is very new functionality and not well tested but backward
 +
    compatibility has been well tested so all existing blockMeshDicts should
 +
    parse correctly.
 +
</pre>
 +
 
 +
If you want to use this feature in older versions of OpenFOAM, follow the instructions given on this forum post: [http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/70798-blockmesh-double-grading-5.html#post567551 blockMesh with double grading. - post #86]
 +
 
 +
== Generating meshes with smoothed mesh transitions ==
 +
Sometimes it's necessary to transition between different mesh formats, such as going from a cube-shaped block to a sphere-shaped block. This is where the {{tt|extBlockMesh}} add-on for {{tt|blockMesh}} comes in handy: [http://www.cfd-online.com/Forums/openfoam-meshing/132628-extend-blockmesh-smoothing-capability.html#post484113 Extend blockMesh with smoothing capability]
 +
 
 +
== Defining cellZones ==
 +
Blocks are assigned to cellZones (which can be used for example to apply fvOptions to a selected region) the name of the cellZone can be specified in the block definition between the vertex numbers and the number of cells in each direction. This information is then used to generate a "cellZones" file in the polyMesh folder:
 +
''hex (0 1 2 3 4 5 6 7) myCellZone (20 1 1) simpleGrading (1 1 1)''
 +
 
 +
 
 +
[[Category:Mesh generation utilities]]

Revision as of 11:28, 23 August 2018


1 Introduction

blockMesh is one of the most basic mesh generators in OpenFOAM. It relies on a single dictionary file blockMeshDict, usually placed inside the folder constant/polyMesh. The latest official documentation on how to use blockMesh can be found on the OpenFOAM User Guide and online at the OpenFOAM Foundation website at this page: 5.3 blockMesh

Valid versions: OF version 10.png OF version 11.png OF version 12.png OF version 13.png OF version 14.png OF version 15.png OF version 16.png OF version 17.png OF Version 20.png OF Version 21.png OF Version 22.png OF Version 23.png OF Version 14dev.png OF Version 15dev.png OF Version 16ext.png OF Version 30ext.png

Feel free to contribute to this page!


1.1 Synopsis

blockMesh [OPTIONS]

1.2 Description

As the name implies, blockMesh helps the user build the mesh with blocks. It relies on a single dictionary file blockMeshDict, usually located at constant/polyMesh/blockMeshDict. Inside that dictionary file should be defined:

  1. all of the reference vertices of mesh;
  2. all of the building blocks for the mesh, each block composed of:
    • 8 vertices (repeat vertices, for collapsing edges);
    • grading definition;
    • cell count over each major axis;
  3. optionally, one can assign special edge definitions for specific edges on blocks, such as arcs and splines;
  4. assign faces of blocks to patch names;
  5. and finally, be able to define special face merging, but associating/merging patches.

The following options can be used with blockMesh:

-case DIR

Execute the command on the case directory DIR. If not provided, use the current directory.

-dict FILE

Read dictionary from specified location.

-blockTopology

Write block edges and centres as .obj files, for visual inspection elsewhere.

-noFunctionObjects

Skip the execution of the functionObjects

-region NAME

Generate the mesh only for a specific region (e.g. for multi-region simulations).

-help

Display the help and exit


2 Tips

On this chapter are listed links and direct tips on using snappyHexMesh.

2.1 Using blockMesh to export blockMeshDict to .obj

Before there were any nice graphical user interfaces for visually designing and inspecting the blockMeshDict files, blockMesh can interpret the dictionary file and export it to an .obj file, which can be opened by any compatible 3D software, such as ParaView, JavaView and so on. There steps are as follows:

  1. Use the -blockTopology argument to dump out a blockTopology.obj file:
    blockMesh -blockTopology
  2. The vertex numbering in this file is consistent with that of the vertices in the blockMeshDict file.
  3. The file blockTopology.obj can be visualized in the following 3D software:
    • Visualize directly with JavaView;
    • Visualize directly in ParaView or convert the file to VTK if you prefer:
      objToVTK blockTopology.obj blockTopology.vtk
    • Import in Blender.
    • (fell free to add more...)


2.2 Graphical User Interfaces for visualizing and designing blockMeshDict

paraFoam -block
Introduced in OpenFOAM 2.0.0, this argument for the paraFoam script requires that the respective OpenFOAM plugin is built for ParaView. This means that ParaView has to be built from source code or to use the Deb/RPM packages provided by the OpenFOAM Foundation.
blockMesh -blockTopology
Already explained in the section Using blockMesh to export blockMeshDict to .obj
pyFoamDisplayBlockMesh.py
This Python script provides a way to visually inspect the current blockMeshDict settings in 3D. It is part of PyFoam, which relies on VTK and Qt for the graphical interface. For more information, see section pyFoamDisplayBlockMesh.py in the page Contrib/PyFoam.
SwiftBlock
This is also a Python script, but it's a powerful add-on for Blender, which provides an interactive way to design the blockMeshDict directly in 3D. For more information, see the respective wiki page: Contrib/SwiftBlock
HexBlocker
This is a dedicated application for visually editing in 3D the blockMeshDict file. For more information, see this forum page: HexBlocker a GUI for blockMeshDict, alpha release
FreeCAD
If you are looking for out of the box and cross platform solutions, there are attempts to import blockMeshDict topologies into FreeCAD. The other advantage is that it does not require the mesh, so if you have problems with mesh generation it help you to visualize in advance and debug the topology. An early version of the Python script can be found here. To follow up on this project you may follow this thread in FreeCAD forum.

2.3 Calculating the grading

There is this utility here on the Wiki and this thread with a utility on the MessageBoard.

2.4 Programmatically generating blockMeshDict files

Since the blockMeshDict files are essentially text files, they can be generated by any means necessary. In this section is addressed the currently known documented ways of using scripts to generate blockMeshDict files.

#codeStream
This is a feature that was introduced in OpenFOAM 2.0.0: OpenFOAM® v2.0.0: Run-time Control - Examples:
  • The main tutorial provided in OpenFOAM for this feature in blockMeshDict: $FOAM_TUTORIALS/basic/potentialFoam/cylinder
GNU m4, aka blockMeshDict.m4
MATLAB
Using Python scripts


2.5 Generating double-graded meshes

Although blockMesh is considerably powerful as it is, the community has provided a modified version named blockMeshDG for generating double graded meshes, in the sense of having an easy way to define symmetrical geometrical grading. For more information, see the dedicated wiki page: blockMeshDG


2.6 Generating multi-graded meshes

A new feature was introduced into OpenFOAM 2.3.x, some weeks after the release of 2.3.1, which is the ability to do multi-grading. This was introduced in the commit cf370883644e and is documented in the comment of the commit with the usage instructions. Quoting from said comment:

    '''blockMesh: Add support for multi/sectional grading in a block'''

    Consider a block describing a channel with two opposite walls.
    Currently in order to grade the mesh towards the walls and have a
    uniform region in the centre the channel would need to be spit into 3
    blocks.  With the new multi/sectional grading this can be achieved in a
    single block e.g.

    blocks
    (
        hex (0 1 2 3 4 5 6 7) (20 60 20)
        simpleGrading
        (
            1
            ((0.2 0.3 4) (0.6 0.4 1) (0.2 0.3 0.25))
            1
        )
    );

    In this example the block is divided uniformly in the x and z -directions
    and split into three grading sections in the y-direction described by
    three triples:  ((0.2 0.3 4) (0.6 0.4 1) (0.2 0.3 0.25)).  Each of the
    grading sections is described by a triple consisting of the fraction of
    the block, the fraction of the divisions and the grading ratio (size of
    first division/size of last division).  Both the fraction of the block
    and the fraction of the divisions are normalized automatically so they
    can be specified scaled in anyway, e.g. as percentages:

    blocks
    (
        hex (0 1 2 3 4 5 6 7) (20 60 20)
        simpleGrading
        (
            1
            ((2 3 4) (6 4 1) (2 3 0.25))
            1
        )
    );

    and they need not sum to 1 or 100.

    This is very new functionality and not well tested but backward
    compatibility has been well tested so all existing blockMeshDicts should
    parse correctly.

If you want to use this feature in older versions of OpenFOAM, follow the instructions given on this forum post: blockMesh with double grading. - post #86

2.7 Generating meshes with smoothed mesh transitions

Sometimes it's necessary to transition between different mesh formats, such as going from a cube-shaped block to a sphere-shaped block. This is where the extBlockMesh add-on for blockMesh comes in handy: Extend blockMesh with smoothing capability

2.8 Defining cellZones

Blocks are assigned to cellZones (which can be used for example to apply fvOptions to a selected region) the name of the cellZone can be specified in the block definition between the vertex numbers and the number of cells in each direction. This information is then used to generate a "cellZones" file in the polyMesh folder:

hex (0 1 2 3 4 5 6 7) myCellZone (20 1 1) simpleGrading (1 1 1)