public subroutine integrate_streamline_bidirectional(x0, y0, u_func, v_func, params, max_time, path_x, path_y, n_points)
Bidirectional streamline integration like matplotlib
Integrates both forward and backward from seed point for complete streamlines
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real,
|
intent(in) |
|
|
:: |
x0 |
|
real,
|
intent(in) |
|
|
:: |
y0 |
|
private function u_func(x, y)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real,
|
intent(in) |
|
|
:: |
x |
|
real,
|
intent(in) |
|
|
:: |
y |
|
Return Value
real
|
private function v_func(x, y)
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
real,
|
intent(in) |
|
|
:: |
x |
|
real,
|
intent(in) |
|
|
:: |
y |
|
Return Value
real
|
type(integration_params_t),
|
intent(in), |
optional |
|
:: |
params |
|
real,
|
intent(in), |
optional |
|
:: |
max_time |
|
real,
|
intent(out), |
|
allocatable
|
:: |
path_x(:) |
|
real,
|
intent(out), |
|
allocatable
|
:: |
path_y(:) |
|
integer,
|
intent(out) |
|
|
:: |
n_points |
|