You are on page 1of 12

tutorial

How To extrude 2D mesh into 3D in Calculix pipe mesh example


Tutorial CalculiX meshing for OpenFOAM: pipe mesh
Previous steps:
The 2D mesh was create in !lener with the use of the f" e#port script$ The generation of
the 2D mesh itself is the su"%ect of an other Tutorial ocument$
&tarting up an opening the 2D mesh:
&tart up CalculiX:
cgx -b cylinder3.fbd
The ne#t step is to swep the 2D mesh in 'D among a strait line$ (et)s call the other en of the
pipe *top+$ All the entities ,points- lines- surfaces importe. are store in the *all+ selection at
the "eginning$ /e will use a translation vector of 01-1-234 5 irection:
swep all top tra 0 0 18
2
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
Chec6 what is the efault ivision for the lines$ /e woul li6e to use he#aheron cells- all the
2
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
lines will "e ivie ue to its ivision efinition$ The ivision efinition can "e visulai5e for
e#ample for all the lines in the moel:
plot ld all
7ote that the new lines the ones parallel to the 5 a#is 8 have 9 as ivision: Change the
ivision of these lines:
&witch the *;#+ view:
'
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
7ow change the ivision:
qdiv
&election moe *all+:
a
Define the opposite corners of the selection rectangle:
r
r
9
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
T<pe in the new ivision efinition ,for two igit efinitions t<pe a =&PAC>? "efore the
num"ers:.:
99
@uit the ivision efinition comman:
q
7ow efine the cell t<pe which the mesher shoul use as he#aherons
elty all he8
&tart meshing:
mesh all
The repl< is the following:
please wait for 'ready'
A
Hit r!
Hit r!
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
numFaces:456192 numElems:76032 size:32845824
ready
Bisuali5e the newl< create elements:
plot e all
Toggle on *>lement >ges+:
C
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
&witch visuali5ation for element face visuali5ation for smaller memor< usage:
plot f all
7ow create selections for inlet- outlet an wall$ To o the selection the first letter of the
element name shoul "e t<pe in p for points- l for lines- s for surfaces- etc$$ For the
"ounar< conitions element faces shoul "e selecte ,f.$ (et)s "egin with the inlet "ounar<
,*in+.:
qadd in
a
r
r
f
q
D
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
Chec6 what was selecte ,with green color.:
plot f all
plus f in g
3
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
Eemove non necessar< faces from selection:
qrem in
a
r
r
f
q
Create the outlet ,*out+. an wall ,*wall+. selections on the similar wa<$ Bisuli5ing the result 8
*in+ with green- *out+ with re an *wall+ with "lue:
plot f all
plus f in g
plus f out r
plus f wall b
F
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
Chec6 what selections are e#isting with what content:
prnt se
The repl< is the following:
1 all stat:o n:80100 e:76032 f:7872 p:1602 l:3937 s:3104 b:768 L:0 S:0
se:0
2 top stat:c n:801 e:0 f:768 p:801 l:1568 s:768 b:0 L:0 S:0 se:0
3 in stat:c n:0 e:0 f:768 p:0 l:0 s:0 b:0 L:0 S:0 se:0
4 -NJBY stat:c n:0 e:0 f:0 p:0 l:0 s:0 b:0 L:0 S:0 se:0
5 out stat:c n:0 e:0 f:768 p:0 l:0 s:0 b:0 L:0 S:0 se:0
6 wall stat:c n:0 e:0 f:6336 p:0 l:0 s:0 b:0 L:0 S:0 se:0
>#port mesh in OpenFOAM format with the e#isting face selections ,*in+ 8 patch t<pe- *out+ 8
patch t<pe an *wall+ 8 wall t<pe.:
send all foam patch in patch out wall wall
Eepl<:
please wait for 'ready'
use boundary: type:patch set:in
use boundary: type:patch set:out
use boundary: type:wall set:wall
21
Tutorial CalculiX meshing for OpenFOAM: pipe mesh
wrote foam mesh
ready
The mesh is rea< to "e use in OpenFOAM now: Gou can Huit CalculiX:
quit
22

You might also like