User:Eml5526.s11.team5.vijay
6.3 Beam Tutorial for Calculix by Ty Beede [edit]
Given: Tutorial by Beede on mechanicalhacks blog [edit]
A step by step tutorial explaining how to analyze a beam using Calculix can be found at [1]
Find: Reproduce Beam Tutorial [edit]
Reproduce all steps in the tutorial by Ty Beede
Solution [edit]
Calculix is an open source Finite Element code (with ABAQUS like input) available at http://www.dhondt.de/
More details on installation can be found at Calculix Installation Procedure
Analysis using Calculix is divided into 4 steps:
-
- 1) Buliding Geometry and Meshing
-
- 2) Exporting Mesh, Loads, and Boundary Conditions
-
- 3) Writing an Input File for the CCX Solver
-
- 4) Post Processing Results in CGX
In this tutorial we analyze a cantilever beam subjected to pressure load at one end and fixed at the other end.
Step 1: Buliding Geometry and Meshing [edit]
Create a new file 'Beam.fbd' in the SciTE editor. To construct the 3D geometry of the beam we do the following:
(Note: code used to generate the geometry and commands required to display the geometry at each step are embedded at the bottom of each screen shot)
a) Define points and join them to create lines
b) Sweep the lines to create a surface
c) Sweep the surface to create a volume
d) Assign Element Types and mesh the geometry
| Code to create geometry and generate mesh 'beam.fbd' |
|---|
|
seto beam pnt p1 0 0 0 pnt p2 25 0 0 pnt p3 50 0 0 pnt p4 75 0 0 pnt p5 100 0 0 line l1 p1 p2 25 line l2 p2 p3 25 line l3 p3 p4 25 line l4 p4 p5 25 seta lines l l1 l2 l3 l4 swep lines sweplines tra 0 10 0 10 seta surfaces s A001 A002 A003 A004 swep surfaces swepsurfaces tra 0 0 1 1 setc beam elty beam he8 mesh beam send beam abq rot -z frame |
Step 2: Exporting Mesh, Loads, and Boundary Conditions [edit]
In the earlier section we created the geometry and generated a mesh.
The 'send beam abq' command used at the end of the 'beam.fbd' file, generates the node & element information upon preprocessing. This data is saved in 'beam.msh' file in the same directory.
The mesh data can be found here:beam.msh
After the mesh has been created we need to Apply the Boundary conditions and Loads:
Applying the Boundary Conditions [edit]
-> Use the command 'plot n all' to display all the nodes
-> Zoom in to the left end of the beam where Boundary condition is to be applied.
-> Type 'qadd fixed' and hit enter. The qadd command provides a graphical selection method that can be used interactively with the mouse. The qadd command will stay active until the 'q' button is pressed on the keyboard.
At the tip of the mouse pointer is a little rectangle outlined in black. With the 'qadd' command active the mouse is used to select items like nodes, elements, faces, points, lines, and etc. The items desired for selection must fall within the bounds of the little black rectangle shown above. When the rectangle is hovering over the desired object press the keyboard button corresponding to the item of interest in order to add it to the set. In this case the 'n' button will be used to select nodes within the bounds of the rectangle.
For adding items in bulk it will be necessary to change the size of the selection rectangle.The 'r' key on the keyboard is used to define two points of a rectangle which will become the new selection area for qadd. Simply press the 'r' button and the current cursor position becomes the new location for a corner of the selection area. Move the mouse in the horizontal and vertical directions such that it is offset from the previous point. Press the 'r' button again and a new selection rectangle has been defined.
In order to select all the nodes of the left hand edge the selection area will be made large enough to encompass the entire edge. In addition there are two selection modes used by the qadd command. The default selection mode adds one item each time the corresponding keyboard button is pressed. This works good for selecting one of a particular item with a small selection rectangle. If the desire is to bulk add all the items located within the selection rectangle the mode:a should be used. While the 'qadd' command is active press the 'a' button on the keyboard to active bulk add.
-> after mode:a has been selected hit 'n' to select all the nodes inside the rectangle to apply the fixed boundary condition.
The output window looks like this upon selecting the nodes to be fixed:
Now that the nodes have been added to the set fixed the qadd command can be quit using the q button.
-> In order to visualize the nodes contained in the set fixed, Change the color of the nodes and toggle the background color
Background can be toggled to black using the menu system command 'Viewing->Toggle Background Color'
Color of the node list can be changed by using the following command 'plus n fixed g'
The visualization screens appears as follows:
-> The boundary condition is saved to a separate file(.bou) using the command 'send fixed abq spc 123'
The generated file containing Boundary conditions, the command used to generate the file and the message displayed on the output window are shown:
The boundary conditions data can be found at: fixed_123.bou
Applying the loads [edit]
In this example we apply a distributed pressure load on an element towards the right end in the Y-direction, to create a moment along the Z-direction.
-> Plot the faces of the beam using 'plot f beam' command, then use 'view elem' command.
-> Zoom in to the right end and type 'qadd load' and hit enter. Then move the mouse over the element where load needs to be applied and hit 'f' to select that face.
-> Then type 'send load abq pres 10' and hit enter, this command applies a load of 10 on the selected face and saves the load data file.
| Load data 'load.dlo' |
|---|
** Pressure based on load 751, P6, 10.000000 |
Step 3: Writing an Input File for the CCX Solver [edit]
Open SciTE and create a new file named 'beam.inp'. This document should be located with the files from the previous articles. Add the following code:
| Input File for CCX 'beam.inp' |
|---|
*HEADING Model: Calculix Beam Input File *INCLUDE, INPUT=beam.msh *BOUNDARY *INCLUDE, INPUT=fixed_123.bou *MATERIAL, NAME=EL *ELASTIC 30000000, 0.3 *SOLID SECTION, ELSET=Ebeam, MATERIAL=EL *STEP *STATIC *DLOAD *INCLUDE, INPUT=load.dlo *NODE FILE U *EL FILE S *END STEP |
In this example the input file contains the files names of the node, element data, boundary conditions, loads. and other information like material properties are defined in this file. (Note: It is not necessary that node data, boundary conditions, load data be declared in separate files. If the data is simple & small it can directly be typed in the input file)
After the input file is ready, we can submit the job for solving ('Ctrl+F10' or 'Tools>Solve').
a screen shot of the input code for ccx and the output window after solving the code are shown:
Step 4: Post Processing Results in CGX [edit]
->After the solving is done, post-processing can be done by clicking on 'Tools>Post Process' or 'Shift + F10'.
->In this simulation there are two fields available for visualization. They are displacement and stress. Clicking on one of the menu items at this level will select the results field of interest.Then the particular information from the field will need to be specified. This is done by choosing an option from within the -Entity- submenu will result in a colored plot of the selected field information as shown below.
-> The deformed shape can be visualized by selecting 'Viewing>ToggleAdd-Displacement'
To scale up the displacement use the keyboard command scal d 10000.
->Another option to visualize the shape of the deformed structure is through animation. This feature will animate the model’s deformation with user specified scale. Use the menu system and select Animate->Start to view the animation. The image below shows the beam as it oscillates between -100% and 100% of the deformation amplitude.
->The cgx post-processing mode allows the user to specify a cut plane. The plane will cut through the model and show the field results for the intersection of the model and plane. The cut plane is defined by three nodes. The nodes can be specified from the menu system using the Cut menu.
The following image shows the result of cutting the beam top to bottom. The field shown is the normal stress in the x direction. The results are as we would expect, the top of the beam is in tension and the bottom is in compression.
->In addition values from the different result fields can be plotted to a graph for interpretation. The graph command is accessible from the menu system under Graph. The graph is also accessible through the command line.
The nodes are selected three at a time, then the 'tra l 10' command is used to pan the model to the left by translation of 10 units. At which point another few nodes are selected. This process is repeated as the translation command moves towards the free end. Then the last nodes are selected and the right mouse button is used to finish the selection process. Finally, the following graph is promptly displayed.
->While viewing the colored plot of a results field it is also possible to add the nodal values. The following images shows top side of the beam’s free end. The nodal values are printed in yellow using the commmand 'plus nv all y'. These values agree with the results of the graph.
5.5 Calculix CCX examples [edit]
Given: open source Finite Element code (Calculix) [edit]
-
Calculix is an open source Finite Element code (with ABAQUS like input) available at http://www.dhondt.de/
Find: installation and run Calculix Crunchix(CCX) [edit]
-
1) For the Disk problem, find
-
a)Node info
-
b)Element info
-
2) Generate 3 meshes of same disk with triangular elements. (increase the number of elements)
-
3) Install CCX, run examples and write a report explaining the commands used.
Solution [edit]
1) Node, Element Info [edit]
-
The Node Info and Element Info can be extracted by including a command SEND ALL ABQ, after the mesh has been created.
-
The node info, element info is shown below:
| Input file 'disc.fbd' |
|---|
1,1.000000000000e+000,0.000000000000e+000,0.000000000000e+000
2,8.750000000000e-001,0.000000000000e+000,0.000000000000e+000
3,8.372348873655e-001,0.000000000000e+000,-1.688022838040e-001
4,9.807862604341e-001,0.000000000000e+000,-1.950912283775e-001
5,7.809160457880e-001,0.000000000000e+000,-3.300086069888e-001
6,9.238812745202e-001,0.000000000000e+000,-3.826851743742e-001
7,7.014554304266e-001,0.000000000000e+000,-4.766925996037e-001
8,8.314720633460e-001,0.000000000000e+000,-5.555727099321e-001
9,5.974957786802e-001,0.000000000000e+000,-6.027040866209e-001
10,7.071100000000e-001,0.000000000000e+000,-7.071100000000e-001
11,7.500000000000e-001,0.000000000000e+000,0.000000000000e+000
12,7.100185831110e-001,0.000000000000e+000,-1.484397974159e-001
13,6.595398969487e-001,0.000000000000e+000,-2.892031211963e-001
14,5.937742306568e-001,0.000000000000e+000,-4.145912284784e-001
15,5.094120547762e-001,0.000000000000e+000,-5.188570933910e-001
16,6.250000000000e-001,0.000000000000e+000,0.000000000000e+000
17,5.906786387193e-001,0.000000000000e+000,-1.338962040395e-001
18,5.505078253625e-001,0.000000000000e+000,-2.594681330883e-001
19,5.016134070308e-001,0.000000000000e+000,-3.687946618434e-001
20,4.412536358310e-001,0.000000000000e+000,-4.533261698366e-001
21,5.000000000000e-001,0.000000000000e+000,0.000000000000e+000
22,4.744656910347e-001,0.000000000000e+000,-1.247840378278e-001
23,4.473245950959e-001,0.000000000000e+000,-2.416027232510e-001
24,4.191523486237e-001,0.000000000000e+000,-3.416622918674e-001
25,3.963648827553e-001,0.000000000000e+000,-4.094676107248e-001
26,3.750000000000e-001,0.000000000000e+000,0.000000000000e+000
27,3.583119929846e-001,0.000000000000e+000,-1.213592672254e-001
28,3.422813262448e-001,0.000000000000e+000,-2.365601721328e-001
29,3.297269942206e-001,0.000000000000e+000,-3.408175988494e-001
30,3.284676644579e-001,0.000000000000e+000,-4.301027892252e-001
31,3.559254272187e-001,0.000000000000e+000,-5.106042090151e-001
32,4.042192393491e-001,0.000000000000e+000,-5.995205331169e-001
33,4.705056636509e-001,0.000000000000e+000,-7.041464245531e-001
34,5.555727099321e-001,0.000000000000e+000,-8.314720633460e-001
35,2.500000000000e-001,0.000000000000e+000,0.000000000000e+000
36,2.406295035644e-001,0.000000000000e+000,-1.209887535644e-001
37,2.322224731114e-001,0.000000000000e+000,-2.380819231114e-001
38,2.271737475323e-001,0.000000000000e+000,-3.496210426518e-001
39,2.309888899212e-001,0.000000000000e+000,-4.537144114521e-001
40,2.487605734386e-001,0.000000000000e+000,-5.554149348486e-001
41,2.803859997985e-001,0.000000000000e+000,-6.622253762776e-001
42,3.247414090092e-001,0.000000000000e+000,-7.819690620798e-001
43,3.826851743742e-001,0.000000000000e+000,-9.238812745202e-001
44,1.250000000000e-001,0.000000000000e+000,0.000000000000e+000
45,1.210402765905e-001,0.000000000000e+000,-1.224934265905e-001
46,1.170846129529e-001,0.000000000000e+000,-2.435377629529e-001
47,1.155408348481e-001,0.000000000000e+000,-3.617781943090e-001
48,1.186051492978e-001,0.000000000000e+000,-4.769624085932e-001
49,1.279463581165e-001,0.000000000000e+000,-5.922727073008e-001
50,1.436097117624e-001,0.000000000000e+000,-7.106674158047e-001
51,1.659253080268e-001,0.000000000000e+000,-8.369238788270e-001
52,1.950912283775e-001,0.000000000000e+000,-9.807862604341e-001
53,0.000000000000e+000,0.000000000000e+000,0.000000000000e+000
54,0.000000000000e+000,0.000000000000e+000,-1.250000000000e-001
55,0.000000000000e+000,0.000000000000e+000,-2.500000000000e-001
56,0.000000000000e+000,0.000000000000e+000,-3.750000000000e-001
57,0.000000000000e+000,0.000000000000e+000,-5.000000000000e-001
58,0.000000000000e+000,0.000000000000e+000,-6.250000000000e-001
59,0.000000000000e+000,0.000000000000e+000,-7.500000000000e-001
60,0.000000000000e+000,0.000000000000e+000,-8.750000000000e-001
61,0.000000000000e+000,0.000000000000e+000,-1.000000000000e+000
62,-1.688022838040e-001,0.000000000000e+000,-8.372348873655e-001
63,-1.950912283775e-001,0.000000000000e+000,-9.807862604341e-001
64,-3.300086069888e-001,0.000000000000e+000,-7.809160457880e-001
65,-3.826851743742e-001,0.000000000000e+000,-9.238812745202e-001
66,-4.766925996037e-001,0.000000000000e+000,-7.014554304266e-001
67,-5.555727099321e-001,0.000000000000e+000,-8.314720633460e-001
68,-6.027040866209e-001,0.000000000000e+000,-5.974957786802e-001
69,-7.071100000000e-001,0.000000000000e+000,-7.071100000000e-001
70,-1.484397974159e-001,0.000000000000e+000,-7.100185831110e-001
71,-2.892031211963e-001,0.000000000000e+000,-6.595398969487e-001
72,-4.145912284784e-001,0.000000000000e+000,-5.937742306568e-001
73,-5.188570933910e-001,0.000000000000e+000,-5.094120547762e-001
74,-1.338962040395e-001,0.000000000000e+000,-5.906786387193e-001
75,-2.594681330883e-001,0.000000000000e+000,-5.505078253625e-001
76,-3.687946618434e-001,0.000000000000e+000,-5.016134070308e-001
77,-4.533261698366e-001,0.000000000000e+000,-4.412536358310e-001
78,-1.247840378278e-001,0.000000000000e+000,-4.744656910347e-001
79,-2.416027232510e-001,0.000000000000e+000,-4.473245950959e-001
80,-3.416622918674e-001,0.000000000000e+000,-4.191523486237e-001
81,-4.094676107248e-001,0.000000000000e+000,-3.963648827553e-001
82,-1.213592672254e-001,0.000000000000e+000,-3.583119929846e-001
83,-2.365601721328e-001,0.000000000000e+000,-3.422813262448e-001
84,-3.408175988494e-001,0.000000000000e+000,-3.297269942206e-001
85,-4.301027892252e-001,0.000000000000e+000,-3.284676644579e-001
86,-5.106042090151e-001,0.000000000000e+000,-3.559254272187e-001
87,-5.995205331169e-001,0.000000000000e+000,-4.042192393491e-001
88,-7.041464245531e-001,0.000000000000e+000,-4.705056636509e-001
89,-8.314720633460e-001,0.000000000000e+000,-5.555727099321e-001
90,-1.209887535644e-001,0.000000000000e+000,-2.406295035644e-001
91,-2.380819231114e-001,0.000000000000e+000,-2.322224731114e-001
92,-3.496210426518e-001,0.000000000000e+000,-2.271737475323e-001
93,-4.537144114521e-001,0.000000000000e+000,-2.309888899212e-001
94,-5.554149348486e-001,0.000000000000e+000,-2.487605734386e-001
95,-6.622253762776e-001,0.000000000000e+000,-2.803859997985e-001
96,-7.819690620798e-001,0.000000000000e+000,-3.247414090092e-001
97,-9.238812745202e-001,0.000000000000e+000,-3.826851743742e-001
98,-1.224934265905e-001,0.000000000000e+000,-1.210402765905e-001
99,-2.435377629529e-001,0.000000000000e+000,-1.170846129529e-001
100,-3.617781943090e-001,0.000000000000e+000,-1.155408348481e-001
101,-4.769624085932e-001,0.000000000000e+000,-1.186051492978e-001
102,-5.922727073008e-001,0.000000000000e+000,-1.279463581165e-001
103,-7.106674158047e-001,0.000000000000e+000,-1.436097117624e-001
104,-8.369238788270e-001,0.000000000000e+000,-1.659253080268e-001
105,-9.807862604341e-001,0.000000000000e+000,-1.950912283775e-001
106,-1.250000000000e-001,0.000000000000e+000,0.000000000000e+000
107,-2.500000000000e-001,0.000000000000e+000,0.000000000000e+000
108,-3.750000000000e-001,0.000000000000e+000,0.000000000000e+000
109,-5.000000000000e-001,0.000000000000e+000,0.000000000000e+000
110,-6.250000000000e-001,0.000000000000e+000,0.000000000000e+000
111,-7.500000000000e-001,0.000000000000e+000,0.000000000000e+000
112,-8.750000000000e-001,0.000000000000e+000,0.000000000000e+000
113,-1.000000000000e+000,0.000000000000e+000,0.000000000000e+000
114,-8.372348873655e-001,0.000000000000e+000,1.688022838040e-001
115,-9.807862604341e-001,0.000000000000e+000,1.950912283775e-001
116,-7.809160457880e-001,0.000000000000e+000,3.300086069888e-001
117,-9.238812745202e-001,0.000000000000e+000,3.826851743742e-001
118,-7.014554304266e-001,0.000000000000e+000,4.766925996037e-001
119,-8.314720633460e-001,0.000000000000e+000,5.555727099321e-001
120,-5.974957786802e-001,0.000000000000e+000,6.027040866209e-001
121,-7.071100000000e-001,0.000000000000e+000,7.071100000000e-001
122,-7.100185831110e-001,0.000000000000e+000,1.484397974159e-001
123,-6.595398969487e-001,0.000000000000e+000,2.892031211963e-001
124,-5.937742306568e-001,0.000000000000e+000,4.145912284784e-001
125,-5.094120547762e-001,0.000000000000e+000,5.188570933910e-001
126,-5.906786387193e-001,0.000000000000e+000,1.338962040395e-001
127,-5.505078253625e-001,0.000000000000e+000,2.594681330883e-001
128,-5.016134070308e-001,0.000000000000e+000,3.687946618434e-001
129,-4.412536358310e-001,0.000000000000e+000,4.533261698366e-001
130,-4.744656910347e-001,0.000000000000e+000,1.247840378278e-001
131,-4.473245950959e-001,0.000000000000e+000,2.416027232510e-001
132,-4.191523486237e-001,0.000000000000e+000,3.416622918674e-001
133,-3.963648827553e-001,0.000000000000e+000,4.094676107248e-001
134,-3.583119929846e-001,0.000000000000e+000,1.213592672254e-001
135,-3.422813262448e-001,0.000000000000e+000,2.365601721328e-001
136,-3.297269942206e-001,0.000000000000e+000,3.408175988494e-001
137,-3.284676644579e-001,0.000000000000e+000,4.301027892252e-001
138,-3.559254272187e-001,0.000000000000e+000,5.106042090151e-001
139,-4.042192393491e-001,0.000000000000e+000,5.995205331169e-001
140,-4.705056636509e-001,0.000000000000e+000,7.041464245531e-001
141,-5.555727099321e-001,0.000000000000e+000,8.314720633460e-001
142,-2.406295035644e-001,0.000000000000e+000,1.209887535644e-001
143,-2.322224731114e-001,0.000000000000e+000,2.380819231114e-001
144,-2.271737475323e-001,0.000000000000e+000,3.496210426518e-001
145,-2.309888899212e-001,0.000000000000e+000,4.537144114521e-001
146,-2.487605734386e-001,0.000000000000e+000,5.554149348486e-001
147,-2.803859997985e-001,0.000000000000e+000,6.622253762776e-001
148,-3.247414090092e-001,0.000000000000e+000,7.819690620798e-001
149,-3.826851743742e-001,0.000000000000e+000,9.238812745202e-001
150,-1.210402765905e-001,0.000000000000e+000,1.224934265905e-001
151,-1.170846129529e-001,0.000000000000e+000,2.435377629529e-001
152,-1.155408348481e-001,0.000000000000e+000,3.617781943090e-001
153,-1.186051492978e-001,0.000000000000e+000,4.769624085932e-001
154,-1.279463581165e-001,0.000000000000e+000,5.922727073008e-001
155,-1.436097117624e-001,0.000000000000e+000,7.106674158047e-001
156,-1.659253080268e-001,0.000000000000e+000,8.369238788270e-001
157,-1.950912283775e-001,0.000000000000e+000,9.807862604341e-001
158,0.000000000000e+000,0.000000000000e+000,1.250000000000e-001
159,0.000000000000e+000,0.000000000000e+000,2.500000000000e-001
160,0.000000000000e+000,0.000000000000e+000,3.750000000000e-001
161,0.000000000000e+000,0.000000000000e+000,5.000000000000e-001
162,0.000000000000e+000,0.000000000000e+000,6.250000000000e-001
163,0.000000000000e+000,0.000000000000e+000,7.500000000000e-001
164,0.000000000000e+000,0.000000000000e+000,8.750000000000e-001
165,0.000000000000e+000,0.000000000000e+000,1.000000000000e+000
166,1.688022838040e-001,0.000000000000e+000,8.372348873655e-001
167,1.950912283775e-001,0.000000000000e+000,9.807862604341e-001
168,3.300086069888e-001,0.000000000000e+000,7.809160457880e-001
169,3.826851743742e-001,0.000000000000e+000,9.238812745202e-001
170,4.766925996037e-001,0.000000000000e+000,7.014554304266e-001
171,5.555727099321e-001,0.000000000000e+000,8.314720633460e-001
172,6.027040866209e-001,0.000000000000e+000,5.974957786802e-001
173,7.071100000000e-001,0.000000000000e+000,7.071100000000e-001
174,1.484397974159e-001,0.000000000000e+000,7.100185831110e-001
175,2.892031211963e-001,0.000000000000e+000,6.595398969487e-001
176,4.145912284784e-001,0.000000000000e+000,5.937742306568e-001
177,5.188570933910e-001,0.000000000000e+000,5.094120547762e-001
178,1.338962040395e-001,0.000000000000e+000,5.906786387193e-001
179,2.594681330883e-001,0.000000000000e+000,5.505078253625e-001
180,3.687946618434e-001,0.000000000000e+000,5.016134070308e-001
181,4.533261698366e-001,0.000000000000e+000,4.412536358310e-001
182,1.247840378278e-001,0.000000000000e+000,4.744656910347e-001
183,2.416027232510e-001,0.000000000000e+000,4.473245950959e-001
184,3.416622918674e-001,0.000000000000e+000,4.191523486237e-001
185,4.094676107248e-001,0.000000000000e+000,3.963648827553e-001
186,1.213592672254e-001,0.000000000000e+000,3.583119929846e-001
187,2.365601721328e-001,0.000000000000e+000,3.422813262448e-001
188,3.408175988494e-001,0.000000000000e+000,3.297269942206e-001
189,4.301027892252e-001,0.000000000000e+000,3.284676644579e-001
190,5.106042090151e-001,0.000000000000e+000,3.559254272187e-001
191,5.995205331169e-001,0.000000000000e+000,4.042192393491e-001
192,7.041464245531e-001,0.000000000000e+000,4.705056636509e-001
193,8.314720633460e-001,0.000000000000e+000,5.555727099321e-001
194,1.209887535644e-001,0.000000000000e+000,2.406295035644e-001
195,2.380819231114e-001,0.000000000000e+000,2.322224731114e-001
196,3.496210426518e-001,0.000000000000e+000,2.271737475323e-001
197,4.537144114521e-001,0.000000000000e+000,2.309888899212e-001
198,5.554149348486e-001,0.000000000000e+000,2.487605734386e-001
199,6.622253762776e-001,0.000000000000e+000,2.803859997985e-001
200,7.819690620798e-001,0.000000000000e+000,3.247414090092e-001
201,9.238812745202e-001,0.000000000000e+000,3.826851743742e-001
202,1.224934265905e-001,0.000000000000e+000,1.210402765905e-001
203,2.435377629529e-001,0.000000000000e+000,1.170846129529e-001
204,3.617781943090e-001,0.000000000000e+000,1.155408348481e-001
205,4.769624085932e-001,0.000000000000e+000,1.186051492978e-001
206,5.922727073008e-001,0.000000000000e+000,1.279463581165e-001
207,7.106674158047e-001,0.000000000000e+000,1.436097117624e-001
208,8.369238788270e-001,0.000000000000e+000,1.659253080268e-001
209,9.807862604341e-001,0.000000000000e+000,1.950912283775e-001
1, 1, 2, 3, 4
2, 4, 3, 5, 6
3, 6, 5, 7, 8
4, 8, 7, 9, 10
5, 2, 11, 12, 3
6, 3, 12, 13, 5
7, 5, 13, 14, 7
8, 7, 14, 15, 9
9, 11, 16, 17, 12
10, 12, 17, 18, 13
11, 13, 18, 19, 14
12, 14, 19, 20, 15
13, 16, 21, 22, 17
14, 17, 22, 23, 18
15, 18, 23, 24, 19
16, 19, 24, 25, 20
17, 21, 26, 27, 22
18, 22, 27, 28, 23
19, 23, 28, 29, 24
20, 24, 29, 30, 25
21, 25, 30, 31, 20
22, 20, 31, 32, 15
23, 15, 32, 33, 9
24, 9, 33, 34, 10
25, 26, 35, 36, 27
26, 27, 36, 37, 28
27, 28, 37, 38, 29
28, 29, 38, 39, 30
29, 30, 39, 40, 31
30, 31, 40, 41, 32
31, 32, 41, 42, 33
32, 33, 42, 43, 34
33, 35, 44, 45, 36
34, 36, 45, 46, 37
35, 37, 46, 47, 38
36, 38, 47, 48, 39
37, 39, 48, 49, 40
38, 40, 49, 50, 41
39, 41, 50, 51, 42
40, 42, 51, 52, 43
41, 44, 53, 54, 45
42, 45, 54, 55, 46
43, 46, 55, 56, 47
44, 47, 56, 57, 48
45, 48, 57, 58, 49
46, 49, 58, 59, 50
47, 50, 59, 60, 51
48, 51, 60, 61, 52
49, 61, 60, 62, 63
50, 63, 62, 64, 65
51, 65, 64, 66, 67
52, 67, 66, 68, 69
53, 60, 59, 70, 62
54, 62, 70, 71, 64
55, 64, 71, 72, 66
56, 66, 72, 73, 68
57, 59, 58, 74, 70
58, 70, 74, 75, 71
59, 71, 75, 76, 72
60, 72, 76, 77, 73
61, 58, 57, 78, 74
62, 74, 78, 79, 75
63, 75, 79, 80, 76
64, 76, 80, 81, 77
65, 57, 56, 82, 78
66, 78, 82, 83, 79
67, 79, 83, 84, 80
68, 80, 84, 85, 81
69, 81, 85, 86, 77
70, 77, 86, 87, 73
71, 73, 87, 88, 68
72, 68, 88, 89, 69
73, 56, 55, 90, 82
74, 82, 90, 91, 83
75, 83, 91, 92, 84
76, 84, 92, 93, 85
77, 85, 93, 94, 86
78, 86, 94, 95, 87
79, 87, 95, 96, 88
80, 88, 96, 97, 89
81, 55, 54, 98, 90
82, 90, 98, 99, 91
83, 91, 99, 100, 92
84, 92, 100, 101, 93
85, 93, 101, 102, 94
86, 94, 102, 103, 95
87, 95, 103, 104, 96
88, 96, 104, 105, 97
89, 54, 53, 106, 98
90, 98, 106, 107, 99
91, 99, 107, 108, 100
92, 100, 108, 109, 101
93, 101, 109, 110, 102
94, 102, 110, 111, 103
95, 103, 111, 112, 104
96, 104, 112, 113, 105
97, 113, 112, 114, 115
98, 115, 114, 116, 117
99, 117, 116, 118, 119
100, 119, 118, 120, 121
101, 112, 111, 122, 114
102, 114, 122, 123, 116
103, 116, 123, 124, 118
104, 118, 124, 125, 120
105, 111, 110, 126, 122
106, 122, 126, 127, 123
107, 123, 127, 128, 124
108, 124, 128, 129, 125
109, 110, 109, 130, 126
110, 126, 130, 131, 127
111, 127, 131, 132, 128
112, 128, 132, 133, 129
113, 109, 108, 134, 130
114, 130, 134, 135, 131
115, 131, 135, 136, 132
116, 132, 136, 137, 133
117, 133, 137, 138, 129
118, 129, 138, 139, 125
119, 125, 139, 140, 120
120, 120, 140, 141, 121
121, 108, 107, 142, 134
122, 134, 142, 143, 135
123, 135, 143, 144, 136
124, 136, 144, 145, 137
125, 137, 145, 146, 138
126, 138, 146, 147, 139
127, 139, 147, 148, 140
128, 140, 148, 149, 141
129, 107, 106, 150, 142
130, 142, 150, 151, 143
131, 143, 151, 152, 144
132, 144, 152, 153, 145
133, 145, 153, 154, 146
134, 146, 154, 155, 147
135, 147, 155, 156, 148
136, 148, 156, 157, 149
137, 106, 53, 158, 150
138, 150, 158, 159, 151
139, 151, 159, 160, 152
140, 152, 160, 161, 153
141, 153, 161, 162, 154
142, 154, 162, 163, 155
143, 155, 163, 164, 156
144, 156, 164, 165, 157
145, 165, 164, 166, 167
146, 167, 166, 168, 169
147, 169, 168, 170, 171
148, 171, 170, 172, 173
149, 164, 163, 174, 166
150, 166, 174, 175, 168
151, 168, 175, 176, 170
152, 170, 176, 177, 172
153, 163, 162, 178, 174
154, 174, 178, 179, 175
155, 175, 179, 180, 176
156, 176, 180, 181, 177
157, 162, 161, 182, 178
158, 178, 182, 183, 179
159, 179, 183, 184, 180
160, 180, 184, 185, 181
161, 161, 160, 186, 182
162, 182, 186, 187, 183
163, 183, 187, 188, 184
164, 184, 188, 189, 185
165, 185, 189, 190, 181
166, 181, 190, 191, 177
167, 177, 191, 192, 172
168, 172, 192, 193, 173
169, 160, 159, 194, 186
170, 186, 194, 195, 187
171, 187, 195, 196, 188
172, 188, 196, 197, 189
173, 189, 197, 198, 190
174, 190, 198, 199, 191
175, 191, 199, 200, 192
176, 192, 200, 201, 193
177, 159, 158, 202, 194
178, 194, 202, 203, 195
179, 195, 203, 204, 196
180, 196, 204, 205, 197
181, 197, 205, 206, 198
182, 198, 206, 207, 199
183, 199, 207, 208, 200
184, 200, 208, 209, 201
185, 158, 53, 44, 202
186, 202, 44, 35, 203
187, 203, 35, 26, 204
188, 204, 26, 21, 205
189, 205, 21, 16, 206
190, 206, 16, 11, 207
191, 207, 11, 2, 208
192, 208, 2, 1, 209
|
2) Triangular mesh [edit]
-
Triangular mesh can be generated if we set the element type to tr3 or tr6.
-
Example: 'ELTY all tr3' or ' ELTY all tr6'
-
We have used element type 'tr3' to generate the triangular mesh.
-
The mesh size, i.e. the number of elements can be increased by increasing the number of divisions on the lines used to generate the geometry.
-
The code used to generate the meshes, the meshed geometries are shown below:
Mesh 1 [edit]
| Code to generate Mesh 1 |
|---|
PNT py -0.00000 1.00000 0.00000 PNT p0 -0.00000 -0.00000 0.00000 PNT P001 0.70711 -0.00000 -0.70711 PNT P003 -0.00000 -0.00000 -1.00000 PNT P005 -0.70711 -0.00000 -0.70711 PNT P006 -1.00000 -0.00000 0.00000 PNT P009 -0.70711 -0.00000 0.70711 PNT P00A 0.00000 -0.00000 1.00000 PNT P00G 0.70711 -0.00000 0.70711 PNT P00I 1.00000 -0.00000 -0.00000 LINE L001 P00I P001 p0 6 LINE L002 P001 P003 p0 6 LINE L003 P003 p0 6 LINE L004 p0 P00I 6 LINE L005 P003 P005 p0 6 LINE L006 P005 P006 p0 6 LINE L007 P006 p0 6 LINE L009 P006 P009 p0 6 LINE L00A P009 P00A p0 6 LINE L00C P00A p0 6 LINE L00G P00A P00G p0 6 LINE L00I P00G P00I p0 6 GSUR A001 + BLEND - L003 - L002 - L001 - L004 GSUR A002 + BLEND - L007 - L006 - L005 + L003 GSUR A003 + BLEND - L00C - L00A - L009 + L007 GSUR A004 + BLEND + L004 - L00I - L00G + L00C ELTY all tr3 MESH all send all abq |
Mesh 2 [edit]
| Code to generate Mesh 2 |
|---|
PNT py -0.00000 1.00000 0.00000 PNT p0 -0.00000 -0.00000 0.00000 PNT P001 0.70711 -0.00000 -0.70711 PNT P003 -0.00000 -0.00000 -1.00000 PNT P005 -0.70711 -0.00000 -0.70711 PNT P006 -1.00000 -0.00000 0.00000 PNT P009 -0.70711 -0.00000 0.70711 PNT P00A 0.00000 -0.00000 1.00000 PNT P00G 0.70711 -0.00000 0.70711 PNT P00I 1.00000 -0.00000 -0.00000 LINE L001 P00I P001 p0 9 LINE L002 P001 P003 p0 9 LINE L003 P003 p0 9 LINE L004 p0 P00I 9 LINE L005 P003 P005 p0 9 LINE L006 P005 P006 p0 9 LINE L007 P006 p0 9 LINE L009 P006 P009 p0 9 LINE L00A P009 P00A p0 9 LINE L00C P00A p0 9 LINE L00G P00A P00G p0 9 LINE L00I P00G P00I p0 9 GSUR A001 + BLEND - L003 - L002 - L001 - L004 GSUR A002 + BLEND - L007 - L006 - L005 + L003 GSUR A003 + BLEND - L00C - L00A - L009 + L007 GSUR A004 + BLEND + L004 - L00I - L00G + L00C ELTY all tr3 MESH all send all abq |
Mesh 3 [edit]
| Code to generate Mesh 3 |
|---|
PNT py -0.00000 1.00000 0.00000 PNT p0 -0.00000 -0.00000 0.00000 PNT P001 0.70711 -0.00000 -0.70711 PNT P003 -0.00000 -0.00000 -1.00000 PNT P005 -0.70711 -0.00000 -0.70711 PNT P006 -1.00000 -0.00000 0.00000 PNT P009 -0.70711 -0.00000 0.70711 PNT P00A 0.00000 -0.00000 1.00000 PNT P00G 0.70711 -0.00000 0.70711 PNT P00I 1.00000 -0.00000 -0.00000 LINE L001 P00I P001 p0 9 LINE L002 P001 P003 p0 9 LINE L003 P003 p0 9 LINE L004 p0 P00I 9 LINE L005 P003 P005 p0 9 LINE L006 P005 P006 p0 9 LINE L007 P006 p0 9 LINE L009 P006 P009 p0 9 LINE L00A P009 P00A p0 9 LINE L00C P00A p0 9 LINE L00G P00A P00G p0 9 LINE L00I P00G P00I p0 9 GSUR A001 + BLEND - L003 - L002 - L001 - L004 GSUR A002 + BLEND - L007 - L006 - L005 + L003 GSUR A003 + BLEND - L00C - L00A - L009 + L007 GSUR A004 + BLEND + L004 - L00I - L00G + L00C ELTY all tr3 MESH all send all abq |
3) CCX Installation, Basic Examples and Report [edit]
CCX Installation [edit]
-
Windows executable downloaded from [this link] comes along with CCX modules. For more details on installation please refer:[CCX Installation Tutorial]
CCX Examples [edit]
-
Basic examples demonstrating various features in CCX can be downloaded from:[CCX Examples]
-
We were able to successfully run the below examples:
| Code to Analyse a simple Beam Element |
|---|
1, 0, 0, 0 2, 0, 0, 5 3, 0, 0, 10
1,1,2,3
3,1,6
1E7,.3
.25,.25 1.d0,0.d0,0.d0
1,1,1.
S
U
S
|
-
After the code is run, we need to post process the beam for displacements, forces. To post process the results, click on 'Tools>PostProcess' or hit 'SHIFT+F10'. The below screen shots demonstrate how the displacements and forces can be plotted.
-
-
- Displacement Plot:
-
-
-
- Force Plot Plot:
-
| Code to Analyse a plate for PlaneStress |
|---|
1, -7.45058e-09, -7.45058e-09, 0.00000e+00
2, 5.00000e-01, -7.45058e-09, 0.00000e+00
3, 5.00000e-01, 5.00000e-01, 0.00000e+00
4, -7.45058e-09, 5.00000e-01, 0.00000e+00
5, 2.50000e-01, -7.45058e-09, 0.00000e+00
6, 5.00000e-01, 2.50000e-01, 0.00000e+00
7, 2.50000e-01, 5.00000e-01, 0.00000e+00
8, -7.45058e-09, 2.50000e-01, 0.00000e+00
9, 5.00000e-01, 1.00000e+00, 0.00000e+00
10, -7.45058e-09, 1.00000e+00, 0.00000e+00
11, 5.00000e-01, 7.50000e-01, 0.00000e+00
12, 2.50000e-01, 1.00000e+00, 0.00000e+00
13, -7.45058e-09, 7.50000e-01, 0.00000e+00
14, 1.00000e+00, -7.45058e-09, 0.00000e+00
15, 1.00000e+00, 5.00000e-01, 0.00000e+00
16, 7.50000e-01, -7.45058e-09, 0.00000e+00
17, 1.00000e+00, 2.50000e-01, 0.00000e+00
18, 7.50000e-01, 5.00000e-01, 0.00000e+00
19, 1.00000e+00, 1.00000e+00, 0.00000e+00
20, 1.00000e+00, 7.50000e-01, 0.00000e+00
21, 7.50000e-01, 1.00000e+00, ,0.00000e+00
1, 1, 2, 3, 4, 5, 6, 7, 8
2, 4, 3, 9, 10, 7, 11, 12, 13
3, 2, 14, 15, 3, 16, 17, 18, 6
4, 3, 15, 19, 9, 18, 20, 21, 11
1, 4, 8, 10, 13,
Nfixx,1,1 4,2,2
210000,.3
1
2
3
4
0.01
0.02
0.03
0.04
3,P2,-100. 4,P2,-100.
S
U
S
|
-
-
- Plate Mesh
-
-
-
- Stress Plot
-
-
-
- Displacement Plot
-
| Code to Analyse a 3D Contact problem |
|---|
1, 1.00000e+00, 1.00000e+00, -1.49012e-08
2, 1.00000e+00, 0.00000e+00, -1.49012e-08
3, 1.00000e+00, 0.00000e+00, 1.00000e+00
4, 1.00000e+00, 1.00000e+00, 1.00000e+00
5, -7.45058e-09, 1.00000e+00, -1.49012e-08
6, -7.45058e-09, 0.00000e+00, -1.49012e-08
7, -7.45058e-09, 0.00000e+00, 1.00000e+00
8, -7.45058e-09, 1.00000e+00, 1.00000e+00
9, 5.00000e-01, 6.41421e-01, 1.00000e+00
10, 6.41421e-01, 5.00000e-01, 1.00000e+00
11, 6.41421e-01, 5.00000e-01, 1.20000e+00
12, 5.00000e-01, 6.41421e-01, 1.20000e+00
13, 3.58579e-01, 5.00000e-01, 1.00000e+00
14, 5.00000e-01, 3.58579e-01, 1.00000e+00
15, 5.00000e-01, 3.58579e-01, 1.20000e+00
16, 3.58579e-01, 5.00000e-01, 1.20000e+00
1, 1, 2, 3, 4, 5, 6, 7, 8
2, 9, 10, 11, 12, 13, 14, 15, 16
1, 2, 5, 6, 11, 12, 15, 16,
3,4,7,8,9,10,13,14
Nfix,1,3 Nfixxy,1,2
2 4,3,1.,3,3,-1. 2 7,3,1.,3,3,-1. 2 8,3,1.,3,3,-1. 2 9,3,1.,10,3,-1. 2 13,3,1.,10,3,-1. 2 14,3,1.,10,3,-1.
210000.,.3
1
10
Emast,S5
Nslav
Sslav,Smast
1.5351e-7,6.66666
10,3,-1.
U,RF
S
U
S
|
-
-
- Meshed Geometry
-
-
-
- Stress Plot
-
-
-
- Displacement Plot
-
CCX Report [edit]
-
Commands Used to generate the .inp file are explained below:
-
Note: Few commands used for preprocessing were explained earlier at: [Preprocessing commands explained]
NSET [edit]
Keyword type: model definition
This option is used to assign nodes to a node set. The parameter NSET containing the name of the set is required (maximum 80 characters), whereas the parameter GENERATE (without value) is optional. If present, nodal ranges can be expressed by their initial value, their final value, and an increment. If a set with the same name already exists, it is reopened and complemented. The name of a set is case insensitive. Internally, it is modified into upper case and a 'N' is appended to denote it as node set.
Example:
- NSET,NSET=N1
1,8,831,208
- NSET,NSET=N2
100,N1
assigns the nodes with number 1, 8, 831 and 208 to (node) set N1 and the nodes with numbers 1, 8, 831, 208 (= set N1) and 100 to set N2
BOUNDARY [edit]
Keyword type: step or model definition
This option is used to prescribe boundary conditions. This includes:
temperature, displacements and rotations for structures total temperature, mass flow and total pressure for gas networks temperature, mass flow and static pressure for liquid networks temperature, mass flow and fluid depth for channels static temperature, velocity and static pressure for 3D-fluids. For liquids and structures the total and static temperature virtually coincide, therefore both are represented by the term temperature.
The following degrees of freedom are being used:
for structures:
1: translation in the local x-direction
2: translation in the local y-direction
3: translation in the local z-direction
4: rotation about the local x-axis
5: rotation about the local y-axis
6: rotation about the local z-axis
11: temperature
for gas networks:
1: mass flow
2: total pressure
11: total temperature
for liquid networks:
1: mass flow
2: static pressure
11: temperature
for liquid channels:
1: mass flow
2: fluid depth
11: temperature
for 3D-fluids:
1: velocity in the local x-direction
2: velocity in the local y-direction
3: velocity in the local z-direction
8: static pressure
11: static temperature
ELEMENT [edit]
Keyword type: model definition
With this option elements are defined. There is one required parameter, TYPE and one optional parameter, ELSET. The parameter TYPE defines the kind of element which is being defined. The following types can be selected:
General 3D solids
C3D4 (4-node linear tetrahedral element)
C3D6 (6-node linear triangular prism element)
C3D8 (3D 8-node linear isoparametric element)
C3D8R (the C3D8 element with reduced integration)
C3D10 (10-node quadratic tetrahedral element)
C3D15 (15-node quadratic triangular prism element)
C3D20 (3D 20-node quadratic isoparametric element)
C3D20R (the C3D20 element with reduced integration)
``ABAQUS 3D solids for heat transfer (names are provided for compatibility)
DC3D4: identical to C3D4
DC3D6: identical to C3D6
DC3D8: identical to C3D8
DC3D10: identical to C3D10
DC3D15: identical to C3D15
DC3D20: identical to C3D20
Shell elements
S6 (6-node triangular shell element)
S8 (8-node quadratic shell element)
S8R (the S8 element with reduced integration)
Plane stress elements
CPS6 (6-node triangular plane stress element)
CPS8 (8-node quadratic plane stress element)
CPS8R (the CPS8 element with reduced integration)
Plane strain elements
CPE6 (6-node triangular plane strain element)
CPE8 (8-node quadratic plane strain element)
CPE8R (the CPS8 element with reduced integration)
Axisymmetric elements
CAX6 (6-node triangular axisymmetric element)
CAX8 (8-node quadratic axisymmetric element)
CAX8R (the CAX8 element with reduced integration)
Beam elements
B32 (3-node beam element)
B32R (the B32 element with reduced integration)
Special elements
D (3-node fluid element)
GAPUNI (2-node unidirectional gap element)
Example:
- ELEMENT,ELSET=Eall,TYPE=C3D20R
1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
16,17,18,19,20
defines one 20-node element with reduced integration and stores it in set Eall.
EQUATION [edit]
Keyword type: model definition
With this option, a linear equation constraint between arbitrary displacement components at any nodes where these components are active can be imposed. The equation is assumed to be homogeneous, and all variables are to be written on the left hand side of the equation. The first variable is considered to be the dependent one, and is subsequently eliminated from the equation, i.e. the corresponding degree of freedom does not show up in the stiffness matrix. This reduces the size of the matrix. A node can only be used once as the dependent node in an equation or in a SPC.
First line:
- EQUATION
Following lines, in a set: First line of set:
Number of terms in the equation. Following lines of set (maximum 12 entries per line):
Node number of the first variable.
Degree of freedom at above node for the first variable.
Value of the coefficient of the first variable.
Node number of the second variable.
Degree of freedom at above node for the second variable.
Value of the coefficient of the second variable.
Etc..
Continue, giving node number, degree of freedom, value of the coefficient, etc. Repeat the above line as often as needed if there are more than four terms in the *EQUATION. Specify exactly four terms per line for each constraint, except for the last line which may have less than four terms.
Example:
- EQUATION
3 3,2,2.3,28,1,4.05,17,1,-8.22
defines an equation of the form , where u, v and w are the displacement for degree of freedom one, two and three, respectively
MATERIAL [edit]
Keyword type: model definition
This option is used to indicate the start of a material definition. A material data block is defined by the options between a *MATERIAL line and either another *MATERIAL line or a keyword line that does not define material properties. All material options within a data block will be assumed to define the same material. If a property is defined more than once for a material, the last definition is used. There is one required parameter, NAME, defining the name of the material with which it can be referenced in element property options (e.g. *SOLID SECTION). The name can contain up to 80 characters.
Material data requests outside the defined ranges are extrapolated in a constant way and a warning is generated. Be aware that this occasionally occurs due to rounding errors.
First line:
- MATERIAL
Enter the NAME parameter and its value.
Example:
- MATERIAL,NAME=EL
starts a material block with name EL.
ELASTIC [edit]
Keyword type: model definition, material
This option is used to define the elastic properties of a material. There is one optional parameter TYPE. Default is TYPE=ISO, other values are TYPE=ORTHO and TYPE=ENGINEERING CONSTANTS for orthotropic materials and TYPE=ANISO for anisotropic materials. All constants may be temperature dependent. For orthotropic and fully anisotropic materials, the coefficients satisfy the equation:

