CalculiX Pipe Mesh Tutorial

Embed Size (px)

Citation preview

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    1/12

    tutorial

    How Toexde 2D mesh n 3D n Ccx ppe mesh exmpe

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    2/12

    Tutorial CalculiX meshing for OpenFOAM: pipe mesh

    Previous steps:

    The 2D mesh was create in !lener with the use of the f" e#portscript$ The generation ofthe 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 thepipe *top+$ All the entities ,points- lines- surfaces importe. are store in the *all+ selection atthe "eginning$ /e will use a translation vector of 01-1-34 5 irection:

    swep all top tra 0 0 18

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    3/12

    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

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    4/12

    Tutorial CalculiX meshing for OpenFOAM: pipe mesh

    lines will "e ivie ue to its ivision efinition$ The ivision efinition can "e visulai5e fore#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 theivision of these lines&witch the *;#+ view:

    '

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    5/12

    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

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    6/12

    Tutorial CalculiX meshing for OpenFOAM: pipe mesh

    T

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    7/12

    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+:

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    8/12

    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 theelement name shoul "e t

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    9/12

    Tutorial CalculiX meshing for OpenFOAM: pipe mesh

    Chec6 what was selecte ,with green color.:

    plot f all

    plus f in g

    3

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    10/12

    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

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    11/12

    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

  • 8/12/2019 CalculiX Pipe Mesh Tutorial

    12/12

    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