In this paper, we present a new phase-transition constitutive model for the thermomechanical behavior of shape memory polymers (SMPs). The model decomposes stress contributions into netpoint and switching domains based on experimental observations. We employ explicit expressions to characterize the evolution of the elastic modulus, storage strain and thermal strain during thermomechanical cycles. The model consists of only eight parameters yet precisely describes the temperature-dependent shape memory and thermal expansion effects observed experimentally. We implement the constitutive model in a 3D finite element procedure using Abaqus UEL user subroutines. The finite element procedure exhibits excellent convergence performance and has been applied to analyze a range of SMP structures under various programming loads, including blocks, cantilever beams, composite beams, thin-walled sheets, and origami structures. The simulation results demonstrate the accuracy and robustness of the model for large-scale SMP structures. We make the key computational source files available as supplementary materials.