User:Eml5526.s11.team4.yang/hw4

=Problem 4.7: CGX Project and Tutorial=

From the lecture slide Mtg23

Problem Statement

 * 1) install cgx.
 * 2) Read manual; sign up with user group to ask questions if any, also access archive.
 * 3) Reproduce the basic examples:disk, cylinder, sphere, sphere-volume, airfoil.
 * 4) Write a report for "dummies": explain how to install and run cgx.

Final Report
Installation and run:
 * 1) Download the windows-version of Calculix from its website, and then install it on computer.
 * 2) Run the CalculiX Command: [Start] [Programs] [bConverged][CalculiX] [CalculiX Command]
 * 3) Reproduce the basic examples

A. The “disc” problem
1. First switch to the directory of working ‘E:\Documents\ccx’.

2. Then input the command ‘cgx –b disc.fbd’, there will appear another command “CalculiX Graphix”.

3. Input the command” pnt [  ]” and then plot all the points with the command ‘plot p all b’. For example, ”PNT py  0.0  1.0 0.0” is used to define a point which is located at (0,1,0).

PNT py     -0.00000        1.00000        0.00000

The figure is showed below.



4. Input the command” line    ” and the “gsur '+|-'BLEND| ' '+|-'  '+|-' -> .. (3-5 times)and then plot all the lines and surfaces with command ‘plus’. For example, “LINE L001 P00I P001 p0 4 ” is used to define a arc line which pass through points P00I and P001 and its center point is p0 and radius is 4.

LINE L001 P00I P001 p0 4

GSUR A001 + BLEND - L003 - L002 - L001 - L004

The figure is showed below.



5. You can use mouse on the Graphix command to rotate and zoom in or out the figure.

6. Input the command ‘ELTY all QU4’ to assign the element type and then ‘mesh all’ to mesh the geometry, and then left-click on the marginal area on the Graphix, then on ’Viewing’ and continue to ‘show all elements with light’ and ‘Toggle Element edges’, as showed in following figures





B. The “cylinder” problem
1. First switch to the directory of working ‘E:\Documents\ccx’.

2. Then input the command ‘cgx –b cylinder.fbd’, there will appear another command “CalculiX Graphix”.

3. Input the command” pnt [  ]” and then plot all the points. Input the command” line    ” and the “gsur '+|-'BLEND| ' '+|-'  '+|-' -> .. (3-5 times)and then plot all the lines and surfaces. The figure is showed below



4. Use the command “seta |'n'|'e'|'p'|'l'|'c'|'s'|'b'|'S'|'L'|'se' <name ..> ['n'|'e' <name” to define some sets to be used in further loading operations. For example, “SETA p1 p p1” is to define a set of points which contains point p1.

5. You can use mouse on the Graphix command to rotate and zoom in or out the figure.

6. Input the command ‘ELTY all QU4’ and ‘mesh all’, and then left-click on the marginal area on the Graphix, then on ’Viewing’ and continue to ‘show all elements with light’ and ‘Toggle Element edges’, as showed in following figure.



C. The “sphere” problem
1. First switch to the directory of working ‘E:\Documents\ccx’

2. Then input the command ‘cgx –b sphere.fbd’, there will appear another command “CalculiX Graphix”.

3. Input the command” pnt [<x> <y> <z>]” and then plot all the points with the command ‘plot p all b’. For example, ”PNT py  0.0  1.0 0.0” is used to define a point which is located at (0,1,0). The figure is showed below.



4. Input the command” line <p1> <p2> <cp|seq> ” and the “gsur '+|-'BLEND| ' '+|-' <line|lcmb> '+|-' -><line|lcmb> .. (3-5 times)and then plot all the lines and surfaces with command ‘plus’. For example, “LINE L001 P00I P001 p0 104 ” is used to define a arc line which pass through points P00I and P001 and its center point is p0 and radius is 104. The figure is showed below.



5. Input the command ‘ELTY all QU4’ and ‘mesh all’, and then left-click on the marginal area on the Graphix, then on ’Viewing’ and continue to ‘show all elements with light’ and ‘Toggle Element edges’, as showed in following figure.



D. The “sphere-volume” problem
1. First switch to the directory of working ‘E:\Documents\ccx’

2. Then input the command ‘cgx –b sphere-volu.fbd’, there will appear another command “CalculiX Graphix”.

3. Input the command” pnt [<x> <y> <z>]” and then plot all the points. Input the command” line <p1> <p2> <cp|seq> ” and the “gsur '+|-'BLEND| ' '+|-' <line|lcmb> '+|-' -><line|lcmb> .. (3-5 times)and then plot all the lines and surfaces. The figure is showed below



4. Input the command” gbod 'NORM' '+|-' '+|-' ->( 5-7 surfaces )” to define a volume. For example, “GBOD B001 NORM + A006 - A003 - A004 + A002 + A001” is to define a volume which consists of these above areas. GBOD B001 NORM + A006 - A003 - A004 + A002 + A001

5. Input the command ‘ELTY all he20’ and ‘mesh all’, and then left-click on the marginal area on the Graphix, then on ’Viewing’ and continue to ‘show all elements with light’ and ‘Toggle Element edges’, as showed in following figure.



E. The “airfoil” problem
1. First switch to the directory of working ‘E:\Documents\ccx’

2. Then input the command ‘cgx –b airfoil.fbd’, there will appear another command “CalculiX Graphix”.

3. Input the command” pnt [<x> <y> <z>]” and then plot all the points with the command ‘plot p all b’. For example, ” PNT P05D     0.00118       -5.37045        0.00000” is used to define a point which is located at (0.00118,-5.37045,0.00000). The figure is showed below.



4. Input the command ”seqa ['pnt' .. <=>]|['afte'|'befo' .. <=>]|['end' .. <=>]” to define a sequential set. For example, “SEQA S005 pnt  P010 P00C P00A P01C” is used to define a sequential point set which pass through points P010 P00C P00A P01C sequentially.

SEQA S006    pnt  P01A P00A P00C P00E P00G P00I P00J P00K P00L P019

5. Input the command ”lcmb ['+|-' '+|-' '+|-' ->  ..(up to 14 lines)]| ['ADD' '+|-' '+|-' -> '+|-' ..(up to 14 lines)]” to combine lines. For example, “ LCMB C001 + L015 + L01X + L01Y + L016” is used to combine the lines of C001, L015 + L01X + L01Y, L016.

LCMB C001 + L001 + L002 + L00A + L00L + L009

6. Input the command” line <p1> <p2> <cp|seq>” and the “gsur '+|-'BLEND| ' '+|-' <line|lcmb> '+|-' -><line|lcmb> .. (3-5 times)and then plot all the lines and surfaces with command ‘plus’. For example, “LINE L001 P00I P001 p0 104 ” is used to define a arc line which pass through points P00I and P001 and its center point is p0 and radius is 104. The figure is showed below.



7. Input the command ‘ELTY all QU4’ and ‘mesh all’, and then left-click on the marginal area on the Graphix, then on ’Viewing’ and continue to ‘show all elements with light’ and ‘Toggle Element edges’, as showed in following figure.