First-principle-constant pressure molecular dynamics