Total pressure is constant

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
bajsi
Posts: 15
Joined: Wed Jul 18, 2012 12:51 pm

Total pressure is constant

Post by bajsi »

Version: CS 3.0-beta

I have a simple test case:
- a cubic meter of air with initial temp. = 0 °C,
- user law for density + gravity for convection,
- a boundary condition of 100 °C on all sides (no inlets or outlets).

The computation finishes OK - the cube heats up, but the total_pressure is constant and pressure deviates only due to hydrostatic difference. Considering that this is isochoric (constant volume) process the pressure should increase as temperature rises.
I guess my error is in user law for density "(rho = 1.293 * (273.15 / (TempC + 273.15));" it probably should use pressure as an additional factor.

Any ideas how to make this properly? Attached is a zip of mesh and settings.
Attachments
001_Pressure.zip
(6.4 KiB) Downloaded 266 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Total pressure is constant

Post by Yvan Fournier »

Hello,

I'll check with colleagues tomorrow, but I believe you may need to activate the compressible module for this.

Regards,

Yvan
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Total pressure is constant

Post by Yvan Fournier »

Hello,

The "idilat = 2" model (low-mach compressible option) might also help here.

Regards,

Yvan
Post Reply