Physics-informed machine learning (PINN): a novel computer modelling framework for mechanics