Exawind / openturbine

A flexible multibody structural dynamics code for wind turbines
https://exawind.github.io/openturbine/
MIT License
18 stars 7 forks source link

Read in YAML-based WindIO file to define a turbine #175

Closed ddement closed 1 month ago

ddement commented 4 months ago

Task: Create a class which takes in a .yaml file in the WindIO format and parses it (probably using yaml-cpp) to define a wind turbine.

Why: OpenTurbine needs to be able to read an input file from disk to receive user input.

Done means: A yaml-based WindIO input file can be read and parsed successfully (does not include creating any of the OpenTurbine data structures however).

michaelasprague commented 3 months ago

@faisal-bhuiyan -- any updates here?

michaelasprague commented 3 months ago

No significant process; @faisal-bhuiyan discussing idea of using python dictionary generated outside openturbine from the yaml file.

Discussing python vs yaml-cpp here ... but want to stick with lightweight, robust, TPLs

Faisal plans to have progress by next week.

faisal-bhuiyan commented 3 months ago

Working on implementing a logic to read yaml-based windIO input file using the yaml-cpp library and validating it (in a similar way done here) using the yaml schema validation library.

faisal-bhuiyan commented 3 months ago

Added yaml-cpp to OpenTurbine and added logic to read a yaml node from an input file. This task assumes a prerequisite, i.e. existence of OpenTurbine input data structures to contain the turbine information (not trivial) -- adding an issue for it.

faisal-bhuiyan commented 2 months ago

This is 70% done -- imported the Structs based off windIO schema and added method to instantiate them. Need to wrap up this work by automating the parse method creation via the Python script.