- #1
Bonhomme
- 3
- 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!
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!