|
[Sponsors] |
Simple 1D viscous flow in Lagrangian co-ordinates |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 19, 2023, 10:12 |
Simple 1D viscous flow in Lagrangian co-ordinates
|
#1 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
I am trying to solve a simple set of equations numerically but using Lagrangian co-ordinates. In Eulerian co-ordinates they are:
rho_t+(u*rho)_x=0 u_t+u*u_x=D*u_xx In the included notes I have included the derivation for everything. I have two questions: 1) Does h change all the time? Or can I keep it at the original configuration? 2) How would I compute the length of my new domain? |
|
July 19, 2023, 11:27 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
You have to write your system along the characteristics, this way
Drho/Dt=-rho*du/dx Du/Dt=D*d^2u/dx^2 and integrate along the curve dx/dt=u(x(t),t) D/Dt being the lagrangian derivative. |
|
July 19, 2023, 11:45 |
|
#3 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
So you can only solve equations in Lagrangian co-ordinates using the method of characteristics and not the way that I suggested in my note?
|
|
July 19, 2023, 11:53 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
Quote:
Note that the viscous Burgers equation is independent from the density. There is an exact solution for it, see Hopf-Cole transformation. |
||
July 19, 2023, 12:07 |
|
#5 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
This isn't helping me much in understanding the numerics of Lagrangian co-ordinates. I'm not interested in what clever methods you use to reduce the complexities of the governing equations, these equations are not the be-all and end-all of the equations I wish to study. I'm using these as a starting point to study more complicated equations in lagrangian co-ordinates.
I always thought there was some massive secret in how one did the numerics in Lagrangian co-ordinates, your answers aren't helping. Let me be clear: 1) Is the method I proposed in the note correct? Can you solve the equations this way? 2) How do you compute the length using Lagrangian co-ordinates? |
|
July 19, 2023, 12:32 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
Quote:
You can invent any new mathematical formulation you want (or just discover an old mathematical formulation), this is not my task, and is not what I addressed in terms of lagrangian formulation. In lagrangian formulation you solve along the path-line the equation. The key is to transform the x-derivative in the RHS along the lagrangian system. Start from solving the independent Burgers equation on the lagrangian coordinates to understand the task. Just as hint, you can see how the method works numerically in the Zucrow texbook, the section dedicated to 1d unsteady Euler equations for isothermal flows where you find a similar issue of integrating the RHS along the characteristics. |
||
July 19, 2023, 12:35 |
|
#7 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
So method of characteristics then.
Thank you. It's not so useful for me then. I think I'll go back to the more complicated approach, as it can be generalised. |
|
July 19, 2023, 12:58 |
|
#8 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
Quote:
du =dt*( du/dt + dx/dt du/dx) on the path-line dx/dt=u. Then integrate the equation along the local lagrangian system. That is independent from the concept of characteristic lines that can be also different curves. |
||
July 19, 2023, 13:21 |
|
#9 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
Quote:
|
||
July 19, 2023, 13:25 |
|
#10 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
||
July 19, 2023, 13:29 |
|
#11 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
How does that tie in with my co-ordinate h?
|
|
July 19, 2023, 13:36 |
|
#12 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
||
July 19, 2023, 13:55 |
|
#13 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
I'm aware it isn't a length. I explained what h was, and how it could be used as a co-ordinate. It's quite common apparently.
|
|
July 19, 2023, 14:14 |
|
#14 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
||
July 19, 2023, 14:32 |
|
#15 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
It's the amount of mass in the interval considered. It's a common Lagrangian co-ordinate system used in 1D. It's mentioned in LeVeque's book.
|
|
July 19, 2023, 14:37 |
|
#16 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
Quote:
How do you apply your trasformation into the single Burgers equation if you don’t have tue density variable? |
||
July 19, 2023, 14:58 |
|
#17 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
These equations are a warm-up to more complicated equations which have the same formulation. I explained this explicitly before, that's why I am uninterested in techniques for specific equations. I want to solve some simple equations first, before I go on to the more complicated equations later on.
|
|
July 19, 2023, 15:12 |
|
#18 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
Quote:
But how do you solve the Burgers equation with your trasformation involving a variable that is not present? That makes no sense. |
||
July 19, 2023, 15:34 |
|
#19 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4 |
||
July 19, 2023, 15:42 |
|
#20 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71 |
Quote:
You realize now that you have to write the system with the full momentum equation by adding -(1/rho) dp/dx. Then you can use the iso-entropic relation (if you problem allows such hypothesis) and close the system of two equations. |
||
Tags |
lagrangian co-ordinates |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lagrangian particle tracking in periodic flow | jabeken | STAR-CCM+ | 2 | April 11, 2021 10:07 |
Problem with FsiFOAM simulation of beams (2-4 beams) in a steady simple shear flow | Aliiiii | OpenFOAM Running, Solving & CFD | 1 | February 27, 2019 12:26 |
Search for a simple compressible viscous code | nimav | Main CFD Forum | 0 | June 13, 2013 02:59 |
Compressible viscous flow newbie: when NOT to assume incompressible, non-gas EOS? | Srh | Main CFD Forum | 0 | April 19, 2013 02:12 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 15:45 |