User:Eml5526.s11.team6.tupsakhare/hwk3

From Wikiversity
Jump to navigation Jump to search

HOMEWORK 3 -Problem 3.3[edit | edit source]

Given[edit | edit source]

Referred from - Pg 37, Reference (1)[1]

Consider the truss shown in the following FIGURE 3.3.1(PLEASE INSERT PROBLEM STATEMENT FIG HERE)

-Nodes A and B are fixed.

-A force F = 10 N acts in the positive x- direction at node C. Coordinates of the joints are given in meters.

-Young's modulus E = 1011 Pa

-Cross sectional area for all bars , A = 2. 10-2 m2

Find[edit | edit source]

a. Number the elements and nodes

b. Assemble the global stiffness and force matrix

c. Partition the system and solve for the nodal displacements

d. Compute the stresses & reactions

Solution[edit | edit source]

Number the Element and Nodes[edit | edit source]

Node and element numbering is done in the following fashion. Refer to the FIGURE 3.3.2(PLEASE INSERT NUMBERERD FIGURE HERE) as given below-

Assemble the Global Stiffness and Force Matrix[edit | edit source]

We use the Following formula Referred from - Pg 30, Reference (1) for Elemental Stiffness Matrix of each element,

Where, and the superscript e denotes the element number.
Now in this case as seen from the given data, A and E for all the 4 elements have same but distinct values. So we can eliminate the superscript e for A and E of each element.

Element 1[edit | edit source]

  • Element 1 goes from Node 1 to Node 3
  • Orientation : 90 degrees to the Positive X-direction, . Hence , and

Using Eq. 3.3.1 for Element 1,

Element 2[edit | edit source]

  • Element 2 goes from Node 2 to Node 4
  • Orientation : 90 degrees to the Positive X-direction, . Hence , and

Using Eq. 3.3.1 for Element 2,

Element 3[edit | edit source]

  • Element 3 goes from Node 2 to Node 3
  • Orientation : 135 degrees to the Positive X-direction, . Hence , and

Using Eq. 3.3.1 for Element 3,

Element 4[edit | edit source]

  • Element 4 goes from Node 3 to Node 4
  • Orientation : 0 degrees to the Positive X-direction,, , ,

Using Eq. 3.3.1 for Element 4,

GLOBAL STIFFNESS MATRIX[edit | edit source]

Using above Elemental Matrices, we construct the Global Stiffness Matrix for the given Truss System as follows,

FORCE MATRIX[edit | edit source]

The force matrix contains reactions and externally applied force components at various nodes.
Let Rx = Reaction at node in x -direction, Ry = Reaction at node in y -direction, subscripts denote the node number
Also node 3 is free to move in both x- and y- direction and is free of any external forces.
And node 4 is free to move in both x- and y- direction and has an external force of 10 N applied in the x- direction as per the given data in the problem statement.

The Force Matrix is assembled as follows -

NODAL DISPLACEMENT MATRIX[edit | edit source]

The noddal displacement matrix contains displacement components at various nodes.
Let ux = Displacement at node in x -direction, uy = Displacement at node in y -direction, subscripts denote the node number
Nodes 1 and 2 are fixed so they have all the components of displacement as zeros (0).
Also node 3 and 4 are free to move in both x- and y- direction.

The Nodal Displacement Matrix is assembled as follows -

Partition the system and solve for the Nodal Displacements.[edit | edit source]

Now, using the Global stiffness matrix (K), Force matrix (F) and the Nodal displacement matrix (d), we can write the Global System as follows,

As the displacements for first two nodes are prescribed, we partition the systems after four rows and columns.

System Partition[edit | edit source]

Also we use the following equation from - Pg 23, 'A first course in finite elements' - Fish & Belytschko -2007 and compare our global system with it to get the nodal reactions and elemental stresses using & -

On comparison then we get the following partitioned matrices -

Nodal Displacements[edit | edit source]

We solve the following system of equations to get the nodal displacement matrix,

-

But is a Zero Matrix, which will yield, Solving using the above equation, the unknown nodal displacements are

-

Compute the nodal reactions and Elemental stresses[edit | edit source]

Nodal reactions[edit | edit source]

-

