Construct Contour Plot in Mathematica for Quasi-Linear 1-D Wave Eq

Click For Summary
SUMMARY

This discussion focuses on constructing a contour plot in Mathematica for the quasi-linear 1-D wave equation defined by the partial differential equation $$\frac{\partial\rho}{\partial t} + 2\rho\frac{\partial\rho}{\partial x} = 0$$. The initial conditions are piecewise constant, specifically defined for $x_0 = \pm 1$. The initial density function $\rho(x,0)$ is given as 4 for $x < -x_0$, 3 for $-x_0 < x < x_0$, and 1 for $x > x_0$. Participants in the discussion seek confirmation on the accuracy of their contour plot representation in Mathematica.

PREREQUISITES
  • Familiarity with Mathematica 12.0 for plotting
  • Understanding of quasi-linear partial differential equations
  • Knowledge of contour plotting techniques in mathematical software
  • Basic concepts of piecewise functions
NEXT STEPS
  • Research "Mathematica contour plot syntax" for accurate plotting commands
  • Explore "solving quasi-linear PDEs in Mathematica" for deeper insights
  • Learn about "piecewise functions in Mathematica" for better function definitions
  • Investigate "visualizing wave equations" to enhance understanding of wave behavior
USEFUL FOR

Mathematicians, physicists, and engineers interested in numerical methods for wave equations, as well as students learning to visualize complex mathematical concepts using Mathematica.

Dustinsfl
Messages
2,217
Reaction score
5
How can I construct a contour plot in Mathematica for
Consider the quasi-linear 1-D wave equation
$$
\frac{\partial\rho}{\partial t} + 2\rho\frac{\partial\rho}{\partial x} = 0
$$
with the piecewise constant initial conditions
When $x_0 = \pm 1$

$$
\rho(x,0) = \begin{cases}
4, & x < -x_0\\
3, & -x_0 < x < x_0\\
1, & x > x_0\\
\end{cases}
$$
 
Physics news on Phys.org
dwsmith said:
How can I construct a contour plot in Mathematica for
Consider the quasi-linear 1-D wave equation
$$
\frac{\partial\rho}{\partial t} + 2\rho\frac{\partial\rho}{\partial x} = 0
$$
with the piecewise constant initial conditions
When $x_0 = \pm 1$

$$
\rho(x,0) = \begin{cases}
4, & x < -x_0\\
3, & -x_0 < x < x_0\\
1, & x > x_0\\
\end{cases}
$$

Would this be the correct contour plot?
View attachment 339
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
515
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
1K
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K