Hi Emily,
We can implement a new widget in R2D where you will be able to provide a path to a folder containing your custom fragility functions. The fragility functions should be defined in the .json format (an example is attached). Can you provide me with an example fragility function so we have an idea of what your exact requirements are?
In the next step, you will need to map your fragility functions to your building inventory using a custom auto-populate script (example of an auto-populate script is attached from Example 7 - Hurricane wind and water).
For the hazard, you can provide the water depths in a grid. As an example, please see the file EventGrid.csv in the folder IMs from Example 7 - Hurricane wind and water. In the next release, R2D will support the import of hazards as raster files.
Please feel free to ask any questions, I am happy to help.
Best,
Steve