Using the above equation the unknown reaction values are

Elemental Stresses[edit | edit source]

The stresses in the elements are given by the following expression from page 34 of the reference (1)

(3.21)

For element 1:

For element 2:

For element 3:

For element 4:

References[edit | edit source]

  1. Fish, Jacob (2007). A First Course in Finite Elements. Chichester: John Wiley & Sons Ltd. ISBN 9780470035801. 




Problem 6.3[edit | edit source]

Given[edit | edit source]

Calculix Tutorials by Beede in four parts posted on Mechanical Hacks Blog as per the links provided below :
-Calculix FEA Beam Part 1: Buliding Geometry and Meshing
-Calculix FEA Beam Part 2: Exporting Mesh, Loads, and Boundary Conditions
-Calculix FEA Beam Part 3: Writing an Input File for the CCX Solver
-Calculix FEA Beam Part 4: Post Processing Results in CGX

Find[edit | edit source]

To reproduce the steps for modeling and analysis of a beam problem from above mentioned Tutorials through CGX and CCX Finite Element software

Solution[edit | edit source]

Calculix FEA Beam Part 1: Building Geometry and Meshing[edit | edit source]

Start up data[edit | edit source]

open the SciTE text editor, then “save as” a blank file with name beam.fbd. Firing up cgx with the current file as input is available from the Tools->Pre Process menu item or the F10 key.
Details are shown as per Figure 6.3.1(1), Figure 6.3.2(1) and Figure 6.3.3 (1)

Figure 6.3.1(1): Saving a newly opened file
Figure 6.3.2(1): Creation of batch file name : beam.fbd
Figure 6.3.3(1): Pre-processing through Tools menu

It is easier to define geometry with a batch file. Interactive mode is a bit more useful when it comes to working with the mesh like assigning boundary conditions, loads, and constraints to a set of specific nodes.

Add the following text to the beam.fbd file as shown in the below Figure 6.3.4 (1).

Figure 6.3.4(1): The beam.fbd file

The first two lines of the batch file define points in cgx model space. The first point is named p1 located at (x,y,z) = 0.
The third line of code defines a cgx line with name l1 that starts at point p1 and ends a point p2 and has a division of 25 .

Hit the F10 Key or choose Tools->Pre Process from the menu.

Figure 6.3.5(1): Pre-processing

The following result is displayed in the below Figure 6.3.6 (1).

Figure 6.3.6(1): Pre-processed line between points P1 and P2

In addition the window is divided into two distinct areas. On the right side top corner is the graphics display area bordered by a thin black line. Inside the graphics display area clicking and holding the mouse has the following functionality :

  1. Left mouse button = rotate
2. Middle mouse button = zoom
3. Right mouse button = pan

Moving the mouse out of the area surrounded by the thin black border the mouse has different functionality. In this area the left mouse button is used to bring up a menu which gives the user a graphical front end to some of the cgx commands which can alternatively be typed on the keyboard. Only a small subset of the commands are available through the pop up menu.

A simple 100 x 10 x 1 rectangular beam[edit | edit source]

We now proceed to generate a simple 100 x 10 x 1 rectangular beam meshed with 1x1x1 cubes.
We revise the generated batch file with more points and lines as shown in the following Figure 6.3.7 (1) and Figure 6.3.8 (1) .

Figure 6.3.7(1): Line segments with multiple node points
Figure 6.3.8(1): Line segments with multiple node points

These extra segments will allow for meshing at the desired resolution of 1x1x1 size elements. The reason for this is that each line segment is internally limited to 99 divisions.
We also note that quadratic elements mesh at a resolution of 2 line divisions equals 1 mesh element side length. Linear elements mesh at a rate of 1 division equals 1 mesh element length.

Figure 6.3.9(1): Keyboard commands

The output window is capturing all the cgx program output and keyboard input. While the cgx window is the active window any keyboard input will be shown on the bottom line of the output window as it can be seen that two line input is provided in above figure 6.3.9 (1) -
-plot pa all tells cgx to display all points p with their names a. More specifically it displays all the points contained within the cgx set named all. Users can define their own sets with arbitrary members to manage the problem definition and processing.
-The second command plus la all is used to add the lines with their names to the existing plot. If instead plot la all had been typed after the first command the points and their names would have been eliminated from the new plot view.

