In this paper, we investigate the wireless power transfer and energy-efficiency (EE) optimization problem for nano-centric vehicular networks operating over the terahertz band. The inbody nano-sensors harvest energy from a power station via radio-frequency signal and then use the harvested energy to transmit data to the sink node. By considering the properties of terahertz band (i.e., sensitivity to distance and frequency over the communication path), we adopt the Brownian motion model to develop a time-variant terahertz channel model and to describe the mobility of the nano-sensors. Thus, based on the channel model and energy resources, we further develop a long-term EE optimization problem. The EE optimization is further converted into a series of energy-efficient resource allocation problems over the time slots via equivalent transformation method. The resource allocation problem for each timeslot, which is formulated as a mixed integer nonlinear programming (MINLP), is solved based on the particle swarm optimization (PSO) method. In addition, a dynamic PSO-based EE optimization (DPEEO) algorithm is developed to obtain the sub-optimal solution for the EE optimization problem. By exploiting the special structure of the reformulated problem, an improved DPEEO algorithm, is presented which can handle the problem's constraints quite well, decreases the research space, and greatly reduces the length of the convergence time. Simulation results validate the theoretical analysis of our system.