# Solve 1D compressible Euler equations with piston and cylinder?

**URL:** <https://community.wolfram.com/t/solve-1d-compressible-euler-equations-with-piston-and-cylinder/14992>\
**Category:** Questions\
**Tags:** engineering, physics, equation-solving, modeling, numerical-computation, packages-and-paclets\
**Created:** [November 11, 2019, 5:04am UTC](https://community.wolfram.com/t/solve-1d-compressible-euler-equations-with-piston-and-cylinder/14992 "2019-11-11T05:04:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beveluca](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@beveluca](https://community.wolfram.com/u/beveluca)\
**Post date:** [November 11, 2019, 5:04am UTC](https://community.wolfram.com/t/solve-1d-compressible-euler-equations-with-piston-and-cylinder/14992/1 "2019-11-11T05:04:15Z")

</div>

I’m attempting to solve a 1D piston and cylinder problem with the FEM solver, but I can’t a get sensible solution. I would expect a zig-zagging shock moving back and forth between the two walls. I’m using the vertical axis as time, with one wall (piston on the right side) moving towards the other (stationary) wall on the left.

I’ve attached my notebook. Any suggestions would be appreciated.

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/a54a80a6-7b0f-49d5-878e-d011d6807e1e)