Building a surface from the line using a sweep command[edit | edit source]

We now proceed to build a surface from the line using a sweep command.
We revise the generated batch file as shown in the following Figure 6.3.10 (1) .

Figure 6.3.10(1): surface from the line

The text file is updated to create a set containing the four lines and then to sweep the set in the y direction for a length of 10 units.

The command seta is used to create a new set named lines. The l flag indicates that the items to add are lines. Several seta commands can be used to incrementally add elements, nodes, or geometry to the same set.

The swep command sweeps the set named lines via translation in (0,10,0) with 10 divisions and stores the newly created lines and points into a set labeled sweplines.

The plus sa all command shows all surfaces with their labels.

Use of plot ld all command[edit | edit source]

We use the plot ld all command to show only the lines with their divisions. The divisions in Figure 6.3.11(1) define the mesh resolution of 100 x 10 in the x and y- directions respectively.

Figure 6.3.11(1): Use of plot ld all

The following operation as shown in Figure 6.3.12-1(1) adds another swep to turn the 2D surface into a 3D body. The .fbd file and results are shown .

[[File:S.11.Team6.tupsakhare-Figure- 6.3.12-1-(1).png S.11.Team6.tupsakhare-Figure- 6.3.12-1-(1).png|thumb|centre|600px|Figure 6.3.12-1(1): Additional swep ]]

In figure 6.3.12-2 (1) the menu system toggles the background color as explained in the middle of above Figure 6.3.12-1(1) -

Figure 6.3.12-2(1): Toggling background color

Element types available to mesh with using cgx[edit | edit source]

The following element types are available to mesh with using cgx -

  1. be2: 2 node 1D linear beam element
2. be3: 3 node 1D quadratic beam element
3. tr3: 3 node 2D linear triangular shell element
4. tr6: 6 node 2D quadratic triangular shell element
5. qu4: 4 node 2D linear quadrangle element
6. qu8: 8 node 2D quadratic quadrangle element
7. he8: 8 node 3D linear brick element
8. he20: 20 node 3D quadratic brick element
9. pe6: 6 node 3D linear penta element
10. pe15: 15 node 3D quadratic penta element

Meshing using interactive mode of CGX[edit | edit source]

We load the beam defined in the previous step in cgx and keep the mouse must be within the cgx window. Then provide with following commands

elty all he8

mesh all

plot m all

The elty all he8 command indicates that we will be meshing the set all with he8 elements.

Figure 6.3.13(1): Meshing the beam using 8 node 3D linear brick element

Various views of the meshed model[edit | edit source]

Different graphical views of the model can be generated as shown in below Figure 6.3.14(1) :

Figure 6.3.14(1): View form change commands

1. Viewing -> Toggle Model Edges in the area outside of the graphics display part of cgx : as shown in Figure 6.3.14(1) below -

Figure 6.3.15(1): Toggle model edges

2. Viewing->DOTS and Viewing->Toggle Element Edges :as shown in Figure 6.3.15(1) below -

Figure 6.3.16(1): Toggle element edges

In this section , the mesh which was created based on the defined geometry and selected element type.

Calculix FEA Beam Part 2: Exporting Mesh, Loads, and Boundary Conditions[edit | edit source]

Creation of Mesh-File[edit | edit source]

Now we define into the batch file beam.fbd, a set named beam, mesh it, and save the nodes and elements in Abaqus format for input into ccx.
The following Figure 6.3.1 (2) shows the beam.fbd file after adding the new commands

Figure 6.3.1(2): Defining a set named beam

On line 1 the command seto beam has been used. This command tells cgx to open a set named beam. While beam is the open set geometry created using cgx commands will be added to this set.
Finally the set is closed on line 16 using the setc beam command. Lines 16 and 17 define the element type and build the mesh.

Now that the mesh has been created the command send beam abq is used to export the mesh created from set beam to the abq (Abaqus) format. The result of this command will reside in the same directory as the open .fbd file that created it, the working directory. Its name will be beam.msh.

Next hit the F10 key or Tools->Pre Process to process the batch file. The following window as given in Figure 6.3.2(2) appears and the mesh file is written to disk.

