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

Simple 1D viscous flow in Lagrangian co-ordinates

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2023, 10:12
Default Simple 1D viscous flow in Lagrangian co-ordinates
  #1
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
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?
Attached Files
File Type: pdf Lagrangian_FD.pdf (137.6 KB, 16 views)
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 11:27
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
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.
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 11:45
Default
  #3
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
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?
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 11:53
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
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?
You asked for the lagrangian formulation, that is the equations are written along the path-line.

Note that the viscous Burgers equation is independent from the density. There is an exact solution for it, see Hopf-Cole transformation.
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 12:07
Default
  #5
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
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?
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 12:32
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
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?
You asked how to approach the solution of the equation in lagrangian formulation.
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.
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 12:35
Default
  #7
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
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.
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 12:58
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
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.
My idea of any lagrangian method is that you write the total differential

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.
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 13:21
Default
  #9
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
My idea of any lagrangian method is that you write the total differential

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.
That seems independent of type of co-ordinates as well.
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 13:25
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
That seems independent of type of co-ordinates as well.
Coordinate dare defined by the path-line x=x(t)
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 13:29
Default
  #11
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
How does that tie in with my co-ordinate h?
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 13:36
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
How does that tie in with my co-ordinate h?
From your definition dh/dx= rho, clearly h is not a lenght. Why you want to use something like density*length as coordinate??

That means you define h(x(t)) by integrating rho up to x(t).
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 13:55
Default
  #13
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
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.
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 14:14
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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'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.





I don't know why you introduced something reminding me to the Stewartson-Dorodnitzjn transformation used in the compressible BL.
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 14:32
Default
  #15
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 175
Rep Power: 4
hunt_mat is on a distinguished road
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.
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 14:37
Default
  #16
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
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.
But why you need of that?? Once solved the Burgers equation, the density equation is independent since du/dx is known.

How do you apply your trasformation into the single Burgers equation if you don’t have tue density variable?
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 14:58
Default
  #17
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
But why you need of that?? Once solved the Burgers equation, the density equation is independent since du/dx is known.

How do you apply your trasformation into the single Burgers equation if you don’t have tue density variable?
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.
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 15:12
Default
  #18
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
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.

But how do you solve the Burgers equation with your trasformation involving a variable that is not present?
That makes no sense.
FMDenaro is offline   Reply With Quote

Old   July 19, 2023, 15:34
Default
  #19
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
But how do you solve the Burgers equation with your trasformation involving a variable that is not present?
That makes no sense.
You don't. This co-ordinate is only relevant when you have the conservation of mass equation along with another equation.
hunt_mat is offline   Reply With Quote

Old   July 19, 2023, 15:42
Default
  #20
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
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
You don't. This co-ordinate is only relevant when you have the conservation of mass equation along with another equation.



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.
FMDenaro is offline   Reply With Quote

Reply

Tags
lagrangian co-ordinates


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
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


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