/**
 * Calculate the required length of reinforcement bar in a concrete element.
 *
 * @param concreteCover The thickness of concrete cover in millimeters.
 * @param reinforcementDiameter The diameter of the reinforcement bar in millimeters.
 * @return The required length of reinforcement bar in millimeters.
 */
fun calculateReinforcementLength(concreteCover: Double, reinforcementDiameter: Double): Double {

    val r = reinforcementDiameter / 2  // Calculate the radius of the reinforcement bar
    val laps = 3  // Desired number of laps around the section
    
    // Calculate the required length of reinforcement bar
    val length = (2 * Math.PI * r + 2 * laps) * (1000 / Math.PI)
    
    return length
}
/**
 * Calculate the required length of reinforcement bar in a concrete element.
 *
 * @param concreteCover The thickness of concrete cover in millimeters.
 * @param reinforcementDiameter The diameter of the reinforcement bar in millimeters.
 * @return The required length of reinforcement bar in millimeters.
 */
fun calculateReinforcementLength(concreteCover: Double, reinforcementDiameter: Double): Double {
/**
 * Calculate the required length of reinforcement bar in a concrete element.
 *
 * @param concreteCover The thickness of concrete cover in millimeters.
 * @param reinforcementDiameter The diameter of the reinforcement bar in millimeters.
 * @return The required length of reinforcement bar in millimeters.
 */
fun calculateReinforcementLength(concreteCover: Double, reinforcementDiameter: Double): Double {

    val r = reinforcementDiameter / 2  // Calculate the radius of the reinforcement bar
    val laps = 3  // Desired number of laps around the section
    
    // Calculate the required length of reinforcement bar
    val length = (2 * Math.PI * r + 2 * laps) * (1000 / Math.PI)
    
    return length
}