In[]:=
Needs["NDSolve`FEM`"]γ=1.66;(*Ω=Rectangle[{0,0},{1,1}];*)Ω=Polygon[{{1,0},{.1,1},{0,1},{0,0}}]bcs={DirichletCondition[u[x,t]0,0≤x≤1&&0<y<1]};p[x_,t_]:=(γ-1)ρ[x,t](e[x,t]-u[x,t]^2/2);mesh=ToElementMesh[Ω,MaxCellMeasure0.01];mesh["Wireframe"]{uf,ρf,ef}=NDSolveValueρ[x,t]+(ρ[x,t]*u[x,t])0,(ρ[x,t]*u[x,t])+(ρ[x,t]*+p[x,t])0,e[x,t]+(u[x,t]*(e[x,t]+p[x,t]))0,bcs,e[x,0],ρ[x,0]10,u[x,0]0,{u,ρ,e},{x,t}∈mesh,Method{"FiniteElement","InterpolationOrder"{u2,ρ2,e2}};ContourPlot[uf[x,y],{x,y}∈Ω,AspectRatioAutomatic,ColorFunction"Rainbow",Contours25]
∂
t
∂
x
∂
t
∂
x
2
u[x,t]
∂
t
∂
x
101000
γ-1
Out[]=
Polygon
Out[]=
Out[]=