Figure 6.3.2(2): The mesh file written to disk.

Contents of the Mesh-file[edit | edit source]

The most interesting parts are the start of the node and element definitions respectively as shown in below figure 6.3.3(2) and Figure 6.3.4(2) -
These commands capture the shape and number ordering of the mesh.

Figure 6.3.3(2): The mesh file part-1

Line number 1 above starts with the command *NODE, NSET=Nbeam which declares the start of a node list. It also assigns a name to this set of nodes, Nbeam. Grouping together nodes and elements into logical units is a convenience of management.

Figure 6.3.4(2): The mesh file part-2


In the second image the declaration for the elements is observed on line number 2224. This command *ELEMENT, TYPE=C3D8, ELSET=Ebeam defines linear 3D bricks with 8 nodes and groups them in the Ebeam set. In cgx he8 elements turn into C3D8 elements within ccx.

Note - To define nodes and elements for a low resolution mesh the same commands shown in the images above can be written by hand in an .inp file.

To export some loads and boundary conditions[edit | edit source]

This will require selecting some nodes within interactive mode to create a set. Then the set will be exported using the send command.

With the beam.fbd file open in cgx issue the following commands to view only the nodes of the mesh. The commands are shown at the bottom of the Figure 6.3.4 (2) above.

The command plot n all is used to display the nodes, n, from the set all. The results should look like the image below. The rot -z command rotates the view to the -z direction.
In this case the set all contains everything defined in the cgx file, the same result could also be obtained by using the command plot n beam because beam is the only set meshed thus far.

Figure 6.3.5(2): Mesh with nodes displayed
Figure 6.3.6(2): Zoomed in view of the above mesh

Graphical selection[edit | edit source]

We use the command qadd fixed and press the enter button so that the mouse cursor has changed to look like Figure 6.3.7(2) below -

Variable size Selection of the graphical area can be done using command - qadd and r-button on the keyboard .
This is shown in below Figure 6.3.8(2)

Figure 6.3.8(2): Graphical area selection

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. The following Figure 6.3.9(2) and Figure 6.3.10(2) show the larger selection rectangle and the results of pressing the a button to active mode:a. The results of this selection will be shown in the output window as a numbered list of nodes which were added to the set. This is shown at the bottom of the figures below.

Figure 6.3.9(2): Graphical area selection
Figure 6.3.10(2): Graphical area selection

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 the view can be manipulated to look like the following Figure 6.3.11(2) and Figure 6.3.11a(2). Changing the color by adding a color character at the end of the plus or plot command is helpful to confirm the set contains the desired items.

Figure 6.3.11(2): Nodes visible through background color toggling

The command view edge off is equivalent to Viewing->Toggle Model Edges.
Next the plus l beam w command adds the lines from the set beam to the plot in white.
The last command issued adds the nodes contained in the new set fixed. These are plotted in green using the plus n fixed g command.

Boundary Conditions[edit | edit source]

Now that the nodes for the fixed end of the beam have been grouped together they can be exported with a boundary condition. In this case each node will be constrained such that displacements (x,y,z) = 0, that is they are fixed. This is accomplished using the send command shown in the Figure 6.3.12(2) below.

Figure 6.3.12(2): Boundary Conditions ans Constraints

The command send fixed abq spc 123 is used to write the boundary condition to a file. In this case fixed is the name of the set of nodes, abq defines the Abaqus format, spc stands for single point constraint, and 123 indicates the degrees of freedom to fix.

We notice the output below the send command. The boundary conditions are written to a file named fixed_123.bou in the working directory. Part of it is shown in figure 6.3.13(2) below. Also we notice the output statement ready which indicates processing of the file has finished.

Figure 6.3.13(2): Boundary Conditions ans Constraints

Loads[edit | edit source]

We define a distributed pressure load on an element face. Use the plot f beam command to view the element faces as shown in Figure 6.3.14(2).

Figure 6.3.14(2):Pressure load
Figure 6.3.14(2):Commands -Pressure load

Next the send command is used to write a pressure load to the load.dlo file. The send command is used to output a pressure, pres, with magnitude equal to 10 as follows -

