50 likes | 168 Views
CE 8022 12 A Mathematical Approach for Discretization. In the previous set of notes we saw how we could numerically solve. With boundary conditions. N. Using a control Volume Method. n. w. e. W. E. P. s. S.
E N D
CE 8022 12 A Mathematical Approach for Discretization In the previous set of notes we saw how we could numerically solve With boundary conditions N Using a control Volume Method n w e W E P s S That physically balances the net heat flow by diffusion into a control volume This physical approach that only requires an integral form of the governing equ Is the one preferred in this class ---BUT we can also take a more mathematical apporach and develop a discrtization directly from our point from eq
A Finite Difference Solution (1) In this case our discretization is with a structured grid (mesh) of square elements With node points at each vertex N E P W S Taylor Series Expansions about P in x-direction Forward Backward Add So On sub in (1) and neglecting terms at and smaller than D2
row1 row2 a. Grid row3 row4 col1 col2 col3 col4 i b. Mesh c. Cloud i Essential Ingredients of a Numerical method We have seen two ways of moving from a continuous PDE to a set of algebraic equations in approximate values of the unknown filed at discrete node points What have been the key ingredients • The discretization--Placing the node points in the domain Examples A structured grid--the location of a node is uniquely specified by a row and a column index—hence it has a build in data struture An Un-structured grid—A mesh of Elements with nodes placed at Strategic points e.g., element vertices (requires a data structure to Locate nodes, identify neigbours nodes And elements) Clouds– simply populate domain with nodes with no formal background mesh. Simple data structure—list of nodes and location. Neighboring nodes defined by All nodes that fall within a given radius Of give node 2. Data Structure– a means to navigate and construct geometric entities associated with a node and it neighbors 3. Combine the discretization and the data structure with the math/physics of the Problem at hand to arrive at an algebraic relationship for the unknown at a node point i in terms of the unknown values at neighboring points (nb) coefficients Accounts for source terms Transients and boundary conditions
An EXAMPLE discretization and Data structure for our test problem Node Centered Control volumes 121 Here I will introduce a data structure That is awkward for the current case which has a clear structured grid BUT Can be generalized for the case of Unstructured grids 72 60 62 61 50 12 11 2 1 Data Struture a. Number nodes consecutively from 1—n (121) 72 For each node i identify its region of support The nodes that are “connected” to the node of interest 62 61 60 50 The number of nodes in the support is denoted The support nodes are listed in COUNTER CLOCKWISE ORDER And stored in At internal node always Include one more To close loop In example shown Indicates boundary 12 2 1 Note counter clockwise order Arranged to stay inside domain
We also need to account for the boundaries First we number the boundary segments according to –In current problem we use four Each segment has nodes Stored in The vector 2 111 1 72 3 60 62 61 50 23 12 11 2 1 4