Method of manufactured solutions The first stage in code verification is to test for problems for which we have analytical solutions. However, often we.

Slides:



Advertisements
Similar presentations
MANE 4240 & CIVL 4240 Introduction to Finite Elements
Advertisements

Chapter 8 Elliptic Equation.
FTP Biostatistics II Model parameter estimations: Confronting models with measurements.
Boyce/DiPrima 10th ed, Ch 10.1: Two-Point Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 10th edition, by William.
Finite Element Method (FEM) Different from the finite difference method (FDM) described earlier, the FEM introduces approximated solutions of the variables.
Chapter 3 Steady-State Conduction Multiple Dimensions
A second order ordinary differential equation has the general form
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Computational Biology, Part 17 Biochemical Kinetics I Robert F. Murphy Copyright  1996, All rights reserved.
MANE 4240 & CIVL 4240 Introduction to Finite Elements Introduction to differential equations Prof. Suvranu De.
CHE/ME 109 Heat Transfer in Electronics LECTURE 12 – MULTI- DIMENSIONAL NUMERICAL MODELS.
Lesson 3 Basic Concepts. Fundamentals Any continuous quantity (temperature, displacement, etc.) can be approximated by a discrete model composed of a.
CHE/ME 109 Heat Transfer in Electronics LECTURE 11 – ONE DIMENSIONAL NUMERICAL MODELS.
MTH-471 Integral Equations Sheikh Irfan Ullah Khan Assistant Professor Department of Mathematics COMSTAS Institute of Information Technology.
SOLVING SYSTEMS USING SUBSTITUTION
Boyce/DiPrima 9 th ed, Ch 3.1: 2 nd Order Linear Homogeneous Equations-Constant Coefficients Elementary Differential Equations and Boundary Value Problems,
Non-Linear Simultaneous Equations
Boyce/DiPrima 10th ed, Ch 10.5: Separation of Variables; Heat Conduction in a Rod Elementary Differential Equations and Boundary Value Problems, 10th.
The Finite Element Method
CHAPTER 7 NON-LINEAR CONDUCTION PROBLEMS
Systems of Linear Equations Iterative Methods
ORDINARY DIFFERENTIAL EQUATION (ODE) LAPLACE TRANSFORM.
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
Linear Algebra/Eigenvalues and eigenvectors. One mathematical tool, which has applications not only for Linear Algebra but for differential equations,
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013.
4.4 Solving Exponential and Logarithmic Equations.
Extrapolation Models for Convergence Acceleration and Function ’ s Extension David Levin Tel-Aviv University MAIA Erice 2013.
Lecture 16 Solving the Laplace equation in 2-D Remember Phils Problems and your notes = everything Only 6 lectures.
Ordinary Differential Equations
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Computational Biology, Part 15 Biochemical Kinetics I Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Derivatives In modern structural analysis we calculate response using fairly complex equations. We often need to solve many thousands of simultaneous equations.
The complex exponential function REVIEW. Hyperbolic functions.
Boyce/DiPrima 9 th ed, Ch 10.8: Laplace’s Equation Elementary Differential Equations and Boundary Value Problems, 9 th edition, by William E. Boyce and.
Copyright © Cengage Learning. All rights reserved. Analytic Trigonometry.
6.6 Solving Radical Equations. Principle of power: If a = b then a n = b n for any n Question: Is it also true that if a n = b n then a = b? Explain in.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
HEAT TRANSFER FINITE ELEMENT FORMULATION
Radical Equations and Problem Solving 4.7 Power Rule When solving radical equations, we use a new principle called the power rule. –The Power Rule states.
Ch 10.6: Other Heat Conduction Problems
Fundamental Concepts of Algebra
Trigonometric Equations OBJECTIVES: Use standard algebraic techniques to solve trigonometric equations Solve trigonometric equations of quadratic type.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 3 Polynomial and Rational Functions.
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
Section 5.5 Solving Exponential and Logarithmic Equations Copyright ©2013, 2009, 2006, 2001 Pearson Education, Inc.
Stability Analysis . A system is BIBO stable if all poles or roots of
Boyce/DiPrima 9 th ed, Ch 11.3: Non- Homogeneous Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Differential Equations
Topic 6.5. Solve Systems by Substitution Objectives: Solve Systems of Equations using Substitution Standards: Functions, Algebra, Patterns. Connections.
STROUD Worked examples and exercises are in the text Programme 10: Sequences PROGRAMME 10 SEQUENCES.
General Analysis Procedure and Calculator Policy Calculator Policy.
Evan Selin & Terrance Hess.  Find temperature at points throughout a square plate subject to several types of boundary conditions  Boundary Conditions:
Solving Multi-Step Equations INTEGRATED MATHEMATICS.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Boyce/DiPrima 10th ed, Ch 10.8: Laplace’s Equation Elementary Differential Equations and Boundary Value Problems, 10th edition, by William E. Boyce and.
MANE 4240 & CIVL 4240 Introduction to Finite Elements
Ch 11.1: The Occurrence of Two-Point Boundary Value Problems
A second order ordinary differential equation has the general form
Chapter 2. Mathematical Expression of Conduction
THE METHOD OF LINES ANALYSIS OF ASYMMETRIC OPTICAL WAVEGUIDES Ary Syahriar.
Trigonometric Identities
Solving Equations by Factoring and Problem Solving
Finite Volume Method for Unsteady Flows
Copyright © Cengage Learning. All rights reserved.
SECTION 10-4 : RADICAL EQUATIONS
Solving Equations with Variables on Both Sides
Solving Equations with Variables on Both Sides
SKTN 2393 Numerical Methods for Nuclear Engineers
Lesson 9: Basic Monte Carlo integration
Presentation transcript:

Method of manufactured solutions The first stage in code verification is to test for problems for which we have analytical solutions. However, often we have codes that are intended for more complex problems than we can solve analytically. Codes typically solve differential equations for applied loadings in the form of right hand sides and boundary conditions. If we cannot solve the differential equation for some representative loading and boundary condition, we can specify a solution, calculate the corresponding loading and boundary conditions, and use them as input to the code.

Beam example The general equations of a beam loaded by a transverse load q(x) We want to verify a code that solves this problem for any distribution of EI. We can start by comparing the solution for constant EI, since for this case it is easy to obtain an analytical solution. For example, for constant EI and constant q, integrating to obtain a quartic polynomial is very easy, and solution can be found in Mechanics of Materials textbooks.

Manufactured solution for beam We next want to test code for varying EI, for example EI=cos(x/L) with clamped boundary conditions Instead of specifying load and trying to find an analytical solution, we will specify the solution w=x 2 and calculate the load We will now apply this load and check whether our code will produce w=x 2

General procedure (V&CSC 6.3.1) 1.Establish the mathematical model in the form L(u)=0, where L() is the differential operator and u is the dependent variable. 2.Choose the analytic form of the manufactured solution u m. 3.Operate the mathematical model L onto the manufactured solution u m and obtain the analytic source term s=L(u m ). 4.Obtain the modified mathematical model by including the analytic source term L(u)=s 5.(Mine) check whether the code produces the manufactured solution under the action of s.

Top Hat question You wrote a code to solve the algebraic equation cosx+7tan(ln(x))=a For a series of values of a. What value of a will you test the code on in the spirit of manufactured solutions? Assume that the equation gives numerical problems to your favorite root solver, and this is why you wrote your own code to solve it.

Remarks Manufactured solutions do not need to be physically realistic, but care must be taken that they do not crash the code (e.g. square root of negative temperature). When multiple terms appear in the equations, manufactured solutions should not make one term dominant because this will not verify the other terms. Trigonometric and exponential functions are good for manufactured solutions because they are infinitely differentiable. Having a manufactured solution that varies slowly will allow convergence with coarse meshes, hence inexpensive.

Example of MMS with order verification Steady state heat conduction A discrete solution described in was proven to have second order convergence, which needed to be verified for the code implementing it. Manufactured solution that was used What is needed to generate the manufactured solution besides the source term?

Grids Five grids were used 9x9, 17x17, 33x33, 65x65, and 129x129 nodes. Grids are non-uniform to cater to how fast solution is changing.

Grid convergence Observed order of accuracy