Linear and nonlinear numerical models of local density perturbation dynamics in a stable stratified medium