In this work we present a physical-related model of vector hysteresis for magnetic simulation of nanometric structures. The mathematical formulation, based on a generalization of the Preisach and Stoner-Wohlfarth models, is very simple and elegant. The numerical implementation is very easy and the computation time required for the simulations is extremely fast. However the accuracy is not comparable with the codes based on the micromagnetic theory, but it is sufficient for the use as preprocessing of more accurate and more complex methods, in order to speed up the convergence. In this paper the model identification is performed for a nanoscale spin valve using the data generated by a 3D micromagnetic code.