Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to return radial (inflow/outflow) from CalculateRadialWindProfile #81

Open
zarzycki opened this issue Jul 31, 2024 · 0 comments

Comments

@zarzycki
Copy link
Contributor

When using --radial_wind_profile...

In CalculateRadialWindProfile, the azimuthal wind is calculated:

                // Calculate radial velocity
                //double dUr = dUx * dRx + dUy * dRy + dUz * dRz;

                // Calculate azimuthal velocity
                double dUa = dUx * dAx + dUy * dAy + dUz * dAz;

We should also allow the user to request radial velocity (inflow/outflow to the node).

I am not sure the cleanest way to do this. Perhaps something like

radial_wind_profile(, , , , )

where if opt is 0, it returns azimuthal wind and opt is 1 is returns radial wind.

I believe you then could take the radially averaged azimuthal and radial and combine them to get the true wind magnitude (which is what you'd get with radial_profile(_VEGMAG(U,V),X,Y).

Where this would be useful is for calculating inflow angle/cross-isobaric diagnostics such as those in Nardi et al., 2022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant