Spline model for strain energy

I think the post Incompressible Humphrey hyperelastic material in Fencis is doing the same thing which you want to achieve, the author is giving a time-dependent displacement and then calculating the stress corresponding to that and hence pressure vs displacement graph comes out to be like -