WISDEM / RAFT

A frequency-domain dynamics model for floating wind turbines
https://openraft.readthedocs.io
Apache License 2.0
40 stars 21 forks source link

Cannot create the raft environment on MacOS from raft-env.yaml #46

Open Wying301 opened 3 months ago

Wying301 commented 3 months ago

The error is: ` (base) MacBook-Air-2:xxx$ conda env create -f raft-env.yaml Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

Thanks, Ying

gbarter commented 3 months ago

The environment variable yaml-file and install instructions were mistakenly Windows-only. Please try these install instructions instead: https://github.com/WISDEM/RAFT/blob/install_readme/README.md

Wying301 commented 3 months ago

The environment variable yaml-file and install instructions were mistakenly Windows-only. Please try these install instructions instead: https://github.com/WISDEM/RAFT/blob/install_readme/README.md Thanks for your reply! I have installed WEIS on my pc, and it includes RAFT. Is there any way to run the standalone mode of RAFT within WEIS, like create an RAFT environment and run the RAFT folder in WEIS. Or I have to download the whole RAFT files separately and then run the RAFT? Thanks!

gbarter commented 3 months ago

If you have WEIS installed, then you have RAFT installed. You do not need to install it twice. There may still be a benefit to having a local git clone so that you can see the source code and understand any error messages (but the installed RAFT would be from some other directory).

Wying301 commented 3 months ago

Hi Garrett,

I installed a local RAFT according to the instructions, but met some problems when running the examples.

In the RAFT/examples folder, I run the VolturnUS-S case but receive the following error:


(raft-env) MacBook-Air-2:examples wuying$ python example_from_yaml.py

Traceback (most recent call last):

File "/Users/wuying/RAFT/examples/example_from_yaml.py", line 6, in

import raft

ModuleNotFoundError: No module named 'raft'

Can you help to solve this problem?

Thanks,

Ying

发件人: Garrett Barter @.> 答复: WISDEM/RAFT @.> 日期: 2024年4月1日 星期一 上午10:13 收件人: WISDEM/RAFT @.> 抄送: Ying Wu @.>, Author @.***> 主题: Re: [WISDEM/RAFT] Cannot create the raft environment on MacOS from raft-env.yaml (Issue #46)

If you have WEIS installed, then you have RAFT installed. You do not need to install it twice. There may still be a benefit to having a local git clone so that you can see the source code and understand any error messages (but the installed RAFT would be from some other directory).

— Reply to this email directly, view it on GitHubhttps://github.com/WISDEM/RAFT/issues/46#issuecomment-2029038991, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANZSBNPWW5A7RWLZB2MPQ7TY3C7FBAVCNFSM6AAAAABFILCIDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRZGAZTQOJZGE. You are receiving this because you authored the thread.Message ID: @.***>

gbarter commented 3 months ago

If you received the error no module named, 'raft', then the install was not successful. You might have to post the log or screenshot of your terminal with the installation commands you used.

Wying301 commented 3 months ago

Hi Garrett,

I run the example case IEA-15-240-RWT-UMaineSemi by RAFT, and I have a question. I notice that the ‘platform’in yaml file include qtfPath : 'IEA-15-240-RWT-UMaineSemi.12d'.

Thanks, Ying

发件人: Garrett Barter @.> 答复: WISDEM/RAFT @.> 日期: 2024年4月4日 星期四 上午11:26 收件人: WISDEM/RAFT @.> 抄送: Ying Wu @.>, Author @.***> 主题: Re: [WISDEM/RAFT] Cannot create the raft environment on MacOS from raft-env.yaml (Issue #46)

If you received the error no module named, 'raft', then the install was not successful. You might have to post the log or screenshot of your terminal with the installation commands you used.

— Reply to this email directly, view it on GitHubhttps://github.com/WISDEM/RAFT/issues/46#issuecomment-2036104725, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANZSBNPPSONVOIVKXIBCWETY3TB7JAVCNFSM6AAAAABFILCIDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWGEYDINZSGU. You are receiving this because you authored the thread.Message ID: @.***>

gbarter commented 3 months ago

@mattEhall - I'll hand this off to you

mattEhall commented 3 months ago

Thanks Garrett. Hi Ying, That line relates to a second-order wave excitation difference-frequency QTF file. It's an option with some capabilities under development and was included there accidentally. You should be able to just remove that line from the input file. If there is still a problem, there may also be a qtf or hydro mod input line that you could also remove to use the default options. Let me know if there's still an issue and I can look in detail. Matt

Wying301 commented 3 months ago

Hi Matt,

Thanks for your detailed reply. I remove that line and it works using the default options.

I also have another two general questions about RAFT.

  1. How to implement the frequency-domain simulation of wind turbine in RAFT? Can RAFT generate some physical quantities of wind turbine (e.g. stress of key components) for fatigue analysis?

  2. As far as I know, the commercial software Sesam – HydroD by DNV is also a frequency-domain tool for floating structure. So what’s the difference between RAFT and HydroD?

Thanks, Ying

发件人: Matt Hall @.> 答复: WISDEM/RAFT @.> 日期: 2024年4月12日 星期五 下午10:07 收件人: WISDEM/RAFT @.> 抄送: Ying Wu @.>, Author @.***> 主题: Re: [WISDEM/RAFT] Cannot create the raft environment on MacOS from raft-env.yaml (Issue #46)

Thanks Garrett. Hi Ying, That line relates to a second-order wave excitation difference-frequency QTF file. It's an option with some capabilities under development and was included there accidentally. You should be able to just remove that line from the input file. If there is still a problem, there may also be a qtf or hydro mod input line that you could also remove to use the default options. Let me know if there's still an issue and I can look in detail. Matt

— Reply to this email directly, view it on GitHubhttps://github.com/WISDEM/RAFT/issues/46#issuecomment-2051831670, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANZSBNIAY6PWWPBXIHFRKTTY47TATAVCNFSM6AAAAABFILCIDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRHAZTCNRXGA. You are receiving this because you authored the thread.Message ID: @.***>

Wying301 commented 2 months ago

Hi Matt,

If I understand correctly, the default options (without QTF file) do not calculate the 2nd-order wave force, while specifying QTF file means the calculation of the 2nd-order wave force. I run the example case (IEA 15MW + VolturnUS-Semi) in the two different ways, but they seems generate the same results in terms of the PSD of 6-DOF motions.

Is there any substantive differences between the activation or deactivation of QTF file when running RAFT?

Thanks, Ying

发件人: Matt Hall @.> 答复: WISDEM/RAFT @.> 日期: 2024年4月12日 星期五 下午10:07 收件人: WISDEM/RAFT @.> 抄送: Ying Wu @.>, Author @.***> 主题: Re: [WISDEM/RAFT] Cannot create the raft environment on MacOS from raft-env.yaml (Issue #46)

Thanks Garrett. Hi Ying, That line relates to a second-order wave excitation difference-frequency QTF file. It's an option with some capabilities under development and was included there accidentally. You should be able to just remove that line from the input file. If there is still a problem, there may also be a qtf or hydro mod input line that you could also remove to use the default options. Let me know if there's still an issue and I can look in detail. Matt

— Reply to this email directly, view it on GitHubhttps://github.com/WISDEM/RAFT/issues/46#issuecomment-2051831670, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANZSBNIAY6PWWPBXIHFRKTTY47TATAVCNFSM6AAAAABFILCIDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRHAZTCNRXGA. You are receiving this because you authored the thread.Message ID: @.***>