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

Observed wind climate (*tab) file as wind input #37

Closed
kikocorreoso opened this issue Jun 6, 2023 · 15 comments
Closed

Observed wind climate (*tab) file as wind input #37

kikocorreoso opened this issue Jun 6, 2023 · 15 comments
Assignees
Labels
enhancement New feature or request suggestion An idea for future implementation

Comments

@kikocorreoso
Copy link

In several foxes-related software packages wind input is defined using a .*tab file format. This is handy because we can share same inputs between different tools.

This file format is defined here.

Do you think it would be possible and useful to add this as input or as an output postprocess tool? I.e., knowing the output from several wind states, e.g. ws=9m/s and wd=270º, calculate the estimated output of a farm using the expected wind speed distribution (percentage of time on each wind state).

@kikocorreoso kikocorreoso added the suggestion An idea for future implementation label Jun 6, 2023
@SchmJo
Copy link
Collaborator

SchmJo commented Jun 6, 2023

Thanks for this issue (related question #35), I am optimistic this can be added.

@SchmJo SchmJo added the enhancement New feature or request label Jun 6, 2023
@SchmJo
Copy link
Collaborator

SchmJo commented Jun 8, 2023

@kikocorreoso Could you please upload an example file? I need that for developing such an interface. Thanks!

@kikocorreoso
Copy link
Author

Hi,

Sorry for the delay.

I have downloaded a timeseries from NEWA at Baltic Sea, lon, lat: (14º, 55º)

The time series includes wind speed and direction at 100m above ground. From this time series I have created to tab files, 16 and 12 sectors.

In the file below you can find the timeseries, the tab files and a screenshot with the location for your reference.

dist.zip

Please, let me know if this helps or if you prefer the files at other location, other levels, etc.

Thanks in advance.

@SchmJo
Copy link
Collaborator

SchmJo commented Feb 14, 2024

@kikocorreoso While reading your example tab files into xarray Datasets, I noticed that the frequencies do not add to 1000 in each sector, is this intended? The following is for the file test_(14.0,55)_12sectors_100m.tab, thanks for any comment:

<xarray.Dataset>
Dimensions:    (ws: 36, wd: 12)
Coordinates:
  * ws         (ws) float64 0.0 1.0 2.0 3.0 4.0 5.0 ... 31.0 32.0 33.0 34.0 35.0
  * wd         (wd) float64 0.0 30.0 60.0 90.0 120.0 ... 240.0 270.0 300.0 330.0
Data variables:
    frequency  (ws, wd) float64 3.261 3.6 7.572 7.643 7.249 ... 0.0 0.0 0.0 0.0
Attributes:
    description:  <None> | 'Spd 100m' | 'Dir 100m' | Created 30/06/2023
    latitude:     55.0
    longitude:    14.0
    height:       100.0
    n_sectors:    12.0
    delta_ws:     1.0
    delta_wd:     30.0
    shift_wd:     0.0

Frequency sums for each sector:
[1003.2586 1003.5989 1007.5715 1007.6418 1007.2496 1006.1642 1006.9668
 1008.4492 1013.9408 1018.2013 1011.5311 1005.4222]

@SchmJo
Copy link
Collaborator

SchmJo commented Feb 14, 2024

Also, in relation to that: Which additional input is provided by the user that defines the frequency of each sector? As far as I understand, the tab file frequencies describe only how often each wind speed appears within each sector. Or am I missing something here? Thanks for helping me understand this format!

@kikocorreoso
Copy link
Author

kikocorreoso commented Feb 15, 2024

Hi @SchmJo
Thanks for reviewing this.

  • Each column must sum 1000 but the are rounding errors and many times you can see 998, 999,...
  • Line 4 provides the frequency on each sector so you must weight each column with the frequency.

I hope it helps.

@SchmJo
Copy link
Collaborator

SchmJo commented Feb 15, 2024

Thanks! That's it, I misinterpreted line 4, now also the weights match. 👍

@SchmJo
Copy link
Collaborator

SchmJo commented Feb 16, 2024

I pushed a new input states class to branch dev: TabStates, representing input from a single tab file. This example shows how to use it.

@kikocorreoso However, I am guessing you would like to use several such tab files in one calculation, e.g. one for each turbine? If so, how would you preferably provide such data as a user, as a path to a folder? Or zipped? Or am I wrong and this not your intention after all?

@kikocorreoso
Copy link
Author

Hi @SchmJo Jonas,

This is excellent. Thank you so much!!!

More and more the industry is going to bigger areas with many wind farms. In these areas, sometimes hundreds of km from N to S or from E to W, we could have many measurement locations and only one measurement location is not enough to represent correctly the wind regime in the full area. An area could be windier or the wind rose could be different, etc. When we need something fast and not very detailed we use a numerical simulation of the whole area that provides the climatic conditions and we "adjust" this simulation with the climatic conditions recorded on each of the sites. So, in the end we use something like information for each WTG or for a set of WTGs associated with a measurement location.

How could be the best way to access this data and associate this data? Everything should work. I am not so worried about how to read the data but how to use this data. It would be great if I can create 5 TabStates and associate each of them to the closest WTGs or something like that.

I don't know if this makes sense.

Again, thank you very much for the effort and the patience.

@tristanfabregas
Copy link

Hi @kikocorreoso,

Perhaps we could consider using *.WRG which is an industry standard because it provides a spatial representation of wind speeds by sector over an area and add a new feature of "scaling speeds using a measurement device".
Weighting by the inverse of the square of the distance (or some other method could be used) if there are several masts?

Thank you very much for all the work already done !
Tristan

@SchmJo
Copy link
Collaborator

SchmJo commented May 6, 2024

Thanks for the input, the idea of adding support for WRG is already under internal discussion within the foxes dev team. But the implementation has not started yet - So the link is much appreciated.

I think for several masts triangulation is the way to go.

@SchmJo
Copy link
Collaborator

SchmJo commented May 6, 2024

@VolLuk FYI

@kikocorreoso
Copy link
Author

The WRG file is like a multi-tab file in a regular grid defined using weibull parameters instead of the frequency table from a measurement location.

This is what we use in most of our energy estimations calibrated with timeseries/tabs/whatever obtained from measurements or other sources.

In the end it helps to provide 'weights' to the wind speed in a big area in a wind direction basis.

The WRG file would be like a simplification of foxes.input.states.FieldDataNC or a generalization of foxes.input.states.StatesTable.

@tristanfabregas
Copy link

Thank you very much @kikocorreoso. An enhanced version of *.WRG exist, called *.WRB. I think this one is more useful because the file contains ambient TI and wind shear.

@kikocorreoso
Copy link
Author

I have been working with foves v1.0 and I think most of the issues related to this are already addressed. I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request suggestion An idea for future implementation
Projects
None yet
Development

No branches or pull requests

3 participants