Mathematical modelling has been extensively used to measure intervention strategies for the control of contagious conditions. Alignment between different models is pivotal for furnishing strong substantiation for policymakers because the differences in model features can impact their prognostications. Mathematical modelling has been widely used in order to better understand the transmission, treatment, and prevention of infectious diseases. Herein, we study the dynamics of a human immunodeficiency virus (HIV) infection model with four variables: S (t), I (t), C (t), and A (t) the susceptible individuals; HIV infected individuals (with no clinical symptoms of AIDS); HIV infected individuals (under ART with a viral load remaining low), and HIV infected individuals (with two different incidence functions (bilinear and saturated incidence functions). A novel numerical scheme called the continuous Galerkin-Petrov method is implemented for the solution of the model. The influence of different clinical parameters on the dynamical behavior of S (t), I (t), C (t) and A (t) is described and analyzed. All the results are depicted graphically. On the other hand, we explore the time-dependent movement of nanofluid in porous media on an extending sheet under the influence of thermal radiation, heat flux, hall impact, variable heat source, and nanomaterial. The flow is considered to be 2D, boundary layer, viscous, incompressible, laminar, and unsteady. Sufficient transformations turn governing connected PDEs into ODEs, which are solved using the proposed scheme. To justify the envisaged problem, a comparison of the current work with previous literature is presented.