A General Method for Sub-Systems Coupling for the Dynamic Analysis