User:Egm6321.f10.team2.oztekin/Newwww

=Problem 4.7 :Calculix user guide and examples=

Starting Calculix
First Step: Download

Calculix is a open source finite element suite. It has its own pre and post processor so by this way user can prepare the model and solve by defining boundry conditions in calculix. Ths solver, CCX, was written and is maintained by Guido Dhondt.The pre and post processor, CGX, was written and is maintained by Klaus Wittig. You can download the latest version from Convergent Mechanical Solutions website.Convergent has dona an excellent job by integrating an installation wizard with the distribution which makes the installation process straightforward.


 * For downloading calculix for Windows operating system : http://www.bconverged.com/products.php

Follow the on screen prompts. User will be prompted to select a working folder.


 * The source code,Linux builds,documentation,tests,and other resources for Calculix : http://www.calculix.de/

Second Step: Test

Before starting Calculix we need to accomplish one more step.


 * {| style="width:100%" border="0"

$$  \displaystyle [Start]--[All Programs]--[bConverged]--[Calculix]--[Test Calculix *.*] $$
 * style="width:95%" |
 * style="width:95%" |
 * }

Using Calculix
To open Calculix go to


 * {| style="width:100%" border="0"

$$  \displaystyle [Start]--[All Programs]--[bConverged]--[Calculix]--[Calculix Command] $$
 * style="width:95%" |
 * style="width:95%" |
 * }

We have just opened Calculix command window. Command window was opened automatically in the working direction that we have defined in installation process. Now we should be familiar with the program parameters.


 * {| style="width:100%" border="0"

$$  \displaystyle Command: cgx [-a|-b|-c|-duns2d|-duns3d|-isaac2d|-isaac3d|-foam|-step|-stl]  filename $$
 * style="width:95%" |
 * style="width:95%" |
 * }

Now we can open one example. Examples can be download from Calculix website. Fortunately Converged already added examples in the Calculix file. So examples can be found in the directory of Converged.

Since we are in the working directory download examples or copy all the examples to our working directory to open them. Or change the directory into directory where your examples placed. And type ' cgx -b sphere.fbd '. Impartant !!!: Always touch on graph screen and leave the mouse before writing commands. Arrange a good place for your command window so you can see your commands on your screen.

Command line $$ \displaystyle \Rightarrow $$ C:\..........\examples\basic>cgx -b sphere.fbd



By using mouse you can rotate, zoom in out on the figure. Rotation of the object is controlled by the left mouse button, zoom in and out by the middle mouse button and translation of the object is controlled by the right mouse button. Try these options of mouse and get used to oriantate the figure.

Example: Learning with example
Lets learn more by doing example on Calculix. We can broaden our knowledge on commands by doing examples. We can take modelling disc as an example.


 * Run Calculix Command
 * Type cgx -b discmodel.fbd (You probably get an error message. Because there is no exists file name: discmodel)

To start with modelling we have to remember the construction procedure. First we will construct nodes, lines, surfaces, and the bodies. Lets look at point command.


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} Command: 'pnt' & |'!' [  ]| \\ & [   ]| \\                             &  [   ]| \\ & []
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$
 * }


 * To type command please remember to press and release to the graph window with left button.
 * type pnt y  -0.00000        1.00000        0.00000  (recognizing that py is a dummy with three coordinates on xyz plane)
 * type pnt P0  -0.00000       -0.00000        0.00000
 * type pnt P001 0.70711       -0.00000       -0.70711
 * type pnt P003 -0.00000      -0.00000       -1.00000
 * type pnt P005 -0.70711      -0.00000       -0.70711
 * type pnt P006 -1.00000      -0.00000        0.00000
 * type pnt P009 -0.70711       -0.00000       0.70711
 * type pnt P00A 0.00000       -0.00000        1.00000
 * type pnt P00G 0.70711       -0.00000        0.70711
 * type pnt P00I 1.00000       -0.00000       -0.00000



Probably for now you can not see point attributes. To see complete points with attributes check new command.


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} Command: 'plot' & ['n'|'e'|'f'|'p'|'l'|'s'|'b'|'S'|'L']&['a'|'d'|'p'|'q'|'v'] -> \\ & 'w'|'k'|'r'|'g'|'b'|'y'|'m'
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$
 * }


 * type plot pa all (get the same view with graph)


 * {| style="width:100%" border="0"

$$  \displaystyle Command: 'line' |'!'   
 * style="width:95%" |
 * style="width:95%" |

$$
 * }


 * Type line L001 P00I P001 p0 4



As you see above we just created arc for a portion of disc. Even if the command's name is line we also create arcs with the same command. L001 is a dummy name. P00I and P001 are limits. p0 is the center. 4 is division. To see the line attributes


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} Command: 'plus'  & ['n'|'e'|'f'|'p'|'l'|'s'|'b'|'S'|'L']&['a'|'d'|'p'|'q'|'v'] -> \\ & 'w'|'k'|'r'|'g'|'b'|'y'|'m'|'i'
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$
 * }


 * Type plus la all

Plus has the same job with plot. Plus keeps other visuals where plot filters.


 * Type line L002 P001 P003 p0 4
 * Type line L003 P003 p0 8
 * Type line L004 p0 P00I 8
 * Type line L005 P003 P005 p0 4
 * Type line L006 P005 P006 p0 4
 * Type line L007 P006 p0 8
 * Type line L009 P006 P009 p0 4
 * Type line L00A P009 P00A p0 4
 * Type line L00C P00A p0 8
 * Type line L00G P00A P00G p0 4
 * Type line L00I P00G P00I p0 4

To finish model we need surfaces.


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} Command: 'gsur' &|'!' '+|-' 'BLEND| ' '+|-'  '+|-' -> \\ &
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$
 * }

This keyword is used to define or redefine a surface. Surfaces are defined with boundary lines.


 * Type gsur A001 + BLEND - L003 - L002 - L001 - L004
 * Type gsur A002 + BLEND - L007 - L006 - L005 + L003
 * Type gsur A003 + BLEND - L00C - L00A - L009 + L007
 * Type gsur A004 + BLEND + L004 - L00I - L00G + L00C



The last part of this example we create meshes. Elements tr3,qu4, and qu8 are for meshing surfaces and he8 and he20 to mesh bodies.


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} Command: 'elty' &[ ] ['be2'|'be3'|'tr3'|'tr3u'|'tr6'|'qu4'|-> \\ &'qu8'|'he8'|'he8f'||'he8i'|'he8r'|'he20'|'he20r']
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$
 * }


 * Type elty all QU4
 * Type mesh all

We just have meshed the surface with an elements of qu4.


 * Type plot m all



Basic Models