Multiphase sloshing dynamics of a two-layered fluid and interfacial wave interaction with a porous T-shaped baffle in a tank