Related Experiment Video
Updated: Jan 13, 2026

Author Spotlight: Computing the Effects of a Local Radiofrequency Hyperthermia Intervention on Tumor Biomechanics
Published on: December 1, 2023
Physics-informed neural network with weighted loss and hard constraints for hyperbolic conservation laws
Mahshid Sadat Ghoreishi1, Hamid Naderan2
1Department of Mechanical Engineering, Amirkabir University of Technology, Tehran, 15916-34311, Iran.
Abstract:
In this study, we proposed a weighted loss hard constraint physics-informed neural networks (PINNs) called WHC-PINN. WHC-PINN solves hyperbolic equations with the aid of a gradient weighting approach and by applying hard constraints. Euler equations are chosen for analysis and validation of WHC-PINN, as they represent a common and useful model for compressible fluid flow that includes shock waves and contact discontinuities. This is an important test case from a practical point of view, as resolving discontinuities with PINNs remains challenging. Accordingly, we explore two well-known fundamental problems of Euler equations, i.e., Riemann, and the converging-diverging nozzle. While solvers in other studies have successfully addressed one of the converging-diverging nozzle or Riemann problems with different formulations, our proposed solver can tackle both problems with the unified conservative formulations by incorporating specific features. Furthermore, given the distinct nature of the two selection problems, WHC-PINN solver is capable of addressing both initial value and boundary value problems, and we think that WHC-PINN is a step forward in using PINNs as a general-purpose compressible flow solver. Through comparing WHC-PINN results and analytical solutions, WHC-PINN could accurately capture the shock locations.
Related Concept Videos
Conservation of Mass in Moving, Nondeforming Control Volume
In the context of a detention basin, the conservation of mass states that the total mass of water entering the basin must equal the mass leaving the basin plus any accumulation of...
Conservation of Mass in Fixed, Nondeforming Control Volume
In the case of a sewer pipe, which can be modeled...
Newtonian Fluid: Problem Solving
A velocity gradient forms within the fluid when a Newtonian fluid is placed between two parallel plates, with...
Energy Conservation and Bernoulli's Equation
All the terms in the equation have the dimension of energy per unit volume. The kinetic energy per unit volume is called the kinetic energy density, and the potential energy per unit volume is...
Rigid Body Equilibrium Problems - II
Consider two children sitting on a seesaw, which has negligible mass. The first child has a mass (m1) of 26 kg and sits at point A, which is 1.6 meters (r1) from the pivot point B; the second child has a mass (m2) of 32 kg and sits at point C. How far from the pivot point B should the second child sit (r2) to balance the seesaw?
Gauss's Law: Problem-Solving