Questions about the HydroDyn Module

Dear Jason,

I would like to know how FAST calculates the Blade mass and tower mass. In this post (Results comparison FAST and Bladed - #16 by Jason.Jonkman)
you mentioned that “In the Modes, BModes, and FAST codes, the tower mass is defined as a distributed mass per unit length (varying along the length), which gets integrated along the tower in order to find the overall mass.”
Could you give a formula to show how the mass distribution is integrated?

The blade-section spans used for the integration are defined in the file, e.g, “NRELOffshrBsline5MW_AeroDyn_blade.dat”, am I correct? But how about the file that defines the tower-section spans? Are the tower-section spans defined in the AeroDyn15 input file (which is also used for tower aerodynamics)?

Another related problem is: should the locations of the span sections in one file be exactly the same as the section locations of mass distribution in another file?

Thanks a lot.
Best Regards,
Yingyi Liu