Prescription of general defective boundary conditions in fluid-dynamics