send load abq pres 10
please wait for 'ready'
write file: load.dlo
ready
ready

The resulting load.dlo file has the following contents within -

Figure 6.3.15(2):Pressure load

Line number 2 defines a load of magnitude 10 applied to the 6th face, P6, of element number 751. To confirm the correct element has been selected examine the model using the plot ea beam command. Also, note the Viewing->Toggle Culling Back/Front mode is used to see inside of the elements. This is necessary because the element labels are hidden behind the outside faces.

Figure 6.3.16(2):Element labels

In order to confirm the face selected in the previous step is indeed number 6 it will be necessary to turn on node number labels and zoom in on the area of element 751.

Figure 6.3.17(2):Element 751

Following Figure 6.3.18(2) shows the order of the nodes for element 751.

Figure 6.3.18(2):Order of the nodes of the Element 751

prnt e 751

elem: 751 1673 1674 1675 1676 1677 1678 1679 1680

We compare this to the element numbering guide shown in the Calculix user manual. Node numbers 1673, 1674, 1675, 1676 are located on the right hand face at x=100. These node numbers correspond to 1, 2, 3, 4 in the figure below. This figure has been copied directly from the Calculix manual. It also contains details for different element shapes. Thus it is clear to see face 6 consists of nodes 1673, 1676, 1677, 1680 and is located exactly where it should be.

The other loading method mentioned above occurs at a specific node, point loading. Loading at a point contrasts with loading a face. When a point is loaded a force vector consisting of three components for each of the x,y,z directions is applied to it. When a pressure is defined it is considered to act normal to the element face and is distributed across the surface area. If the orientation of the face or its area change the corresponding direction and magnitude of the resulting force will update as well. In the case of point loading the force will be constant in magnitude and direction as the object changes shape. Use the following commands to define a new set with the two nodes at the upper right corner of the beam where x=100, y=10 and z=0 or z=1. These nodes are a member of element 751 shown above.

seta loadnodes n 1676 1673
send loadnodes abq force 0 -5 0
Please wait for 'ready'
write file:loadnodes.frc
ready
ready

The first command adds the nodes to a new set. This is followed by a send command to output the force in the Abaqus format with the vector components (0,-5,0). The resulting loadnodes.frc file contents are shown in the following image. Each node of the set is listed with the direction of the applied force and followed by the magnitude.

Figure 6.3.19(2):Forces based on loadnodes

Now the mesh, boundary condition, and loading has been defined and exported to files and it will be necessary to write a Calculix solver (ccx) input file (.inp) which includes these exported files to define the problem.

Calculix FEA Beam Part 3: Writing an Input File for the CCX Solver[edit | edit source]

Input file[edit | edit source]

Here we start by writing an input file and solving for the results using the finite element method.
The input file describes the finite element problem as an ordered set of commands with parameters.
We Open SciTE and create a new file named beam.inp. This file is located with the files from the previous articles. Then we add the following code from the figure 6.3.1(3) below to this file.

Figure 6.3.1(3): Meshing the beam using 8 node 3D linear brick element

The first two lines of the input file declare a *HEADING where the user can write comments and notes on the following line.
The next command, *INCLUDE, inserts the contents of the file named beam.msh into the input file.
The next command, *INCLUDE, inserts the contents of the file named beam.msh into the input file.
On lines 6 thru 9 the material model is defined.

Solid Section Definition[edit | edit source]

This assigns the elastic material EL to the element set Ebeam.

Figure 6.3.2(3): Reference for consistent set of units

Loading Step[edit | edit source]

In this step the loading is applied using the *STATIC method with only one step used.
This indicates the force will be slowly applied in a quasi-static sense. This will neglect the mass inertia of the structure.
a distributed load is applied to the tip of the beam. *NODE PRINT and *EL PRINT commands are used to print the results to a .dat text file.

Output[edit | edit source]

With the beam.inp file ,we open in SciTE choose Tools->Solve or we use the keyboard shortcut Ctrl+F10 to process this file with ccx. This will solve the finite element model as defined and output the requested files.

