KonstantinosRekoumis / CSR

A primitive calculator that calculates a ship midship plates and PSMs based on IACS CSR
2 stars 2 forks source link

Refactoring the plate class #44

Open KonstantinosRekoumis opened 9 months ago

KonstantinosRekoumis commented 9 months ago

As of now, the plate class is implemented to account for only linear geometries with the only non-linear part being the bilge plate. The above design even though makes sense for simplicity purposes can handicap the program's ability to cope with more complex geometries (ie. Maybe the "hopper plate" can be a Quarter Circle plate). Also, the pressure grid over each plate is calculated in the block class using an implicit algorithm that depends on the plate's positioning to calculate everything appropriately. As the new PressureContainer family of classes are to be implemented the above overly complex and hard-to-maintain algorithm will be axed in favor of calculating the pressure grid off each plate in the plate and then passing it whenever it is needed. So, what needs to be done: