CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Exact solution for 2D inviscid burgers equation.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cfdnewbie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2012, 00:39
Default Exact solution for 2D inviscid burgers equation.
  #1
New Member
 
Join Date: May 2012
Posts: 5
Rep Power: 14
xiaowanzi01 is on a distinguished road
I write a code for numerical method for 2D inviscid burgers equation:

u_t + (1/2u^2)_x + (1/2u^2)_y = 0,
initial function: u(0, x) = sin(pi*x)

but I don't know how to solve the exact solution for it. And I need it to complete the test for my code.

Anybody who can tell me how to obtain the exact solution for it?
Thanks very much!
xiaowanzi01 is offline   Reply With Quote

Old   May 17, 2012, 01:19
Default
  #2
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18
cdegroot is on a distinguished road
Have you looked into the method of characteristics?
cdegroot is offline   Reply With Quote

Old   May 17, 2012, 01:25
Default
  #3
New Member
 
Join Date: May 2012
Posts: 5
Rep Power: 14
xiaowanzi01 is on a distinguished road
Quote:
Originally Posted by cdegroot View Post
Have you looked into the method of characteristics?
Thanks for your reply.

But I don't know the characteristics curve method exactly.Could you tell me some details?
xiaowanzi01 is offline   Reply With Quote

Old   May 17, 2012, 01:32
Default
  #4
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18
cdegroot is on a distinguished road
I don't know off hand the solution to the problem, I was just making the suggestion to look into method of characteristics since it is used for hyperbolic PDE. See if you can find a copy of "An Introduction to Nonlinear Partial Differential Equations" by Logan. If I remember correctly it covers the Burger's equation.
cdegroot is offline   Reply With Quote

Old   May 17, 2012, 01:47
Default
  #5
New Member
 
Join Date: May 2012
Posts: 5
Rep Power: 14
xiaowanzi01 is on a distinguished road
Quote:
Originally Posted by cdegroot View Post
I don't know off hand the solution to the problem, I was just making the suggestion to look into method of characteristics since it is used for hyperbolic PDE. See if you can find a copy of "An Introduction to Nonlinear Partial Differential Equations" by Logan. If I remember correctly it covers the Burger's equation.
Ok! Thanks!

PS: I see someone says that for 1D case:

Ut + (0.5u^2)x = 0, and the initial function is u(0, x) = sin(pi*x);

and the exact solution will be:

u = sin(pi*(x - ut))

Am I right?
xiaowanzi01 is offline   Reply With Quote

Old   May 17, 2012, 01:57
Default
  #6
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18
cdegroot is on a distinguished road
Yes that looks correct.
cdegroot is offline   Reply With Quote

Old   May 17, 2012, 02:02
Default
  #7
New Member
 
Join Date: May 2012
Posts: 5
Rep Power: 14
xiaowanzi01 is on a distinguished road
Quote:
Originally Posted by cdegroot View Post
Yes that looks correct.
So, if the case is 2D:

The exact solution will be u = sin(pi*((x -ut ) + (y - ut ))?
how can I solve this equation and obtain the u, Just use the iteration method?

Thanks!
xiaowanzi01 is offline   Reply With Quote

Old   May 17, 2012, 03:34
Default
  #8
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
I
Quote:
Originally Posted by xiaowanzi01 View Post
Ok! Thanks!

PS: I see someone says that for 1D case:

Ut + (0.5u^2)x = 0, and the initial function is u(0, x) = sin(pi*x);

and the exact solution will be:

u = sin(pi*(x - ut))

Am I right?
I am confused about the solution you have given. Is it defined implicitely???? U as a function of u?? I have never seen that approach for Burgers... It is usually done by Cole Hopf transformation....

I am speculating here, but to me it looks like you took the solution to a linear scalar transport with speed a and just replaced a by u in the solution? Could that be?
cfdnewbie is offline   Reply With Quote

Old   May 17, 2012, 04:41
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The Burgers equation

du/dt + u*du/dx =0

implies that the velocity is constant along particolar curves, called "characteristic lines".
To see that, write the total differential of u(x,t):

du= dt* du/dt + dx *du/dx = dt* (du/dt + dx/dt *du/dx)

Therefore you see that u=constant along the line in the x,t plane that satisfies dx/dx=u. Being u constant, you have straight lines of different slopes.

In the 2D case, you have some new issue, for example you have two equations for u and v or in some other cases the 2D Burgers equations is factorized
FMDenaro is offline   Reply With Quote

Old   May 17, 2012, 12:26
Default
  #10
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18
cdegroot is on a distinguished road
In the 1D case you have: u_t + uu_x = 0
This implies: du/dt = u_t + dx/dt*u_x = 0
Then choose: dx/dt = u so that the two equations above are equivalent.

This leaves you with the following ODE IVP:
dx/dt = u
du/dt = 0
x(0) = xi
u(xi,0)=sin(pi*xi)

Solving and applying IC:
x = u*t + k(xi) = u*t + xi
u = l(xi) = sin(pi*xi)

So your solution in implicit form is:
x = u*t + xi
u = sin(pi*xi)

Perhaps it doesn't make sense to combine them together since u would be then defined as a function of u.

I started running through the 2D calculation and realized your initial condition is not a function of y. Thus it is not a well-posed problem. Do you mean u(0, x, y) = sin(pi*x), i.e. u does not change with y? If so, you end up with an equation for your second characteristic as: y = u*t + eta, but your initial condition is not a function of eta, so your solution actually doesn't change from the 1D case as far as I can tell. Actually this makes sense since u_y would start out as zero and will never change from this value. You will just have advection in the x-direction.
cdegroot is offline   Reply With Quote

Old   May 17, 2012, 12:42
Default
  #11
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18
cdegroot is on a distinguished road
Actually since u = sin(pi*xi) you can simplify a but further to:

x = sin(pi*xi)*t + xi
u = sin(pi*xi)

However, plotting the characteristics given by the first equation, they are definitely going to cross each other leading to shocks. Does everyone agree with this statement?
cdegroot is offline   Reply With Quote

Old   May 17, 2012, 13:34
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
However, I don't understand your 2D case... it should imply a set of two equations:

Ut + UUx +VUy=0
Vt + UVx +VVy=0

each one says U and V are constant along the curves dx/dt=U and dy/dt=V, thus what do you mean for 2D Burgers equation?
FMDenaro is offline   Reply With Quote

Old   May 17, 2012, 13:56
Default
  #13
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18
cdegroot is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
However, I don't understand your 2D case... it should imply a set of two equations:

Ut + UUx +VUy=0
Vt + UVx +VVy=0

each one says U and V are constant along the curves dx/dt=U and dy/dt=V, thus what do you mean for 2D Burgers equation?
I think he means:

u_t + uu_x + uu_y = 0

True?
cdegroot is offline   Reply With Quote

Old   May 17, 2012, 14:20
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by cdegroot View Post
I think he means:

u_t + uu_x + uu_y = 0

True?

such equation makes no sense for me ...
FMDenaro is offline   Reply With Quote

Old   May 17, 2012, 14:28
Default
  #15
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18
cdegroot is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
such equation makes no sense for me ...
Okay maybe you are right, but you must agree that is what the person who posted stated at the beginning of this thread. I think you are right that physically it does not make sense as an advection equation. For scalar advection you could have:

c_t + uc_x + vc_y = 0

where [u v] is a known velocity field advecting c. Or if it is a momentum-type equation (as I think it is intended to be) it would have to be

u_t + uu_x + vu_y = 0
v_t + uv_x + vv_y = 0

as you said before. I think the poster needs to clarify what exactly is being solved.
cdegroot is offline   Reply With Quote

Old   May 17, 2012, 14:55
Default
  #16
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Quote:
Originally Posted by cdegroot View Post
Okay maybe you are right, but you must agree that is what the person who posted stated at the beginning of this thread. I think you are right that physically it does not make sense as an advection equation. For scalar advection you could have:

c_t + uc_x + vc_y = 0

where [u v] is a known velocity field advecting c. Or if it is a momentum-type equation (as I think it is intended to be) it would have to be

u_t + uu_x + vu_y = 0
v_t + uv_x + vv_y = 0

as you said before. I think the poster needs to clarify what exactly is being solved.

That's true. however, if the initial conditions are just u=sin(f(x)), as stated (and assuming periodic bcs), then the solution will just be the developing shock solution found from the Cole Hopf transform...

Another idea if a solution to the 2d burgers is too hard to find: Use the method of manufactured solution to validate the code!
cdegroot likes this.
cfdnewbie is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFL Condition Matt Umbel Main CFD Forum 19 June 30, 2020 09:20
Question about boundary condition of 2D Burgers equation effort8 Main CFD Forum 0 January 29, 2012 21:55
inviscid burgur's equation morteza08 Main CFD Forum 2 August 13, 2010 09:45
exact solution of acoustic equations pran Main CFD Forum 0 February 14, 2002 03:46
Exact 2D NS solution for benchmarking? Tony Main CFD Forum 4 July 31, 2001 15:50


All times are GMT -4. The time now is 10:29.