where is the second Piola-Kirchhoff stress and is the Lagrange deformation tensor. For linear calculations, these reduce to the generic stress and strain tensors.
First line:
- ELASTIC
Enter the TYPE parameter and its value, if needed
Following line for TYPE=ISO:
Young's modulus.
Poisson's ratio.
Temperature.
Repeat this line if needed to define complete temperature dependence.
Example:
- ELASTIC,TYPE=ORTHO
500000.,157200.,400000.,157200.,157200.,300000.,126200.,126200., 126200.,294.
defines an orthotropic material for temperature T=294. Since the definition includes values for only one temperature, they are valid for all temperatures.
SOLID SECTION [edit]
Keyword type: model definition
This option is used to assign material properties to 3D, plane stress, plane strain and axisymmetric element sets. The parameters ELSET and MATERIAL are required, the parameter ORIENTATION is optional. The parameter ELSET defines the element set to which the material specified by the parameter MATERIAL applies. The parameter ORIENTATION allows to assign local axes to the element set. If activated, the material properties are applied to the local axis. This is only relevant for non isotropic material behavior. For plane stress and plane strain elements the thickness can be specified on the second line. Default is 1.
First line:
- SOLID SECTION
Enter any needed parameters.
Second line (only relevant for plane stress, plane strain and axisymmetric elements; can be omitted for 3D elements):
thickness (plane stress and plane strain elements)
Example:
- SOLID SECTION,MATERIAL=EL,ELSET=Eall,ORIENTATION=OR1
assigns material EL with orientation OR1 to all elements in (element) set Eall.
ELSET [edit]
Keyword type: model definition
This option is used to assign elements to an element set. The parameter ELSET containing the name of the set is required (maximum 80 characters), whereas the parameter GENERATE (without value) is optional. If present, element ranges can be expressed by their initial value, their final value, and an increment. If a set with the same name already exists, it is reopened and complemented. The name of a set is case insensitive. Internally, it is modified into upper case and a 'E' is appended to denote it as element set.
First line:
- ELSET
Enter any needed parameters and their values.
Following line if the GENERATE parameter is omitted:
List of elements and/or sets of elements previously defined to be assigned to this element set (maximum 16 entries per line).
Example:
- ELSET,ELSET=E1,GENERATE
20,25
- ELSET,ELSET=E2
E1,50,51
assigns the elements with numbers 20, 21, 22, 23, 24 and 25 to element set E1 and the elements with numbers 20, 21, 22, 23, 24, 25 (= set E1), 50 and 51 to element set E2.
SURFACE [edit]
Keyword type: model definition
This option is used to define surfaces made up of nodes or surfaces made up of element faces. A mixture of nodes and element faces belonging to one and the same surface is not possible. There are two parameters: NAME and TYPE. The parameter NAME containing the name of the surface is required. The TYPE parameter takes the value NODE for nodal surfaces and ELEMENT for element face surfaces. Default is TYPE=ELEMENT
Example:
- SURFACE,NAME=left,TYPE=NODE
part,
1,
8
assigns the nodes with number 1, and 8 and the nodes belonging to node set part to a surface with name left.
Example:
- SURFACE,NAME=new
38,S6
assigns the face 6 of element 38 to a surface with name new
CONTACT PAIR [edit]
Keyword type: model definition
This option is used to express that two surfaces can make contact. There is one required parameter: INTERACTION, and two optional parameters: SMALL SLIDING and ADJUST. The dependent surface is called the slave surface, the independent surface is the master surface. Surfaces are defined using the *SURFACE. The dependent surface can be defined as a nodal surface (option TYPE=NODE on the *SURFACE keyword) or as an element face surface (default for the *SURFACE card), whereas the independent surface has to be defined as an element face surface.
The INTERACTION parameter takes the name of the surface interaction (keyword *SURFACE INTERACTION) which applies to the contact pair. The surface interaction defines the nature of the contact (hard versus soft contact..)
First line:
- CONTACT PAIR
enter the required parameter INTERACTION and its parameter.
Following line:
Name of the slave surface (can be nodal or element face based).
Name of the master surface (must be based on element faces).
Example:
- CONTACT PAIR,INTERACTION=IN1,ADJUST=0.01
dep,ind
defines a contact pair consisting of the surface dep as dependent surface and the element face surface ind als independent surface. The name of the surface interaction is IN1. All slave nodes for which the clearance is smaller than or equal to 0.01 will moved onto the master surface.
SURFACE INTERACTION [edit]
Keyword type: model definition
This option is used to indicate the start of a surface interaction definition. A surface interaction data block is defined by the options between a *SURFACE INTERACTION line and either another *SURFACE INTERACTION line or a keyword line that does not define surface interaction properties. All surface interaction options within a data block will be assumed to define the same surface interaction. If a property is defined more than once for a surface interaction, the last definition is used. There is one required parameter, NAME, defining the name of the surface interaction with which it can be referenced in surface interaction property options (e.g. *SURFACE BEHAVIOR). The name can contain up to 80 characters.
Surface interaction data requests outside the defined ranges are extrapolated in a constant way. Be aware that this occasionally occurs due to rounding errors.
First line:
- SURFACE INTERACTION
Enter the NAME parameter and its value.
Example:
- SURFACE INTERACTION,NAME=SI1
starts a material block with name SI1.
BEAM SECTION [edit]
Keyword type: model definition
This option is used to assign material properties to beam element sets. The parameters ELSET, MATERIAL and SECTION are required, the parameters ORIENTATION, OFFSET1 and OFFSET2 are optional. The parameter ELSET defines the shell element set to which the material specified by the parameter MATERIAL applies. The parameter ORIENTATION allows to assign local axes to the element set. If activated, the material properties are applied to the local axis. This is only relevant for non isotropic material behavior.
The parameter SECTION defines the cross section of the beam and can take the value RECT for a rectangular cross section and CIRC for an elliptical cross section. A rectangular cross section is defined by its thickness in two perpendicular directions, an elliptical cross section is defined by the length of its principal axes. These directions are defined by specifying direction 1 on the third line of the present keyword card
First line:
- BEAM SECTION
Enter any needed parameters.
Second line:
thickness in 1-direction
thickness in 2-direction
Third line:
global x-coordinate of a unit vector in 1-direction (default:0)
global y-coordinate of a unit vector in 1-direction (default:0)
global z-coordinate of a unit vector in 1-direction (default:-1)
Example:
- BEAM SECTION,MATERIAL=EL,ELSET=Eall,OFFSET1=-0.5,SECTION=RECT
3.,1.
1.,0.,0.
assigns material EL to all elements in (element) set Eall. The reference line is in 1-direction on the back surface, in 2-direction on the central surface. The thickness in 1-direction is 3 unit lengths, in 2-direction 1 unit length. The 1-direction is the global x-axis.
STEP [edit]
Keyword type: step
This card describes the start of a new STEP. PERTURBATION, NLGEOM, INC, INCF and TURBULENCE MODEL are the optional parameters.
First and only line:
- STEP
Enter any needed parameters and their values
Example:
- STEP,INC=1000,INCF=20000,TURBULENCE MODEL=SST
starts a step and increases the maximum number of thermomechanical increments to complete the step to 1000. The maximum number of 3D fluid increments is set to 20000 and for the turbulence model the SST model was chosen.
STATIC [edit]
Keyword type: step
This procedure is used to perform a static analysis. The load consists of the sum of the load of the last *STATIC step and the load specified in the present step with replacement of redefined loads.
First line:
- STATIC
Enter any needed parameters and their values. Second line (only relevant for nonlinear analyses; for linear analyses, the step length is always 1) Initial time increment. This value will be modified due to automatic incrementation, unless the parameter DIRECT was specified (default 1.). Time period of the step (default 1.). Minimum time increment allowed. Only active if DIRECT is not specified. Default is the initial time increment or 1.e-5 times the time period of the step, whichever is smaller. Maximum time increment allowed. Only active if DIRECT is not specified. Default is 1.e+30.
Example:
- STATIC,DIRECT
.1,1.
defines a static step and selects the SPOOLES solver as linear equation solver in the step (default). If the step is a linear one, the other parameters are of no importance. If the step is nonlinear, the second line indicates that the initial time increment is .1 and the total step time is 1. Furthermore, the parameter DIRECT leads to a fixed time increment. Thus, if successful, the calculation consists of 10 increments of length 0.1.
CLOAD [edit]
Keyword type: step
This option allows concentrated forces to be applied to any node in the model which is not fixed by a single or multiple point constraint. Optional parameters are OP, AMPLITUDE, TIME DELAY, LOAD CASE and SECTOR. OP can take the value NEW or MOD. OP=MOD is default and implies that the concentrated loads applied to different nodes are kept over all steps starting from the last perturbation step. Specifying a force in a node for which a force was defined in a previous step replaces this value. OP=NEW implies that all previously applied concentrated loads are removed. If multiple *CLOAD cards are present in a step this parameter takes effect for the first *CLOAD card only.
First line:
- CLOAD
Enter any needed parameters and their value.
Following line:
Node number or node set label.
Degree of freedom.
Magnitude of the load
Repeat this line if needed.
Example:
- CLOAD,OP=NEW,AMPLITUDE=A1,TIME DELAY=20.
1000,3,10.3
removes all previous point load forces and applies a force with magnitude 10.3 and amplitude A1 (shifted in positive time direction by 20 time units) for degree of freedom three (global if no transformation was defined for node 1000, else local) of node 1000.
NODE PRINT [edit]
Keyword type: step
This option is used to print selected nodal variables in file jobname.dat. The following variables can be selected:
Displacements (key=U)
Structural temperatures, total temperatures in networks and static temperatures in 3D fluids (key=NT)
Pressures in networks (key=PN). These are the total pressures for gases, static pressures for liquids and liquid depth for channels. The fluid section types dictate the kind of network.
Static pressures in 3D fluids (key=PS)
Velocities in 3D fluids (key=V)
Mass flows in networks (key=MF)
External forces (key=RF)
External concentrated heat sources (key=RFL)
First line:
- NODE PRINT
Enter the parameter NSET and its value.
Second line:
Identifying keys for the variables to be printed, separated by kommas.
Example:
- NODE PRINT,NSET=N1
RF
requests the storage of the reaction forces in the nodes belonging to (node) set N1 in the .dat file.
EL PRINT [edit]
Keyword type: step
This option is used to print selected element variables in an ASCII file with the name jobname.dat. Some of the element variables are printed in the integration points, some are whole element variables. The following variables can be selected:
Integration point variables
true (Cauchy) stress (key=S)
strain (key=E). This is the Lagrangian strain for (hyper)elastic materials and incremental plasticity and the Eulerian strain for deformation plasticity.
equivalent plastic strain (key=PEEQ)
equivalent creep strain (key=CEEQ; is converted internally into PEEQ since the viscoplastic theory does not distinguish between the two; consequently, the user will find PEEQ in the dat file, not CEEQ)
the energy density (key=ENER)
the internal state variables (key=SDV)
heat flux (key=HFL)
Whole element variables
the internal energy (key=ELSE)
the kinetic energy (key=ELKE)
the volume (key=EVOL)
First line:
- EL PRINT
Enter the parameter ELSET and its value.
Second line:
Identifying keys for the variables to be printed, separated by kommas.
Example:
- EL PRINT,ELSET=Copper
E
requests to store the strains at the integration points in the elements of set Copper in the .dat file.
NODE FILE [edit]
Keyword type: step
This option is used to print selected nodal variables in file jobname.frd for subsequent viewing by CalculiX GraphiX. The following variables can be selected:
Displacements (key=U)
Displacements: magnitude and phase (key=PU, only for *STEADY STATE DYNAMICS calculations) and *FREQUENCY calculations with cyclic symmetry).
Maximum displacements orthogonal to a given vector at all times for *FREQUENCY calculations with cyclic symmetry. The components of the vector are the coordinates of a node stored in a node set with the name RAY. This node and node set must have been defined by the user (key=MAXU).
Temperatures (key=NT). This includes both structural temperatures and total fluid temperatures in a network.
Temperatures: magnitude and phase (key=PNT, only for *STEADY STATE DYNAMICS calculations).
External forces (key=RF)
External concentrated heat sources (key=RFL)
Static temperatures in networks and 3D fluids (key=TS)
Total temperatures in networks and 3D fluids (key=TT)
Mass flows in networks (key=MF). The mass flow through a fluid element is stored in the middle node of the element. In the end nodes the mass flow is not unique, since more than two element can be connected to the node. For end nodes the sum of the mass flow leaving the node is stored. Notice that at nodes where mass flow is leaving the network the value will be wrong if no proper exit element (with node number 0) is attached to that node.
Velocities in 3D fluids (key=V)
Mach numbers in 3D compressible fluids (key=MACH)
Static pressures in liquid networks and 3D fluids (key=PS)
Total pressures in gas networks and 3D fluids (key=PT)
Fluid depth in channel networks (key=DEPT)
Critical depth in channel networks (key=HCRI)
Pressure coefficient in 3D compressible fluids (key=CP)
First line:
- NODE FILE
Enter any needed parameters and their values.
Second line:
Identifying keys for the variables to be printed, separated by kommas.
Example:
- NODE FILE,FREQUENCY=2,TIME POINTS=T1
RF,NT
requests the storage of reaction forces and temperatures in the .frd file every second increment. In addition, output will be stored for all time points defined by the T1 time points sequence.
EL FILE [edit]
Keyword type: step
This option is used to save selected element variables averaged at the nodal points in a frd file (extension .frd) for subsequent viewing by CalculiX GraphiX. The following element variables can be selected:
true (Cauchy) stress (key=S). For beam elements this tensor is replaced by the section forces if SECTION FORCES is selected.
stress: magnitude and phase (key=PHS, only for *STEADY STATE DYNAMICS calculations and *FREQUENCY calculations with cyclic symmetry). maximum worst principal stress at all times for *FREQUENCY calculations with cyclic symmetry. It is stored for nodes belonging to the node set with name STRESSDOMAIN. This node set must have been defined by the user with the *NSET command. The worst principal stress is the maximum of the absolute value of the principal stresses (key=MAXS).
strain (key=E). This is the Lagrangian strain for (hyper)elastic materials and incremental plasticity and the Eulerian strain for deformation plasticity.
equivalent plastic strain (key=PEEQ)
equivalent creep strain (key=CEEQ; is converted internally into PEEQ since the viscoplastic theory does not distinguish between the two; consequently, the user will find PEEQ in the frd file, not CEEQ)
the energy density (key=ENER)
the internal state variables (key=SDV)
heat flux (key=HFL)
First line:
- EL FILE
Enter any needed parameters and their values.
Second line:
Identifying keys for the variables to be printed, separated by kommas.
Example:
- EL FILE
S,PEEQ
requests that the (Cauchy) stresses and the equivalent plastic strain is stored in .frd format for subsequent viewing with CalculiX GraphiX.
END STEP [edit]
Keyword type: step
This option concludes the definition of a step.
First and only line:
- END STEP
Example:
- END STEP
concludes a step. Each *STEP card must at some point be followed by an *END STEP card.
--Eml5526.s11.team5.vijay 01:48, 24 March 2011 (UTC)
5.6 Quad Lagrangian Element Basis Function [edit]
Given: Quad Lagrangian Basis Function [edit]
Lagrangian element with 3 nodes per element.
Find [edit]
Plot the basis functions for each node
Solution [edit]
Lagrange basis functions for an element of order m can be written as follow:

For a Quad lagrangian Basis function there are 3 nodes per element (m=3). We can write the Quad Lagrangian Basis Function as follows:



Let us consider the element shown below:
In the above element 
Substituting the above values, the basis functions at each node are as follows:
| Matlab code used to generate the basis functions. |
|---|
n=3; %Order of Lagrangian Basis function syms x; %Code to Compute the X-coordinates of different nodes(equidistant) for i=1:n xi(1,i)=1/(n-1)*(i-1); end %Code to Define the Basis function at each node for i=1:n b(1,i)=x^0; for j=1:n if (j==i) continue end b(1,i)=b(1,i)*(x-xi(1,j))/(xi(1,j)-xi(1,i)); end end %Code to calculate the value of the each basis function for x varying from 0 to 1 figure(n); for i=1:n for j=1:101 xa=0+1/100*(j-1); N(i,j)=subs(b(1,i),x,xa); end end %Code to Plot the Basis functions x=[0:0.01:1]; plot(x,N(1,:),'b',x,N(2,:),'k',x,N(3,:),'r'); legend('L1,3','L2,3','L3,3'); grid on; |
--Eml5526.s11.team5.vijay 01:49, 24 March 2011 (UTC)
HW 1.1 [edit]
Theory:
In elastodynamic case, there are 2 major contributors that affect body's motion:
- Static Forces
- Body's Inertial effects (resistance to motion caused by Static forces)
In accord to conservation laws as well as Newton's 3rd law, these 2 opposing contributors must be equal to each other.

