Calculating vertical velocity from discrete horizontal velocities

AI Thread Summary
The discussion focuses on calculating vertical velocities (w) from horizontal fluid velocity arrays (u and v) while considering different bin sizes for horizontal and vertical dimensions. The continuity equation dw/dz = -∇.v is mentioned as a theoretical basis, but practical implementation in programming is emphasized. A method using a 3x3 kernel to calculate spatial derivatives (dx and dy) is proposed, avoiding midpoint conversions. The importance of incorporating the differences in horizontal and vertical scales is highlighted, with a suggested adjustment factor to account for the varying areas. The conversation concludes with confirmation that this approach is viable for the intended processing algorithm.
Bonhomme
Messages
3
Reaction score
0
Hello,

I'm working with a 2 x 3D arrays of fluid velocity values (east-west -> u and north-south -> v) and would like to properly calculate vertical velocities (w) from them (n.b. this is not homework). This ultimately needs to go into a processing algorithm, so while symbolic math is instructive, it needs to be implementable in programming code (other than Mathematica/Matlab). I know that the continuity equation dw/dz = -∇.v can be integrated to give w, but I'm not sure how to work this properly given arrays of point values. Another wrinkle is that my horizontal bin size is not the same as my vertical bin size (e.g. x and y sides are 1 km, z is 15 m)

e.g.
u@z = 10m
1 2 3 4
1 2 3 4
1 2 3 4

u@z = 25m
2 3 4 5
2 3 4 5
2 3 4 5

v@z = 10m
1 1 1 1
2 2 2 2
3 3 3 3

v@z=25m
2 2 2 2
3 3 3 3
4 4 4 4

One option is to take the difference between point locations, but that converts the data locations into midpoints. I'd prefer to avoid back-interpolating if that's possible, though I don't mind losing the edge values.

Anyways, any advice on how to extract vertical velocity values from 3D point arrays would be appreciated. Thanks!
 
Engineering news on Phys.org
Calculating vertical velocity - dx and dy from kernel

Rather than taking midpoints, it looks like I can calculate dx and dy at the midpoint if I use a 3x3 kernel. e.g.

a b c
d e f
g h i

[du/dx] = ((c + 2f + i) - (a + 2d + g) / 8
[dv/dy] = ((g + 2h + i) - (a + 2b + c)) / 8

I guess the key now is to account for the difference in horizontal and vertical scales...
 
I guess the key now is to account for the difference in horizontal and vertical scales...
With appropriate prefactors. Your sides in the horizontal directions have an area of 15m*1km, while your sides in the vertical direction have an area of 1km*1km. Therefore, the vertical velocity is smaller by a factor of 1km/(15m)=200/3, compared to a grid with uniform density in all directions.
 
Perfect. I was wondering if it could be handled that way, and I'm glad that you're confirming it. Thanks -
 
How did you find PF?: Via Google search Hi, I have a vessel I 3D printed to investigate single bubble rise. The vessel has a 4 mm gap separated by acrylic panels. This is essentially my viewing chamber where I can record the bubble motion. The vessel is open to atmosphere. The bubble generation mechanism is composed of a syringe pump and glass capillary tube (Internal Diameter of 0.45 mm). I connect a 1/4” air line hose from the syringe to the capillary The bubble is formed at the tip...
Thread 'Physics of Stretch: What pressure does a band apply on a cylinder?'
Scenario 1 (figure 1) A continuous loop of elastic material is stretched around two metal bars. The top bar is attached to a load cell that reads force. The lower bar can be moved downwards to stretch the elastic material. The lower bar is moved downwards until the two bars are 1190mm apart, stretching the elastic material. The bars are 5mm thick, so the total internal loop length is 1200mm (1190mm + 5mm + 5mm). At this level of stretch, the load cell reads 45N tensile force. Key numbers...
I'd like to create a thread with links to 3-D Printer resources, including printers and software package suggestions. My motivations are selfish, as I have a 3-D printed project that I'm working on, and I'd like to buy a simple printer and use low cost software to make the first prototype. There are some previous threads about 3-D printing like this: https://www.physicsforums.com/threads/are-3d-printers-easy-to-use-yet.917489/ but none that address the overall topic (unless I've missed...
Back
Top