Input array formats #794
rafmudaf
started this conversation in
v4 Design Discussion
Replies: 1 comment 10 replies
-
To me, broadcasting up would make more sense if the variable to be broadcasted was actually a scalar, rather than a length 1 list/array. As I see it, the broadcasting is clearer with |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FLORIS has a pattern of allowing an input array of size 1 be expanded to the full problem size with all elements equal to the single value give. For example, the following input where wind direction and wind speed are length 2 and turbulence intensity is length 1 is allowed:
Internally, FLORIS expands turbulence intensity to the same length as wind direction and wind speed and applies
0.1
to all elements. In #793, the question is asked whether this pattern should apply to any array-type inputs.In earlier versions of FLORIS, the wind directions and wind speeds were central to the problem statement of a FLORIS calculation. However, in FLORIS v4, more aspects of the problem statement are as important, and the central property is now
findex
. Previously, I would have said that explicitly defining all wind directions and wind speeds is a requirements, but with the new structure I don't think this holds.UI Evaluation
So how would the input data look if we allow for any array inputs to be either 1 or
n_findex
?Here are some examples:
Beta Was this translation helpful? Give feedback.
All reactions