Hello!!!
I am now modeling floating offshore wind turbine with semi-submersible platform by using FAST v.8. I have a question about the HydroDyn module. Since I have measured frequency wave spectrum, I am thinking about using "user-defined spectrum from routine UserWaveSpctrm option" in WaveMod input of HydroDyn. However, as far as I understand there is no clear instruction on how to use this and no example as well. So, could you please give me some suggestions?
Thank you
Danupon Subanapong
User defined spectrum from routine UserWaveSpctrm in HydroDYn
Moderators: Bonnie.Jonkman, Jason.Jonkman
-
Danupon.Subanapong
- Posts: 21
- Joined: Sun Jul 17, 2016 11:30 am
- Organization: University of Tokyo
- Location: Japan
-
Jason.Jonkman
- Posts: 5707
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Dear Danupon,
Hopefully the UserWaveSpctrm routine in HydroDyn is self-explanatory. This routine is called once per frequency at model initialization and receives the frequency (in rad/s) and direction (in degrees) of the wave component as input and returns the one-sided power-spectral density (PSD) (in m^2/(rad/s)) of the wave component as output. Its up to you how to calculate the one-sided PSD.
Best regards,
Hopefully the UserWaveSpctrm routine in HydroDyn is self-explanatory. This routine is called once per frequency at model initialization and receives the frequency (in rad/s) and direction (in degrees) of the wave component as input and returns the one-sided power-spectral density (PSD) (in m^2/(rad/s)) of the wave component as output. Its up to you how to calculate the one-sided PSD.
Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
-
Danupon.Subanapong
- Posts: 21
- Joined: Sun Jul 17, 2016 11:30 am
- Organization: University of Tokyo
- Location: Japan
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Thank you so much for your reply. As you said
If correct, the problem is that I cannot find an example of that input in any example of HydroDyn files.
Thank you so much
, it means that there is an input for frequency and direction of the wave companent. Am I correct?This routine is called once per frequency at model initialization and receives the frequency (in rad/s) and direction (in degrees) of the wave component as input and returns the one-sided power-spectral density (PSD) (in m^2/(rad/s)) of the wave component as output.
If correct, the problem is that I cannot find an example of that input in any example of HydroDyn files.
Thank you so much
-
Jason.Jonkman
- Posts: 5707
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Dear Danupon,
The sample UserWaveSpctrm routine is included in the Waves.f90 source file of HydroDyn. The Omega and WaveDir arguments of the routine are the inputs.
Best regards,
The sample UserWaveSpctrm routine is included in the Waves.f90 source file of HydroDyn. The Omega and WaveDir arguments of the routine are the inputs.
Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
-
Danupon.Subanapong
- Posts: 21
- Joined: Sun Jul 17, 2016 11:30 am
- Organization: University of Tokyo
- Location: Japan
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Thank you so much for your kind response. It is very clear and helpful.
Best Regards,
Danupon Subanapong
Best Regards,
Danupon Subanapong
-
Sai.Chaitanya
- Posts: 12
- Joined: Sun Nov 25, 2018 9:44 am
- Organization: National Institute of Technology Karnataka
- Location: India
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Sir,
I need to plot the Power spectral density of the responses I got using FAST for a spar model. I could not get any code or mathematical background for the same. Please guide me where I can find the mathematical expressions or a code.
Thank you
I need to plot the Power spectral density of the responses I got using FAST for a spar model. I could not get any code or mathematical background for the same. Please guide me where I can find the mathematical expressions or a code.
Thank you
-
Jason.Jonkman
- Posts: 5707
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Dear Sai,
The MATLAB-based MCrunch post-processing tool can calculate and plot Power Spectral Densities (PSDs). I've also developed a simple MATLAB-based function that calculates PSDs directly via FFT without windowing that I've attached for your use.
Best regards,
The MATLAB-based MCrunch post-processing tool can calculate and plot Power Spectral Densities (PSDs). I've also developed a simple MATLAB-based function that calculates PSDs directly via FFT without windowing that I've attached for your use.
Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
-
Sai.Chaitanya
- Posts: 12
- Joined: Sun Nov 25, 2018 9:44 am
- Organization: National Institute of Technology Karnataka
- Location: India
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Dear sir,
Thank you for the code.
I have time series data i.e. in seconds and response in meters. I have gone through the code and being new to MATLAB, as far as I understood, we have to input time series data as 'Data' and should convert it in separately into frequency and input as 'df'.
If it's correct, under what parameter in the code, we should input the response which I have in meter in order to get it on the y-axis as m2/Hz.
Help me in this regard.
Thanks alot
Thank you for the code.
I have time series data i.e. in seconds and response in meters. I have gone through the code and being new to MATLAB, as far as I understood, we have to input time series data as 'Data' and should convert it in separately into frequency and input as 'df'.
If it's correct, under what parameter in the code, we should input the response which I have in meter in order to get it on the y-axis as m2/Hz.
Help me in this regard.
Thanks alot
- Attachments
-
- Response.txt
- (4.69 KiB) Downloaded 120 times
-
- timeseriesdata.txt
- (2.82 KiB) Downloaded 113 times
-
Jason.Jonkman
- Posts: 5707
- Joined: Thu Nov 03, 2005 4:38 pm
- Location: Boulder, CO
- Contact:
Re: User defined spectrum from routine UserWaveSpctrm in HydroDYn
Dear Sai,
The Data array should be set to the time-series data (what you attached as Response.txt). The df scalar should be set equal to 1/tmax i.e. one divided by the total simulation length in seconds. From your timeseriesdata.txt file, it looks like you have 600 time steps with a time step size of 1 s, so, df = 1/(600 s).
Best regards,
The Data array should be set to the time-series data (what you attached as Response.txt). The df scalar should be set equal to 1/tmax i.e. one divided by the total simulation length in seconds. From your timeseriesdata.txt file, it looks like you have 600 time steps with a time step size of 1 s, so, df = 1/(600 s).
Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
Senior Engineer | National Wind Technology Center (NWTC)
National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov
Return to “Computer-Aided Engineering Software Tools”
Who is online
Users browsing this forum: No registered users and 1 guest