The output of the ccx program appears in the SciTE output window. It provides detailed diagnostics information. At the bottom it finishes the job and exits with code 0. This successful indication means a solution was found and the results have been written to disk. The ccx output should look like the following Figure 6.3.3(3) and Figure 6.3.4(3). Progress can be monitored by watching the output as ccx attempts to find a convergent solution or steps through a number of loading conditions.

Figure 6.3.3(3): SciTE Output
Figure 6.3.4(3): SciTE Output

Von-Mises stress distribution[edit | edit source]

Using the cgx menu system click on Datasets -> 2 STRESS 1.000000 , we use the menu system again to click on Datasets -> Entity -> Mises. This displays the Von Mises stress distribution for the solution at step 1 in figure 6.3.5(3) below .

Figure 6.3.5(3): Von Mises stress distribution at step 1

Calculix FEA Beam Part 4: Post Processing Results in CGX[edit | edit source]

This article will explore some of that functionality by examining the results of the cantilever beam problem from the previous article.

Open the input file beam.inp in SciTE.
Choose Tools -> Post Process from the menu system.
This launches cgx with the beam.frd results file.

Figure 6.3.1(4): SciTE Output

Note-Menu option is only available when working with an .frb file containing some simulation results e.g. Stress, Displacement etc, as seen from above figure 6.3.1(4).

plotting for various entities[edit | edit source]

The stresses and the displacement are shown in contour or graph format as below in figure 6.3.2 (4) and figure 6.3.3 (4)
An option from within the -Entity- sub-menu results in a colored plot of the selected field information.

Figure 6.3.2(4): Plotting

Plot magnification[edit | edit source]

To scale up the displacement use the keyboard command scal d 10000. This will scale the deformed shape by a factor of 10000.
This is visible in Figure 6.3.3(4) below-

Figure 6.3.3(4): Magnified displacement - deformed shape

We toggle the displacement to visualize the deformed shape. The resulting displacement from this simulation is quite small. It is not noticeably visible.

Figure 6.3.4(3): Toggle displacement

The viewing mode can be returned to the default gray beam by choosing Viewing->Show All Elements With Light as shown in below figure 6.3.4(4)

Figure 6.3.5(4): Elements With Light

Animation[edit | edit source]

Another option to visualize the shape of the deformed structure is through animation as shown in below Figure 6.3.6(4)

Figure 6.3.6(4): Animated displacement

Options within the animation menu are as follows -

Figure 6.3.7(4): Options within the animation sub-menu

To specify a cut plane[edit | edit source]

The cut plane is defined by three nodes. The nodes can be specified from the menu system using the Cut menu.

Figure 6.3.8(4): Cut plane

Result of cutting the beam top to bottom is getting the top of the beam is in tension and the bottom in compression as seen from the below figure 6.3.9(4).

Figure 6.3.9(4): Result of introducing Cut plane

Total displacement at nodes[edit | edit source]

As shown in Figure 6.3.10(4), we plot the total displacement of nodes along the top of the beam at y=10 and z=0. They span along the x-axis starting at the fixed end and progressing towards the free end. The desired field for plotting must be the currently active field selected from Datasets.

Figure 6.3.10(4): Total displacement at various nodes

Finally, the following graph is promptly displayed for displacement values at various nodes.

Figure 6.3.11(4): Displacement values at various nodes

Nodal values of entities[edit | edit source]

The nodal values are printed in yellow using the command plus nv all y. The following Figure 6.3.12(4) shows top side of the beam’s free end, near x=100, y=0, z=0.

Figure 6.3.12(4): Nodal values of stresses

Reduced set of nodes[edit | edit source]

Viewing the entire beam is difficult when several thousand nodal values are print on the screen. Limiting the nodal values to an interesting set is likely the best use of this tool.

Figure 6.3.13(4): Reduced set of nodes

This completes the 4 steps of beam analysis using CGX and CCX of calculix software

Problem 6.4-1[edit | edit source]

Given[edit | edit source]

Referring to page 2 of [Mtg 35]for problem assignment. This slide refers to Fish and Belytschko Problem 6.1 on page 148. The vector field is given as follows -

Also the given domain is a square as shown in below Figure 6.4.1-1

Figure 6.4.1-1: Domain for illustration of Divergence Theorem

Find[edit | edit source]

To verify the Divergence theorem for the given vector field and the given domain as per Figure 6.4.1-1
We need to prove that :

