# Not clear solution to error regarding total pressure inlet condition

**URL:** <https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770>\
**Category:** Project Support\
**Created:** [December 26, 2021, 11:33pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770 "2021-12-26T23:33:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![15\_10833](https://www.simscale.com/forum/letter_avatar/15_10833/32/6_449c533f586939b6e5f246632a46421f.png) [@15\_10833](https://www.simscale.com/forum/u/15_10833)\
**Post date:** [December 26, 2021, 11:33pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/1 "2021-12-26T23:33:41Z")

</div>

Hello! I’m trying to simulate a compressible supersonic flow along a convergent-divergent nozzle in a steady state, the expected Mach number is over 3, the pressure ratio around 70 and the inlet temperature around 2600K.

After reading some other post, I found that even if it is an steady-state, it’s recommended that I use the transient solver and a ramp inlet condition for the pressure, however, when I switch to it, the simulation run returns with an unespecified error. I tried both manually writing the table and importing a .csv table

I’m not sure if it is a bug regarding this type of condition or a mistake that I made while setting up the case. Here is the link to the proyect:

> **[SimScale Login](https://www.simscale.com/workbench/?pid=637439300939007003)**
>
> Log in to your SimScale account. SimScale makes high-fidelity engineering simulation technically and economically accessible. At any scale. In the cloud.

---

<div class="post-metadata">

**Author:** ![ggiraldof](https://www.simscale.com/forum/user_avatar/www.simscale.com/ggiraldof/32/30298_2.png) [@ggiraldof](https://www.simscale.com/forum/u/ggiraldof)\
**Post date:** [December 27, 2021, 7:04pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/2 "2021-12-27T19:04:38Z")

</div>

Hi there,

I think here the steady-state solution is adequate, you do not really need the transient solution to apply the ramp of the inlet boundary condition. Please refer to this tutorial for an example of this concept:

> **[Compressible Flow Around a Wing | Tutorial | SimScale](https://www.simscale.com/docs/tutorials/tutorial-compressible-flow-simulation-around-a-wing/#d-velocity-inlet)**
>
> In this step-by-step tutorial, you will learn how to setup and post-process a compressible simulation around a wing. Join SimScale today!

Other aspect is the wall: why are you using slip walls? Don’t you expect a boundary layer flow to happen in this situation? If so, what is the reason?

Finally, just as you extended the outlet, I would also extend the inlet to help stabilize the flow at the point of the nozzle.

---

<div class="post-metadata">

**Author:** ![15\_10833](https://www.simscale.com/forum/letter_avatar/15_10833/32/6_449c533f586939b6e5f246632a46421f.png) [@15\_10833](https://www.simscale.com/forum/u/15_10833)\
**Post date:** [December 27, 2021, 8:16pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/3 "2021-12-27T20:16:46Z")

</div>

Thank you for your reply, the problem is setting up the ramp condition, whenever I switch from a fixed value to a table value, the simulation returns with “an error has ocurred” and after checking the log, the simulation was not even able to start. I made a [new run in the proyect with this settings](https://www.simscale.com/workbench/?pid=637439300939007003&mi=run%3A73%2Csimulation%3A71&mt=SIMULATION_RUN), the error persists. The ramp recomendation was from [this post](https://www.simscale.com/forum/t/error-in-simulation-of-compressible-flow-that-was-performing-well-before/89009)

> [@ggiraldof](#):
>
> Other aspect is the wall: why are you using slip walls? Don’t you expect a boundary layer flow to happen in this situation? If so, what is the reason?

I was using the slip wall condition to get a preliminar result to get a little more stable simulation; my logic was that it shouldn’t crash as easly if I do not try to solve the boundary layer.

> [@ggiraldof](#):
>
> Finally, just as you extended the outlet, I would also extend the inlet to help stabilize the flow at the point of the nozzle.

Thanks a lot will do it and try!

---

<div class="post-metadata">

**Author:** ![ggiraldof](https://www.simscale.com/forum/user_avatar/www.simscale.com/ggiraldof/32/30298_2.png) [@ggiraldof](https://www.simscale.com/forum/u/ggiraldof)\
**Post date:** [December 27, 2021, 8:42pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/4 "2021-12-27T20:42:08Z")

</div>

I see your table and it doesn’t make much sense to me. Your inlet pressure should start at ambient pressure such that no flow is created (same pressure as outlet), then ramp linearly up to your maximum value in a few hundred iterations. Refer to the tutorial and do the same!

---

<div class="post-metadata">

**Author:** ![15\_10833](https://www.simscale.com/forum/letter_avatar/15_10833/32/6_449c533f586939b6e5f246632a46421f.png) [@15\_10833](https://www.simscale.com/forum/u/15_10833)\
**Post date:** [December 27, 2021, 9:15pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/5 "2021-12-27T21:15:32Z")

</div>

Thanks again for the quick reply. I modified the geometry and the values to match both the outlet and the initial conditions, but the [error](https://www.simscale.com/workbench/?pid=637439300939007003&mi=run%3A82%2Csimulation%3A71&mt=SIMULATION_RUN) still persist

---

<div class="post-metadata">

**Author:** ![RicardoParis](https://www.simscale.com/forum/user_avatar/www.simscale.com/ricardoparis/32/30222_2.png) [@RicardoParis](https://www.simscale.com/forum/u/RicardoParis)\
**Post date:** [December 27, 2021, 9:52pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/6 "2021-12-27T21:52:48Z")

</div>

Hi!

The compressible solver available in the platform is pressure-based, so it’s best for velocities under Mach 1. For transonic/supersonic simulations, a density-based compressible solver would be best, however it’s currently not available for community users.

In short, mach 3 would be very unstable and very prone to divergence using solvers available for community users - feel free to provide feedback/suggestions [here](https://roadmap.simscale.com/tabs/2-under-consideration)!

Cheers

---

<div class="post-metadata">

**Author:** ![15\_10833](https://www.simscale.com/forum/letter_avatar/15_10833/32/6_449c533f586939b6e5f246632a46421f.png) [@15\_10833](https://www.simscale.com/forum/u/15_10833)\
**Post date:** [December 27, 2021, 10:01pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/7 "2021-12-27T22:01:10Z")

</div>

Thanks Ricardo, just for confirmation:this means that is really hard to get convergence and get valid results for transonic/supersonic simulations?

---

<div class="post-metadata">

**Author:** ![RicardoParis](https://www.simscale.com/forum/user_avatar/www.simscale.com/ricardoparis/32/30222_2.png) [@RicardoParis](https://www.simscale.com/forum/u/RicardoParis)\
**Post date:** [December 28, 2021, 3:32pm UTC](https://www.simscale.com/forum/t/not-clear-solution-to-error-regarding-total-pressure-inlet-condition/94770/8 "2021-12-28T15:32:29Z")

</div>

With the only compressible solver available for community users, that is correct.

For professional users, there are transonic solvers available.
