Vickrey, 1991) proposed a bathtub model for the evolution of trip flows served by privately operated vehicles inside a road network based on three premises: (i) treatment of the road network as a single bathtub; (ii) the speed-density relation at the network level, also known as the network fundamental diagram of vehicular traffic, and (iii) the time-independent negative exponential distribution of trip distances. However, the distributions of trip distances are generally time-dependent in the real world, and Vickrey's model leads to unreasonable results for other types of trip distance distributions. Thus there is a need to develop a bathtub model with more general trip distance distribution patterns.In this study, we present a unified framework for modeling network trip flows with general distributions of trip distances, including negative exponential, constant, and regularly sorting trip distances studied in the literature. In addition to tracking the number of active trips as in Vickrey's model, this model also tracks the evolution of the distribution of active trips' remaining distances. We derive four equivalent differential formulations from the network fundamental diagram and the conservation law of trips for the number of active trips with remaining distances not smaller than any value. Then we define and discuss the properties of stationary and gridlock states, derive the integral form of the bathtub model with the characteristic method, obtain equivalent formulations by replacing the time coordinate with the cumulative travel distance, and present two numerical methods to solve the bathtub model based on the differential and integral forms respectively. We further study equivalent formulations and solutions for two special types of distributions of trip distances: time-independent negative exponential or deterministic. In particular, we present six equivalent conditions for Vickrey's bathtub model to be applicable. Finally we demonstrate that the fundamental diagram and the bathtub model can be extended for multi-commodity trip flows with trips served by mobility service vehicles.