where:
F = force (N)
m = mass(kg)
a = acceleration (
)
The assumed differential element shape is of trapezoid with force acting on both of its bases. Dynamic equation that resulted is shown below:

where:
= mass per unit length 



Therefore:





Therefore, substituting back into equation we get:
Force = Stress * Area,

Stress = Strain * Modulus of Elasticity,

where

From the above relations:

Mass / Unit Length = Density * Area

Substituting the above relations we get
If we consider a case in which the bar has a rectangular cross section

where h(x) = Height of bar at x,
b = width of the bar (constant) [i.e.Independent of x,t]
Replacing A(x) with h(x)*b in our equation we get:
![\frac {\partial}{\partial x} \left[E(x)h(x)*b*\frac{\partial u}{\partial x}\right] + f(x) = \rho(x) h(x)*b* \frac {\partial^2 u} {\partial t^2}](http://upload.wikimedia.org/math/4/3/2/43278410e6088cad050f78f34883603a.png)
b is independent and can be brought outside the partial derivative of the first term
The equation is divided by b to give
![\frac {\partial}{\partial x} \left[E(x)h(x)\frac{\partial u}{\partial x}\right] + \frac{f(x)}{b} = \rho(x) h(x) \frac {\partial^2 u} {\partial t^2}](http://upload.wikimedia.org/math/3/f/e/3fe40317fc3ad7a55d937ce2be92816c.png)
Contribution: --Eml5526.s11.team5 20:37, 20 January 2011 (UTC) --Eml5526.s11.team5.vijay 06:07, 21 January 2011 (UTC)
|}
HW 2.6 [edit]
Given [edit]
-
on the interval,
![\Omega =[0,T]](//upload.wikimedia.org/math/3/5/c/35ca8422333d0d3a95c32153e8bf81be.png)

-
i.e.,


Find [edit]
-
1)Construct
. Observe the properties of 

-
2) Find the det
(F)
-
3) Conclude F is orthogonal Basis, i.e.,


