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

nonconservative equations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2023, 09:23
Default nonconservative equations
  #1
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
Suppose I have an equation of the form:

u_t+f(x,u)u_x=0

that cannot be written in conservative form. Can I modify the methods for conservative equations, to write something like:

u_(i+1,j)=(u_(i,j-1)+u_(i,j+1))+f(x_j,u_(i,j))*(dt/dx)*(u_(i,j+1)-u_(i,j))

as an extension of the Lax-Friedrichs method?
hunt_mat is offline   Reply With Quote

Old   July 12, 2023, 14:37
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by hunt_mat View Post
Suppose I have an equation of the form:

u_t+f(x,u)u_x=0

that cannot be written in conservative form. Can I modify the methods for conservative equations, to write something like:

u_(i+1,j)=(u_(i,j-1)+u_(i,j+1))+f(x_j,u_(i,j))*(dt/dx)*(u_(i,j+1)-u_(i,j))

as an extension of the Lax-Friedrichs method?

Just consider the case of the linear scalar equation. However, your formula is wrong, you have to do a central secondo order derivative in space and you missed the factor 0.5 in the lineare average
FMDenaro is offline   Reply With Quote

Old   July 12, 2023, 15:25
Default
  #3
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Just consider the case of the linear scalar equation. However, your formula is wrong, you have to do a central secondo order derivative in space and you missed the factor 0.5 in the lineare average
I agree. Should the method work after that?
hunt_mat is offline   Reply With Quote

Old   July 12, 2023, 15:41
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by hunt_mat View Post
I agree. Should the method work after that?
I strongly discourage using the non conservative form for non linear equations.
Have a look here:

https://www.researchgate.net/publica...rgers_equation
FMDenaro 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
Solving coupled scalar transport equations in openFoam pavaninguva OpenFOAM Running, Solving & CFD 1 December 28, 2019 08:28
LES Filtering: how are the small and large scales equations solved? atmcfd Main CFD Forum 38 March 14, 2016 14:52
Riemann invariants of adjoint equations of shallow water equations zqb0929 Main CFD Forum 0 March 15, 2012 00:54
CFD governing equations m.gos Main CFD Forum 0 April 30, 2011 14:21
? fluctuating equations for homogenous shear turb. ff_fan Main CFD Forum 1 September 20, 2002 07:39


All times are GMT -4. The time now is 18:22.