Fully conservative leak-proof treatment of thin solid structures immersed in compressible fluids