Changing between simulation models #399
-
Hello I have a question regarding how to easy change between different simulation models. I am currently defining a model using a .Yaml file which includes wake model strings for the combination, deflection, turbulence model, and velocity deficit models. Also when looking into the source code I saw that line 26 in sosfs.py says : model_string = "crespo_hernandez" Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
The model string in the SOSFS combination model is incorrect, and I will fix it. However, in the case of the combination models it does not have an effect on the configuration of FLORIS because the inputs are mapped to the models through a mapping in the Wake class. As for changing the wake model in a script, I recommend to export the FLORIS settings as a dictionary, make the change you want, and then create a new FlorisInterface object passing this dictionary as the first argument. d_floris = fi.floris.as_dict()
d_floris["wake"]["model_strings"]["velocity_model"] = "cc"
d_floris["wake"]["wake_velocity_parameters"]["cc"] = {
"a_s": 0.179367259,
"b_s": 0.0118889215,
"c_s1": 0.0563691592,
"c_s2": 0.13290157,
"a_f": 3.11,
"b_f": -0.68,
"c_f": 2.41,
"alpha_mod": 1.0,
}
fi = FlorisInterface(d_floris) This workflow is cumbersome, so we'll think about how to design this into the |
Beta Was this translation helpful? Give feedback.
-
Hi Marcus, It seems that @rafmudaf already answered you! I was actually in the process of writing up a small demo script for you. I'll add it here nonetheless, in case you find it useful.
|
Beta Was this translation helpful? Give feedback.
-
One more addition to Bart's very helpful sample script, you can store the modified
|
Beta Was this translation helpful? Give feedback.
-
It is very useful!Thanks |
Beta Was this translation helpful? Give feedback.
Hi Marcus,
It seems that @rafmudaf already answered you! I was actually in the process of writing up a small demo script for you. I'll add it here nonetheless, in case you find it useful.