Solution[edit | edit source]

We have, and secondly as the given vector field over the domain given by Figure 6.4.1-1
Now we can write -
Integrating over the given domain, we get LHS for as -

Thus :

Also we have for RHS of as -
=

Hence, RHS = = =

Thus :

From and , we can say that -


This proves that the given vector field as per in the stated domain of Figure 6.4.1 satisfies the Divergence Theorem

Problem 6.10[edit | edit source]

Given[edit | edit source]

2D space with boundary convection[edit | edit source]

Consider a heat conduction problem in 2-dimensional space with boundary convection as shown in the below Figure 6.10.1.

Figure 6.10.1 :Problem Domain and Boundary Conditions for heat transfer with boundary heat convection

Boundary Conditions[edit | edit source]

Above 2D space has temperature as space unknown to solve for.
We can state it as a boundary value problem with following boundary conditions specified at 3 different kind of boundaries as : , and

Essential BC on [edit | edit source]

Note : can also can be defined as a varying quantity along

Natural BC on [edit | edit source]

Refer to the Figure 6.10.3 below. We specify the heat flux on boundary as .

Figure 6.10.3 :Figure- 6.10.3- heat flux natural BC on boundary gamma-h

This is as we have : with as the unit normal vector on
Hence we can also write :
OR we then have :

Note- is positive as explained in the - Assumption- subsection below

We are to consider only the normal component of , i.e. , for heat transactions as that is the only component causing heat flow in or out of the element. The tangential component of , i.e. , is just circulating over the boundary.

Assumption[edit | edit source]

is unit vector pointing in the outward direction. This implies that is positive and temperature increases as we go out away from the surface towards inside of the body.
Also we note that is a vector quantity normal to the contours in 2D space.
As increases from inside to outside, heat flux goes into the volume from outside of the boundary
This implies that when is positive, heat comes into the system

Convection BC on [edit | edit source]

We have as the convection boundary where heat transfer occurs via heat convection
Hence we can say that the normal component of the heat flux equals the heat transfer due to heat convection at . Hence we write-

where , we have -
 : Temperature at the surface of
Say, Ambient temperature
:Coefficient of heat convection at
Thus :

Find[edit | edit source]

Strong form for 2D heat transfer[edit | edit source]

Weak form for 2D heat transfer with convection boundary present[edit | edit source]

Solution[edit | edit source]

Derivation of the strong form- 2D heat transfer[edit | edit source]

Deriving the Equilibrium Equation for 2D- heat transfer[edit | edit source]

We first derive the equilibrium equation using elemental plane surface as shown in Figure- 6.10.3 below. The elemental surface has length as 'dx' and height as 'dy'. The inflow and outflow of heat is shown symbolically with arrows at various sections.

Note-
Heat flux ' ' is a vector quantity in real 2D space defined per unit surface area and also
Heat generation per unit volume for the given elemental surface
We assume unit dimension along the direction perpendicular to the screen or paper

Figure- 6.10.3- 2D Heat Transfer Equilibrium Element

Now the equilibrium of heat can be written in following manner -

Now we use Taylor Series Expansion technique and can then write -


OR we can say with the higher order terms neglected :

Similarly we can write for y- direction -

And now can be modified as below -

Canceling out throughout as we have used it for elemental surface and it has to be true over the entire 2D space,

can be written with different notation in the form of Divergence of as -

Note that is valid for 2D as well as 3D heat transfer with as 2D or 3D vector respectively in real 2D or 3D space.
Here we are solving for temperature so we use 2D space with

Constitutive Equation for 2D- heat transfer[edit | edit source]

Here we use the Fourier Law for 2D space which is stated as  :
It can be written as -

Note- Usually, and for most of the materials as we do not see flow of heat perpendicular to the direction of the temperature gradient line.
Also , we have  : for isotropic materials and for anisotropic materials
We consider isotropic materials here hence we can assume : . Hence now becomes -


Hence we write then :

Governing Equation for 2D- heat transfer[edit | edit source]

Using and we can say that :

OR


Thus the strong form for 2D - Heat Transfer can be written as follows-

for

Deriving the Weak Form for 2D- heat transfer with boundary convection[edit | edit source]