Trigonometric Properties Used [edit]
|
|
|
|
Solution [edit]
1) [edit]
-
The Gram Matrix is defined as follows:,


-
It Can be observed that
, i.e. The
Matrix is symmetric
-
[Since
]
-
Now Let us calculate each element in the
Matrix:
|
|
|
2) [edit]
|
|
3) [edit]
|
--Eml5526.s11.team5.vijay 19:01, 1 February 2011 (UTC)--
Proof for Equations in 2.6 [edit]
Consider 
![= \left [ \frac{T}{2n\pi}sin (2n\pi /T)x \right ]_{0}^{T}](http://upload.wikimedia.org/math/3/0/3/303fc9d4b76ae8390dba0f265829a402.png)
![= \frac{T}{2n\pi} \left [ sin (2n\pi /T)*T - sin (2n\pi /T) *0 \right ]](http://upload.wikimedia.org/math/5/f/6/5f659a574e8cf926f08fb483e3fe575f.png)
![= \frac{T}{2n\pi} \left [ sin (2n\pi) - sin 0 \right ]](http://upload.wikimedia.org/math/7/e/a/7eac097b8eff1fdf25a37d0fe2b0fab8.png)
![= \frac{T}{2n\pi} \left [ 0 - 0 \right ]](http://upload.wikimedia.org/math/9/5/6/956531529ec73d1c7ec180b06020bbd4.png)
Since,



Let
,
|
|
Similarly consider


![= \left [ - \frac{T}{2n\pi}cos (2n\pi /T)x \right ]_{0}^{T}](http://upload.wikimedia.org/math/9/e/5/9e559c667c5d923751f5130973fbf35d.png)
![= - \frac{T}{2n\pi} \left [ cos (2n\pi /T)*T - cos (2n\pi /T) *0 \right ]](http://upload.wikimedia.org/math/c/9/1/c919259415ef5000f80cd1930ae25a46.png)
![= - \frac{T}{2n\pi} \left [ cos (2n\pi) - cos 0 \right ]](http://upload.wikimedia.org/math/c/1/f/c1f7bfd93852eae38ebdfcef97ee09f6.png)
![= - \frac{T}{2n\pi} \left [ 1 - 1 \right ]](http://upload.wikimedia.org/math/9/4/4/94431fd476972cd626e313c2302727fe.png)
Since,


|
|
HW 3.3: 2D Truss Problem [edit]
Problem Statement [edit]
a 3-Bar structure is subjected to a load P(=1000N) at C as shown in Figure 3.3.1.
The cross sectional areas are given as:
BC: 0.02
BF,BD: 0.01
All the bars are made of the same material whose Youngs modulus
Pa.
Find [edit]
a) Construct the global stiffness matrix and Load matrix
b) Partition the matrices and solve for the x,y displacements at B, x displacement at D.
c) Find the stress in the 3 bars BC, BD, BF.
d) Find the Reactions at the nodes C, D, F.
Figure [edit]
Solution [edit]

The structure can be divided into 3 elements:
Element 1 = Bar BF
Element 2 = Bar BC
Element 3 = Bar BD (Element numbers are shown in the above figure)
Before we construct the Stiffness matrix for each bar element, let us review the element stiffness matrix for a bar element having 2 degrees of freedom (X,Y displacements) and inclined at an angle
with the X-axis.
(ref: Fish and Belytschko P30, Eq (2.47))
where
Cross sectional area of the bar element
Young's Modulus of the bar element
Length of the bar element

Element 1 connects global nodes 1,4.





Element 2 connects global nodes 1,3.





Element 3 connects global nodes 1,4.




Direct Assembly Gives the global matrices:
|
|
|
|


It can be observed that partitioning needs to be done after 3 rows and 3 columns.
The reduced system of equations are:


In other words:
but,
-
,
Combining Eq 3.6.1, Eq 3.6.3:
Combining Eq 3.6.2, Eq 3.6.3:
from Eqn 3.6.4:


|
|
|
X,Y-displacement at B(in mm) X-displacement at D(in mm) |

The stress in each element can be computed as follows:
(ref: Fish and Belytschko P30, Eq (2.47))
Computing the Stresses in each bar (element) using the above formula:



|
|



|
|



|
|

Substituting
in Eqn 3.6.2, we calculate the reactions forces (
matrix)

|
|
|
The reactions at each Node (in N): C(X-component,Y-component) = (0,-1000)
|
Comparing Results with ABAQUS [edit]
The Stresses and Displacements calculated have been compared with the results generated by ABAQUS and there is a very good match as seen below.
2D Truss Model in ABAQUS, after the Loads and BCs have been applied.
The above image displays the Stress in each bar.
The above image displays the X-Displacements of the structure.
The above image displays the Y-Displacements of the structure.
--Eml5526.s11.team5.vijay 19:56, 15 February 2011 (UTC)
4.7 Calculix Graphics Installation, Basic Examples, & Tutorials [edit]
Given [edit]
-
Calculix is an open source Finite Element code (with ABAQUS like input) available at http://www.dhondt.de/
Find [edit]
-
1) Install CGX
-
2) Read manual and sign up with user group
-
3) Reproduce Basic examples
-
4)Write a report, explaining to novices how to install and run cgx
Solution [edit]
-
1)
Calculix Graphics Modules (CGX) was installed successfully.
-
Installation procedure for a Windows OS is described below:
-
Upon visiting http://www.dhondt.de/, you will be redirected to http://www.bconverged.com/download.php for a windows executable, where there is a link 'CalculiX_2_2_win_002.zip' which down loads the required ZIP files.
-
or You can use http://www.bconverged.com/data/content/CalculiX_2_2_win_002.zip to download the ZIP files directly.
-
Unzip the above downloaded file and double click on the executable to install calculix (provided by bconverged).
-
After successful installation, You will have access to CalculiX CrunchiX (CCX 2.2), CalculiX GraphiX(CGX 2.2), Help file (which contains manuals for CCX, CGX), test cases and a custom built SciTE, a text editor which is integrated with the other tools.
-
2)
We have gone through the CGX User manual (available in the help file provided with bConverged or at [2] ) and signed up with the user group.
-
The user group can be found at :http://groups.yahoo.com/group/calculix/
-
3)
We then reproduced the basic examples (disk, cylinder, sphere, sphere_volume, airfoil) with the help of example files downloaded from the following link: http://dhondt.de/cgx_2.2.exa.tar.bz2.
-
The input files required to reproduce each of the following examples are shown below:
-
a) Disc
| Input file 'disc.fbd' |
|---|
PNT py -0.00000 1.00000 0.00000 PNT p0 -0.00000 -0.00000 0.00000 PNT P001 0.70711 -0.00000 -0.70711 PNT P003 -0.00000 -0.00000 -1.00000 PNT P005 -0.70711 -0.00000 -0.70711 PNT P006 -1.00000 -0.00000 0.00000 PNT P009 -0.70711 -0.00000 0.70711 PNT P00A 0.00000 -0.00000 1.00000 PNT P00G 0.70711 -0.00000 0.70711 PNT P00I 1.00000 -0.00000 -0.00000 LINE L001 P00I P001 p0 4 LINE L002 P001 P003 p0 4 LINE L003 P003 p0 8 LINE L004 p0 P00I 8 LINE L005 P003 P005 p0 4 LINE L006 P005 P006 p0 4 LINE L007 P006 p0 8 LINE L009 P006 P009 p0 4 LINE L00A P009 P00A p0 4 LINE L00C P00A p0 8 LINE L00G P00A P00G p0 4 LINE L00I P00G P00I p0 4 GSUR A001 + BLEND - L003 - L002 - L001 - L004 GSUR A002 + BLEND - L007 - L006 - L005 + L003 GSUR A003 + BLEND - L00C - L00A - L009 + L007 GSUR A004 + BLEND + L004 - L00I - L00G + L00C ELTY all QU4 MESH all PLUS ea all |
-
b) Cylinder
| Input file 'Cylinder.fbd' |
|---|
PNT p0 -0.00000 -0.00000 0.00000 PNT py -0.00000 1.00000 0.00000 PNT p1 1.00000 -0.00000 0.00000 PNT P001 1.00000 1.00000 0.00000 PNT P002 -0.00000 -0.00000 -1.00000 PNT P003 -0.00000 1.00000 -1.00000 PNT P006 -1.00000 -0.00000 0.00000 PNT P007 -1.00000 1.00000 0.00000 PNT P00A 0.00000 -0.00000 1.00000 PNT P00C 0.00000 1.00000 1.00000 LINE L001 p1 P001 2 LINE L002 P002 P003 2 LINE L003 p1 P002 p0 8 LINE L004 P001 P003 py 8 LINE L005 P006 P007 2 LINE L006 P002 P006 p0 8 LINE L007 P003 P007 py 8 LINE L008 P00A P00C 2 LINE L009 P006 P00A p0 8 LINE L00A P007 P00C py 8 LINE L00I P00A p1 p0 8 LINE L00J P00C P001 py 8 GSUR A001 + BLEND - L001 + L003 + L002 - L004 GSUR A002 + BLEND - L002 + L006 + L005 - L007 GSUR A003 + BLEND - L005 + L009 + L008 - L00A GSUR A005 + BLEND - L008 + L00I + L001 - L00J SETA p1 p p1 SETA p2 p P001 SETA l1 l L001 SETA l2 p P002 SETA l2 p P003 SETA l2 l L002 SETA l3 p P006 SETA l3 p P007 SETA l3 l L005 SETA l4 p P00A SETA l4 p P00C SETA l4 l L008 SETA l5 p p1 SETA l5 p P001 ELTY all QU4 MESH all PLUS ea all |
-
c) Sphere
| Input file 'Sphere.fbd' |
|---|
PNT py -0.00000 1.00000 0.00000 PNT p1 1.00000 -0.00000 0.00000 PNT P01A -1.00000 -0.00000 0.00000 PNT P006 0.70711 0.50000 -0.50000 PNT P008 -0.00000 0.70711 -0.70711 PNT P00C 0.70711 -0.00000 0.00000 PNT P00K 0.70711 0.70711 0.00000 PNT P00L -0.00000 -0.00000 0.00000 PNT P01B -0.70711 0.50000 0.50000 PNT P01C 0.00000 0.70711 0.70711 PNT P01D -0.70711 -0.00000 0.00000 PNT P01E -0.70711 0.70711 0.00000 PNT P007 0.70711 0.50000 0.50000 PNT P00E 0.70711 -0.00000 0.70711 PNT P01H -0.70711 0.50000 -0.50000 PNT P01J -0.70711 -0.00000 -0.70711 PNT P00R 0.70711 -0.50000 0.50000 PNT P00S -0.00000 -0.70711 0.70711 PNT P01L -0.70711 -0.50000 -0.50000 PNT P00V 0.70711 -0.70711 -0.00000 PNT P00X -0.00000 -1.00000 -0.00000 PNT P01N -0.70711 -0.70711 0.00000 PNT P01Q -0.70711 -0.50000 0.50000 PNT P012 0.70711 -0.50000 -0.50000 PNT P013 -0.00000 -0.70711 -0.70711 PNT P015 0.70711 0.00000 -0.70711 PNT P01S -0.70711 0.00000 0.70711 PNT P017 -0.00000 0.00000 -1.00000 PNT P01T 0.00000 0.00000 1.00000 LINE L001 p1 P015 P00L 8 LINE L002 P015 P017 P00L 8 LINE L003 p1 P006 P00L 8 LINE L004 P006 P008 P00L 8 LINE L006 P015 P006 P00C 8 LINE L008 P017 P008 P00L 8 LINE L00A p1 P00K P00L 8 LINE L00C P00K py P00L 8 LINE L00G P006 P00K P00C 8 LINE L00J P008 py P00L 8 LINE L009 p1 P007 P00L 8 LINE L00E P007 P01C P00L 8 LINE L00I P00K P007 P00C 8 LINE L00K py P01C P00L 8 LINE L00L p1 P00E P00L 8 LINE L00N P00E P01T P00L 8 LINE L00O P007 P00E P00C 8 LINE L00P P01C P01T P00L 8 LINE L00T p1 P00R P00L 8 LINE L00V P00R P00S P00L 8 LINE L00W P00E P00R P00C 8 LINE L00X P01T P00S P00L 8 LINE L00Z p1 P00V P00L 8 LINE L010 P00V P00X P00L 8 LINE L011 P00R P00V P00C 8 LINE L012 P00S P00X P00L 8 LINE L015 p1 P012 P00L 8 LINE L016 P012 P013 P00L 8 LINE L017 P00V P012 P00C 8 LINE L019 P00X P013 P00L 8 LINE L01C P012 P015 P00C 8 LINE L01D P013 P017 P00L 8 LINE L01E P01A P01S P00L 8 LINE L01F P01S P01T P00L 8 LINE L01H P01A P01B P00L 8 LINE L01I P01B P01C P00L 8 LINE L01J P01S P01B P01D 8 LINE L01L P01A P01E P00L 8 LINE L01M P01E py P00L 8 LINE L01N P01B P01E P01D 8 LINE L01S P01A P01H P00L 8 LINE L01T P01H P008 P00L 8 LINE L01U P01E P01H P01D 8 LINE L01X P01A P01J P00L 8 LINE L01Y P01J P017 P00L 8 LINE L020 P01H P01J P01D 8 LINE L028 P01A P01L P00L 8 LINE L029 P01L P013 P00L 8 LINE L02B P01J P01L P01D 8 LINE L02E P01A P01N P00L 8 LINE L02F P01N P00X P00L 8 LINE L02G P01L P01N P01D 8 LINE L02L P01A P01Q P00L 8 LINE L02M P01Q P00S P00L 8 LINE L02O P01N P01Q P01D 8 LINE L02U P01Q P01S P01D 8 GSUR A005 + BLEND - L003 + L001 + L006 GSUR A002 + BLEND - L002 + L006 + L004 - L008 GSUR A006 + BLEND + L003 + L00G - L00A GSUR A004 + BLEND - L004 + L00G + L00C - L00J GSUR A001 + BLEND - L009 + L00A + L00I GSUR A003 + BLEND - L00C + L00I + L00E - L00K GSUR A007 + BLEND + L009 + L00O - L00L GSUR A008 + BLEND - L00E + L00O + L00N - L00P GSUR A009 + BLEND - L00T + L00L + L00W GSUR A00A + BLEND - L00N + L00W + L00V - L00X GSUR A00C + BLEND + L00T + L011 - L00Z GSUR A00E + BLEND - L00V + L011 + L010 - L012 GSUR A00G + BLEND - L015 + L00Z + L017 GSUR A00I + BLEND - L010 + L017 + L016 - L019 GSUR A00J + BLEND + L015 + L01C - L001 GSUR A00K + BLEND - L016 + L01C + L002 - L01D GSUR A00L + BLEND - L01H + L01E + L01J GSUR A00N + BLEND - L01F + L01J + L01I + L00P GSUR A00O + BLEND + L01H + L01N - L01L GSUR A00P + BLEND - L01I + L01N + L01M + L00K GSUR A00R + BLEND - L01S + L01L + L01U GSUR A00S + BLEND - L01M + L01U + L01T + L00J GSUR A00T + BLEND + L01S + L020 - L01X GSUR A00V + BLEND - L01T + L020 + L01Y + L008 GSUR A00W + BLEND - L028 + L01X + L02B GSUR A00X + BLEND - L01Y + L02B + L029 + L01D GSUR A00Z + BLEND + L028 + L02G - L02E GSUR A010 + BLEND - L029 + L02G + L02F + L019 GSUR A011 + BLEND - L02L + L02E + L02O GSUR A012 + BLEND - L02F + L02O + L02M + L012 GSUR A013 + BLEND + L02L + L02U - L01E GSUR A014 + BLEND - L02M + L02U + L01F + L00X ELTY all QU4 MESH all PLUS ea all |
-
d) Sphere_Volume
| Input file 'Sphere_volume.fbd' |
|---|
PNT py 0.00000 1.00000 0.00000 PNT p1 1.00000 0.00000 0.00000 PNT P006 0.70711 0.50000 -0.50000 PNT P008 0.00000 0.70711 -0.70711 PNT P00C 0.70711 0.00000 0.00000 PNT P00K 0.70711 0.70711 0.00000 PNT P00L 0.00000 0.00000 0.00000 PNT P00N 0.00000 1.00000 0.00000 LINE L001 p1 P00L 8 LINE L002 P00L P008 8 LINE L003 p1 P006 P00L 8 LINE L004 P006 P008 P00L 8 LINE L005 P00L P00N 8 LINE L00A p1 P00K P00L 8 LINE L00C P00K P00N P00L 8 LINE L00G P006 P00K P00C 8 LINE L00J P008 P00N P00L 8 GSUR A001 + BLEND - L003 + L001 + L002 - L004 GSUR A002 + BLEND - L005 - L001 + L00A + L00C GSUR A006 + BLEND + L003 + L00G - L00A GSUR A004 + BLEND - L004 + L00G + L00C - L00J GSUR A003 + BLEND + L002 + L00J - L005 GBOD B001 NORM + A006 - A003 - A004 + A002 + A001 ELTY all HE20 MESH all PLUS ea all |
-
e) Airfoil
| Input file 'Airfoil.fbd' |
|---|
|
PNT P002 -0.24688 0.00667 0.00000 PNT P003 -0.24375 0.00903 0.00000 PNT P004 -0.23750 0.01228 0.00000 PNT P005 -0.23125 0.01450 0.00000 PNT P006 -0.22500 0.01608 0.00000 PNT P007 -0.21250 0.01798 0.00000 PNT P008 -0.20000 0.01875 0.00000 PNT P009 -0.18750 0.01900 0.00000 PNT P00A -0.17500 0.01888 0.00000 PNT P00C -0.15000 0.01785 0.00000 PNT P00E -0.12500 0.01602 0.00000 PNT P00G -0.10000 0.01368 0.00000 PNT P00I -0.07500 0.01090 0.00000 PNT P00J -0.05000 0.00770 0.00000 PNT P00K -0.02500 0.00420 0.00000 PNT P00L -0.01250 0.00230 0.00000 PNT P00O -0.25000 0.00000 0.00000 PNT P00P -0.24688 -0.00308 0.00000 PNT P00R -0.24375 -0.00427 0.00000 PNT P00S -0.23750 -0.00565 0.00000 PNT P00T -0.23125 -0.00653 0.00000 PNT P00V -0.22500 -0.00730 0.00000 PNT P00W -0.21250 -0.00875 0.00000 PNT P00X -0.20000 -0.00993 0.00000 PNT P00Z -0.18750 -0.01070 0.00000 PNT P010 -0.17500 -0.01115 0.00000 PNT P011 -0.15000 -0.01120 0.00000 PNT P012 -0.12500 -0.01043 0.00000 PNT P013 -0.10000 -0.00917 0.00000 PNT P014 -0.07500 -0.00750 0.00000 PNT P015 -0.05000 -0.00540 0.00000 PNT P016 -0.02500 -0.00308 0.00000 PNT P017 -0.01250 -0.00175 0.00000 PNT P019 0.00000 0.00000 0.00000 PNT P1 -0.50000 -0.50000 0.00000 PNT P2 0.50000 -0.50000 0.00000 PNT p3 0.50000 0.50000 0.00000 PNT p4 -0.50000 0.50000 0.00000 PNT P01A -0.18162 0.01898 0.00000 PNT P01B -0.18180 -0.01094 0.00000 PNT P046 -0.27025 0.01256 0.00000 PNT P059 -0.26599 0.28688 0.00000 PNT P049 -0.25144 0.02439 0.00000 PNT P05A -0.35589 0.17566 0.00000 PNT P04C -0.22636 0.03241 0.00000 PNT P04D -0.20128 0.03643 0.00000 PNT P05C -0.38027 0.00958 0.00000 PNT P04G -0.12604 0.03833 0.00000 PNT P04H -0.07588 0.03616 0.00000 PNT P04I -0.02572 0.03231 0.00000 PNT P05D -0.31932 -0.21136 0.00000 PNT P04L -0.27652 -0.00154 0.00000 PNT P04M -0.27025 -0.00803 0.00000 PNT P05F -0.20962 -0.27840 0.00000 PNT P04P -0.25373 -0.01567 0.00000 PNT P04R -0.22676 -0.02143 0.00000 PNT P04T -0.20124 -0.02394 0.00000 PNT P05G 0.01132 0.29145 0.00000 PNT P04W -0.12604 -0.02508 0.00000 PNT P04X -0.07588 -0.02519 0.00000 PNT P04Z -0.02572 -0.02355 0.00000 PNT P05H 0.00065 -0.30887 0.00000 PNT P052 -0.18074 0.03754 0.00000 PNT P054 -0.18133 -0.02465 0.00000 PNT P056 0.00118 0.02891 0.00000 PNT P058 0.00010 -0.02250 0.00000 PNT P05I 0.01244 0.50000 0.00000 PNT P05J 0.00610 -0.50000 0.00000 PNT P05L 0.50000 -0.34112 0.00000 PNT P05M 0.50000 0.29206 0.00000 PNT P05N 0.50000 0.05780 0.00000 PNT P05S 0.50000 -0.05314 0.00000 PNT P05V 0.50000 -0.00217 0.00000 PNT P00N -0.23448 0.01345 0.00000 PNT P02M -0.23471 -0.00608 0.00000 PNT P03B -0.24164 0.02804 0.00000 PNT P03C -0.23405 -0.02029 0.00000 PNT P03E -0.24536 0.00794 0.00000 PNT P03P -0.24464 -0.00400 0.00000 PNT pl1 -1.00000 0.00000 0.00000 PNT pl2 1.00000 0.00000 0.00000 SEQA S006 pnt P01A P00A P00C P00E P00G P00I P00J P00K P00L P019 SEQA S007 pnt P019 P017 P016 P015 P014 P013 P012 P011 P010 P01B SEQA S00W pnt P03B P049 P046 P04L P04M P04P P03C SEQA S00R pnt P052 P04G P04H P04I P056 SEQA S00S pnt P058 P04Z P04X P04W P054 SEQA S00T pnt P05F P05D P05C P05A P059 SEQA S001 pnt P01A P009 P008 P007 P006 P005 P00N SEQA S00E pnt P03E P002 P00O P00P P03P SEQA S00L pnt P052 P04D P04C P03B SEQA S00A pnt P02M P00T P00V P00W P00X P00Z P01B SEQA S00X pnt P03C P04R P04T P054 SEQA S002 pnt P00N P004 P003 P03E SEQA S00P pnt P03P P00R P00S P02M LINE L003 P01A P052 910 LINE L00C P01A P019 S006 120 LINE L00E P019 P01B S007 120 LINE L004 p4 P1 150 LINE L05F P2 P05L -204 LINE L05S P05L P05S -912 LINE L05C P1 P05J 120 LINE L006 P01B P054 910 LINE L007 P019 P056 910 LINE L008 P058 P019 -910 LINE L00G P05S P05V -210 LINE L00N P03B P03C S00W 130 LINE L03R P052 P056 S00R 120 LINE L00I P05V P05N 210 LINE L03S P058 P054 S00S 120 LINE L04V p4 P059 -204 LINE L04W P059 P052 -912 LINE L04X P054 P05F 912 LINE L04Z P05F P1 204 LINE L050 P05F P059 S00T 150 LINE L052 P059 P05G 120 LINE L054 P05F P05H 120 LINE L056 P05H P058 -912 LINE L058 P056 P05G 912 LINE L059 p3 P05I 130 LINE L05A P05I p4 120 LINE L05D P05J P2 130 LINE L05V P056 P05N 130 LINE L05I P05M p3 204 LINE L05L P05N P05M 912 LINE L05Z P058 P05S 130 LINE L06C P019 P05V 130 LINE L06F P05M P05G 130 LINE L06H P05G P05I 204 LINE L06I P05L P05H 130 LINE L06J P05H P05J 204 LINE L001 P01A P00N S001 -210 LINE L00A P03E P03P S00E 120 LINE L00K P052 P03B S00L 110 LINE L009 P02M P01B S00A 210 LINE L00O P03C P054 S00X 110 LINE L002 P00N P03E S002 -205 LINE L00L P03P P02M S00P 205 LINE cl pl1 pl2 120 LINE L005 P00O P019 120 LCMB C001 + L001 + L002 + L00A + L00L + L009 LCMB C004 + L00K + L00N + L00O GSUR A001 + BLEND + L003 + C004 - L006 - C001 GSUR A002 + BLEND + L006 - L03S + L008 + L00E GSUR A003 + BLEND + L00C + L007 - L03R - L003 GSUR A004 + BLEND - L008 + L05Z + L00G - L06C GSUR A005 + BLEND + L06C + L00I - L05V - L007 GSUR A00I + BLEND - L04W - L050 - L04X - C004 GSUR A00J + BLEND - L04V + L004 - L04Z + L050 GSUR A00K + BLEND + L04Z + L05C - L06J - L054 GSUR A00L + BLEND + L06J + L05D + L05F + L06I GSUR A00N + BLEND + L04V + L052 + L06H + L05A GSUR A00O + BLEND - L06H - L06F + L05I + L059 GSUR A00P + BLEND + L04W + L03R + L058 - L052 GSUR A00R + BLEND + L04X + L054 + L056 + L03S GSUR A00S + BLEND - L058 + L05V + L05L + L06F GSUR A00T + BLEND - L056 - L06I + L05S - L05Z SETA wall l L05C SETA wall l L059 SETA wall l L05A SETA wall l L05D SETA profil l L00C SETA profil l L00E SETA profil l L001 SETA profil l L00A SETA profil l L009 SETA profil l L002 SETA profil l L00L SETA in l L004 SETA out l L05F SETA out l L05S SETA out l L00G SETA out l L00I SETA out l L05I SETA out l L05L elty all qu4 mesh all plus ea all |
-
4)
The installation procedure for Calculix Graphics (CGX) has been described in (1).
-
There are two ways in which we can write CGX input files and run them:
-
a) Using CalculiX Command window
-
b) Using SciTE, a text editor which is integrated with other tools
-
We will use SciTE to write and run input files. This process involves three steps:
-
i) Open SciTE and create a New file:
-
SciTE can be opened as follows: Start> All Programs > bConverged > SciTE A text editor pops up where an input file can be edited or created. A new file can be created by using the command "Ctrl+N" or by selecting "File > New"
-
A text editor pops up where an input file can be edited or created. A new file can be created by using the command "Ctrl+N" or by selecting "File > New"
-
ii) Type the required commands & save the file (in .fbd format): Once a new file has been created we are ready to start writing our input file. Type the commands for geometry creation and mesh generation in the text editor. Few commands required to generate basic shapes are discussed later on. After the required commands are typed in, Save the input file giving it an appropriate name and extension (.fbd) Example: "Sphere.fbd"
-
Once a new file has been created we are ready to start writing our input file. Type the commands for geometry creation and mesh generation in the text editor. Few commands required to generate basic shapes are discussed later on. After the required commands are typed in, Save the input file giving it an appropriate name and extension (.fbd) Example: "Sphere.fbd"
-
iii) Pre Process the input file (.fbd): The .fbd file created using the above steps can be PreProcessed by hitting the "F10" key or by selecting "Tools > PreProcess"
-
The .fbd file created using the above steps can be PreProcessed by hitting the "F10" key or by selecting "Tools > PreProcess"
-
Generally the Plot window which pops up upon PreProcessing hides the mesh and shows only the wire frame geometry. To View the meshed part do the following:
-
Menu > Viewing > Show All Elements With Light
-
Menu > Viewing > Toggle Element Edges
-
(Note: Menu is displayed by clicking on the input file name below the Plot)
-
CGX Commands used in creating the basic shapes:
-
- PNT
-
This keyword is used to define or redefine a point.
-
Syntax:
-
'pnt' <name(char<9)>|'!' [<x> <y> <z>]|[<line> <ratio> <times>]|[<P1> <P2> <ratio> <times>]|[<setname(containing nodes)>]
-
Examples:
-
pnt p1 11 1.2 34
-
Creates point "p1" with coordinates (11,1.2,34)
-
pnt ! 11 1.2 34
-
The name is chosen automatically with coordinates (11,1.2,34).
-
pnt ! L1 0.25 3
-
To create 3 points on a line "L1" with 0.25 spacing
-
pnt ! P1 P2 0.25 3
-
To create 3 points between P1, P2 with spacing 0.25
-
- LINE
-
This keyword is used to define or redefine a line. A line depends on points. A line can only be defined if the necessary points are already defined.
-
Syntax:
-
'line' <name(char<9)>|'!' <p1> <p2> <cp|seq>
-
Examples:
-
line l1 p1 p2 4
-
To create a line "l1" by the points p1 and p2 divided into 4 segments.
-
line ! p1 p2 cp 4
-
To create a arc line joining points "p1", "p2" with "cp" as center.
-
- GSUR
-
This keyword is used to define or redefine a surface in the most basic way. Each surface must have three to five lines or combined lines (see lcmb) to be mesh-able. However, the recommend amount of edges is four.
-
Syntax:
-
'gsur' <name(char<9)>|'!' '+|-' 'BLEND|<nurbs>' '+|-' <line|lcmb> '+|-' -> <line|lcmb> .. (3-5 times)
-
Example:
-
gsur S004 + BLEND - L002 + L00E + L006 - L00C
-
will create the surface S004 with a mathematically positive orientation indicated by the + sign after the surface name. The keyword BLEND indicates that the interior of the surface will be defined according to Coons or a NURBS surface is referenced. Use a + or - in front of the lines or lcmbs to indicate the orientation.
-
- GBOD
-
This keyword is used to define or redefine a body in the most basic way. Each body must have five to seven surfaces to be mesh-able. However, the number of recommended surfaces is six. The first two surfaces should be the top and the bottom surfaces.
-
Syntax:
-
'gbod' <name(char<9)>|'!' 'NORM' '+|-' <surf> '+|-' <surf> ->.. ( 5-7 surfaces )
-
Example:
-
gbod B001 NORM - S001 + S002 - S005 - S004 - S003 - S006
-
will create a body B001. The keyword NORM is a necessary placeholder for future functionallity but has no actual meaning. Next, follow the surfaces with a sign + or - in front that indicates the orientation of each surface.
-
- SETA
-
This keyword is used to create or redefine a set. The following entities are known: Nodes n, Elements e, Faces f, Points p, Lines l, Surfaces s, Bodies b, Nurb Surfaces S, Nurb Lines L and names of other sets se
-
Syntax:
-
'seta' <set> '!'|'n'|'e'|'p'|'l'|'c'|'s'|'b'|'S'|'L'|'se' <name ..> | ['n'|'e' <name> '-' <name> <steps>]
-
Example:
-
seta dummy p p1 p2
-
This create a set "dummy" and will add the points p1 and p2 to the set.
-
- ELTY
-
This keyword is used to assign a specific element type to a set of entities .
-
The element name is composed of the following parts:
-
I) The leading two letters define the shape (be: beam, tr: triangle, qu: quadrangle, he: hexahedra),
-
II) The number of nodes
-
III) At last an attribute describing the mathematical formulation or other features (u: unstructured mesh, r: reduced integration, i: incompatible modes, f: fluid element for ccx). If the element type is omitted, the assignment is deleted. If all parameters are omitted, the actual assignments are posted.
-
Syntax:
-
'elty' [<set>] ['be2'|'be3'|'tr3'|'tr3u'|'tr6'|'qu4'|->'qu8'|'he8'|'he8f'||'he8i'|'he8r'|'he20'|'he20r']
-
Examples:
-
elty
-
will print only the sets with assigned elements. Multiple definitions are possible. For example,
-
elty all
-
deletes all element definitions. If the geometry was already meshed, the mesh will NOT be deleted. If the mesh command is executed again after new assignments has taken place, additional elements will be created.
-
elty all he20
-
assigns 20 node brick-elements to all bodies in the set all.
-
elty part1 he8
-
redefines that definition for all bodies in the set part1.
-
elty part2 qu8
-
assigns 8 node shell elements to all surfaces in set part2.
-
- MESH
-
This keyword is used to start the meshing of the model. before using the mesh command, the element types must be defined with the elty command
-
Syntax:
-
'mesh' <set> ['fast'] ['block'|'lonly'|'nolength'|'noangle'|'length'|'angle']
-
- PLUS
-
This keyword is used to display the entities of an additional set after a plot command was used.
-
Syntax:
-
'plus' ['n'|'e'|'f'|'p'|'l'|'s'|'b'|'S'|'L']&['a'|'d'|'p'|'q'|'v'] -> <set> 'w'|'k'|'r'|'g'|'b'|'y'|'m'|'i'
-
Now, Let us review how the above discussed commands are used to crate a Disk.
-
i) Initially Points are created by typing the point name followed by their coordinates. A screen shot of the created points is shown below along with the commands
-
ii) We now have all the points required to create the disk.
-
Arc lines join points on circumference that are adjacent to each other (As shown below)
-
Straight lines join the circumferential points to the center of the circle (as shown below)
-
iii) After all the lines have been created, we create surfaces and this is what the geometry looks like before it is meshed.
-
The Disk after it has been meshed is shown in (3)
4.6 Elastic bar with variable distributed spring [edit]
Given [edit]
-
An elastic bar is loaded with a variable distributed spring p(x) along its length as shown in the below figure. The distributed spring imposes an axial force on the bar in proportion to the displacement.
-
L- Length of bar,
-
A(x)- Cross sectional area at x,
-
E(x)- Young's Modulus at x,
-
b(x)- Body force at x
-
Boundary conditions:
-
i) Displacement at x(=0) = 0
-
ii) Force at x(=L) =

