- #1
- 1,798
- 33
- TL;DR Summary
- Sense check for a discretisation scheme for 2D Lagrangian scheme
I am writing a 2D hydrocode in Lagrangian co-ordinates. I have never done this before, so I am completely clueless as to what I'm doing. I have a route as to what I want to do, but I don't know if this makes sense or not. I've gone from Eulerian to Lagrangian co-ordinates using the Piola identities and then using the finite volume method to get a discrete model. One of the equations that I've been looking at is:
[tex]
\frac{\partial D}{\partial X}-\frac{\partial C}{\partial Y}=0
[/tex]
Choosing a rectangle with vertices [itex](X,Y),(X+\delta X,Y),(X+\delta X,Y+\delta Y),(X+Y+\delta Y)[/itex] to integrate over, and using Green's theorem in the plane, one is able to obtain:
[tex]
\int_{X}^{X+\delta X}C(s,Y+\delta Y)+C(s,Y)ds+\int_{Y}^{Y+\delta Y}D(X,s)+D(X+\delta X,s)ds=0
[/tex]
If I then want to discretise this, I would use the approximation [itex]f(x)+f(x+\delta x/2)\approx f(x+\delta x/2)[/itex], and using the midpoint rule for integrals one then obtains:
[tex]
C(X+\delta X/2,Y+\delta Y/2)\delta X+D(X+\delta X/2,Y+\delta Y/2)\delta Y\approx 0
[/tex]
Does this sound reasonable to you?
[tex]
\frac{\partial D}{\partial X}-\frac{\partial C}{\partial Y}=0
[/tex]
Choosing a rectangle with vertices [itex](X,Y),(X+\delta X,Y),(X+\delta X,Y+\delta Y),(X+Y+\delta Y)[/itex] to integrate over, and using Green's theorem in the plane, one is able to obtain:
[tex]
\int_{X}^{X+\delta X}C(s,Y+\delta Y)+C(s,Y)ds+\int_{Y}^{Y+\delta Y}D(X,s)+D(X+\delta X,s)ds=0
[/tex]
If I then want to discretise this, I would use the approximation [itex]f(x)+f(x+\delta x/2)\approx f(x+\delta x/2)[/itex], and using the midpoint rule for integrals one then obtains:
[tex]
C(X+\delta X/2,Y+\delta Y/2)\delta X+D(X+\delta X/2,Y+\delta Y/2)\delta Y\approx 0
[/tex]
Does this sound reasonable to you?