Let us select the weighting function such that at boundary where the essential boundary condition is applied. This is actually obvious to say as the essential boundary condition is specified at , the value of will be constant there and will no longer require any weighting function multiplication to approximate it in the given domain. Also this will eliminate the unknown flux at the boundary

Integrating over volume (for general 3D - case) after multiplying with the weighting function w(x) , in the form of weighted residual, we get -


Note- For 2D- case : Put = which will give us the Area Integral
Now we use Green's Theorem to perform the integration by parts.
Our aim to get rid of the derivative on and a derivative should appear on
We state the general Green's Theorem for scalar fields , T - is as follows -


Here, serves as Laplacian or Divergence of the gradient.
Also , is the unit normal at boundary and is variable at each point on the boundary.
Thus ,we have a volume integral converted to a volume plus a surface integral
Hence, can now be modified as follows -



This is general equation for 3D as well as 2D case and can be converted to specific case depending upon whether the gradient is 2D or 3D
Now again we note that in the weak form the natural boundary conditions get pulled in automatically, for example- the surface integral in above equation will be split into integral over the 3 boundaries - , , and , as follows :

Note- In the above Equation, the first term on the RHS will vanish as the weighting function vanishes on as explained. Also here we flipped the signs for convection boundary condition on boundary on
Now, we put into and keep the terms required to get the stiffness matrix along with the terms involving temperature on LHS and all the terms with known values on the RHS.

is the weak form for the given 2D Heat Transfer domain with convection boundary specified as

This equation is of the following form -

such that

It is the continuous form of the weak equation and we need to convert it into a discrete form using the method of Desensitization in FEM .
Also note that -
1. In , temperature is a continuous function of field parameters (x,y).
2. This equation is good for 2D as well as 3D domains.
3. We can handle anisotropic materials by converting conductivity 'k' into matrix form as explained .

Descritization of the domain[edit | edit source]

System of equations in descritized form[edit | edit source]

Now the temperature distribution in 2D space can be written as follows with subscript 'e' denoting to an element i.e. temperature at a point (x,y) in the 2D space is a sum over that of the elemental nodes. Also here denotes shape function and denotes nodal temperature values.

This can be written in matrix form as follows where the nodal values matrix is shown by

Also applying the same for the weighting function, we can write :
This can be written in matrix form as follows -

We note that we have got gradient terms in the weak form as seen in . The can be written as :


Here denotes the matrix of derivatives of the shape functions as shown in below .

Similar equation can be written for the weighting function as follows -

Now the LHS of the weak form in can be written as for a single element -

Hence, LHS becomes for as :


Depending upon various boundary conditions the RHS of can be written as
Hence the discrete form Equation for first term of the stiffness matrix becomes -

where,

The second term of the stiffness can be written in discrete form as follows-

Now the mass matrix can be written in discretized form from the first term of the continuous weak form of as follows -

Now the first term on RHS can be discretized as -

Now the second term on RHS can be discretized as -

And the last term on RHS of the weak form can be discretized as -

Capacitance matrix

Conductivity matrix

Heat source matrix

Contour and 3 D plots[edit | edit source]

This is the trial solution with 9 node LIBF element
We then derive the trial solution using LIBF obtained is as follows-

The 3d and contour plots are as follows-

3D plot 1
3d plot 2
contour plot 1

Contributing Members[edit | edit source]

Team- Contribution Table
Problem Mtg Assigned To Solved By Typed By Proofread By
6.1 31-4 Shawn, Chris Shawn Chris Chris, Nakul
6.2 31-4 Nakul, William Nakul Nakul William, Shreyas
6.3 33-1 Anand Anand Anand Shreyas, Shawn
6.4 35-2 Anand,Shreyas,Chris All of 3 All of 3 Shawn, Li
6.5 35-4 Chris,Shawn Chris Shawn William, Li
6.6 35-4 Shreyas, Li Both Both Nakul, Anand
6.7 36-1 William,Nakul William William Anand, Li
6.8 36-5 William,Nakul Nakul Nakul Shreyas, Shawn
6.9 37-1 All except Anand All All Anand
6.10 37-2 Anand Anand Anand Shreyas, Shawn