Find [edit]
-
a) Construct the weak form
-
b) Construct the strong form
Solution [edit]
a) Strong Form [edit]
-
Consider the free body diagram of a differential element for the above problem.
-
Balancing the forces acting on the differential element in the X-direction (along the length of the bar):
-
p(x)dx is the force exerted by the spring on the differential element.
-
b(x)dx is the body force acting on the differential element.
-
Substituting n(x)=1, n(x+dx)=-1 and expanding the terms
Using Taylor's Series and neglecting Higher order terms, Eq 4.6.1 transforms into:
-
We know that

-
Substituting the above relation and cancelling the dx term, Eq 4.6.2 yields the Strong Form:
|
|
b) Weak Form [edit]
-
The weak form by simplifying the following equation
-
i.e.,
![\int_0^L W(x) \left( \frac {\partial }{\partial x} \left[ E(x)A(x) \frac {\partial u}{\partial x} \right] + b(x) - p(x) \right)dx = 0](//upload.wikimedia.org/math/5/7/e/57e0204ce961e8dc4bbe3588b31eecae.png)
-
Term I can be expanded using the chain rule of integration as follows:
-
Applying the Natural Boundary Condition
and selecting W Such that W(x=0)=0, the above expression becomes:
-
Substituting the above expression back into Eq 4.6.4 We get the weak form:
|
|












![\Omega =[0,T]](http://upload.wikimedia.org/math/3/5/c/35ca8422333d0d3a95c32153e8bf81be.png)

. Observe the properties of 



![sin(x)cos(y) = \left [sin(x+y) + sin(x-y) \right ]/2,](http://upload.wikimedia.org/math/b/d/f/bdfc8e2939d28b1a19b83f93bc89c3b8.png)
![cos(x)sin(y) = \left [sin(x+y) - sin(x-y) \right]/2,](http://upload.wikimedia.org/math/9/1/d/91d991dd09ea89db08d00c854af13d43.png)
![cos(x)cos(y) = \left [cos(x-y) + cos(x+y) \right]/2,](http://upload.wikimedia.org/math/6/8/1/6811ed6fe4877f8c79f87d43e5c6004f.png)
![sin(x)sin(y) = \left [cos(x-y) - cos(x+y)\right]/2.](http://upload.wikimedia.org/math/9/e/e/9ee067790b1056ce6a30fa0d31027626.png)

, i.e. The
]![\Gamma_{1,1} = \int_{0}^{T} dx = \left [ x \right ]_{0}^{T} = T](http://upload.wikimedia.org/math/a/e/c/aec90851c763f915d06c79aee6f821d2.png)





![\Gamma_{2,3} = \Gamma_{3,2} = \int_{0}^{T} cos \omega x cos 2\omega x dx
= \frac {1}{2} \int_{0}^{T} \left [ cos \omega x + cos 3\omega x \right ] dx = 0](http://upload.wikimedia.org/math/3/9/9/399930ea5024768bc6382957691e4dd5.png)

![\Gamma_{2,5} = \Gamma_{5,2} = \int_{0}^{T} cos \omega x sin 2\omega x dx
= \frac {1}{2} \int_{0}^{T} \left [ sin 3\omega x + sin \omega x \right ] dx = 0](http://upload.wikimedia.org/math/b/c/f/bcfc19815a143362d409f69947d103f1.png)
![\Gamma_{3,3} = \int_{0}^{T} cos^{2} \omega 2x dx
= \frac {1}{2} \int_{0}^{T} \left [ cos 4\omega x + 1 \right ] dx = \frac {T}{2}](http://upload.wikimedia.org/math/f/5/f/f5f0bd1bdc9d843224af6d7edeffd016.png)
![\Gamma_{3,4} = \Gamma_{4,3} = \int_{0}^{T} cos 2\omega x sin \omega x dx
= \frac {1}{2} \int_{0}^{T} \left [ sin 3\omega x - sin \omega x \right ] dx = 0](http://upload.wikimedia.org/math/7/c/6/7c6fbdee70c19b553a4e181ccfd6aa78.png)

![\Gamma_{4,4} = \int_{0}^{T} sin^{2} \omega x dx
= \frac {1}{2} \int_{0}^{T} \left [ 1 - cos 2\omega x \right ] dx = \frac{T}{2}](http://upload.wikimedia.org/math/0/f/5/0f55e409952df2ccbde84abcf7d799e4.png)
![\Gamma_{4,5} = \Gamma_{5,4} = \int_{0}^{T} sin \omega x sin 2\omega x dx
= \frac {1}{2} \int_{0}^{T} \left [ cos \omega x - cos 3\omega x \right ] dx = 0](http://upload.wikimedia.org/math/5/8/a/58a2864773aa1affb73d24040938167e.png)
![\Gamma_{4,4} = \int_{0}^{T} sin^{2} 2\omega x dx
= \frac {1}{2} \int_{0}^{T} \left [ 1 - cos 4\omega x \right ] dx = \frac{T}{2}](http://upload.wikimedia.org/math/0/6/8/06839857988869585f4092f4a224d7b5.png)

Diagnol








,


























Using Taylor's Series and neglecting Higher order terms, Eq 4.6.1 transforms into:


![P(u) = \frac {\partial }{\partial x} \left[ E(x)A(x) \frac {\partial u}{\partial x} \right] + b(x) - p(x) = 0](http://upload.wikimedia.org/math/2/2/d/22d4ac9a1a46c7ce7aa4e6df603afd3c.png)



![\int_0^L W(x) \left( \frac {\partial }{\partial x} \left[ E(x)A(x) \frac {\partial u}{\partial x} \right] + b(x) - p(x) \right)dx = 0](http://upload.wikimedia.org/math/5/7/e/57e0204ce961e8dc4bbe3588b31eecae.png)

![\left[ W(x)E(x)A(x) \frac {\partial u}{\partial x} \right]_0^L - \int_0^L \left( \frac {\partial W(x)}{\partial x} E(x) A(x) \frac {\partial u(x)}{\partial x} \right)dx](http://upload.wikimedia.org/math/a/7/8/a78c2791b501c182b44425ee97eadc1b.png)
![\left[ W(x)E(x)A(x) \frac {\partial u}{\partial x} \right]_L - \left[ W(x)E(x)A(x) \frac {\partial u}{\partial x} \right]_0 - \int_0^L \left( \frac {\partial W(x)}{\partial x} E(x) A(x) \frac {\partial u(x)}{\partial x} \right)dx](http://upload.wikimedia.org/math/f/7/0/f703ff3f5e3ee7ebf5d87c1586c76838.png)
![\left[ W(L)A(L) \bold t \right] - \int_0^L \left( \frac {\partial W(x)}{\partial x} E(x) A(x) \frac {\partial u(x)}{\partial x} \right)dx](http://upload.wikimedia.org/math/2/7/4/27441a673b95a0ea6c17b94e9935932c.png)
![\left[ W(L)A(L) \bold t \right] - \int_0^L \left( \frac {\partial W(x)}{\partial x} E(x) A(x) \frac {\partial u(x)}{\partial x} \right)dx + \int_0^L W(x) \left(b(x) - p(x) \right)dx = 0](http://upload.wikimedia.org/math/8/7/1/871dc5d92607afb4bef69a7c1919826a.png)
Such That W(x=0)=0