Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C PROGRAMMING QUESTION : Hi im having trouble with this question on burgers 1D inviscid equation. I have to solve it numerically using C so
C PROGRAMMING QUESTION: Hi im having trouble with this question on burgers 1D inviscid equation. I have to solve it numerically using C so that i can see how the solution behaves over time. Im new to C and any help would be greatly appreciated. Im used to the euler and Runge kutta methods for ordinary differential equations, but that approach wont work for partial differential equations that i know of
Q1 Burgers' equation or Bateman-Burgers equation is a fundamental partial differential equation occurring in various areas of applied mathematics, such as fluid mechanics. In its simplest form the 1D inviscid burgers equation can be written in the form: +u = 0 dx dt There are 3 terms in the 1D inviscid Burgers' equation: U, x and t. In a system consisting of a moving viscous fluid with one spatial (x) and one temporal (t) dimension, e.g., a thin ideal pipe with fluid running through it, Burgers' equation describes the speed of the fluid at each location along the pipe as time progresses. The terms of the equation represent the following quantities: . (x): spatial coordinate (t): temporal coordinate u(x,t): speed of fluid at the indicated spatial and temporal coordinates. Q1 (a) For the 1D inviscid burgers equation write a C program to solve and find a numerical solution to the equation. (HINT you can use any numerical method you want, (lax Fredrich etc...) Q1 (b) After the equation is solved Implement file 10 in your solution to write your solutions to a text file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started