# Total Pressure BC for High-speed compressible flow - erroneous activation conditions

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 August 5, 2019, 16:14 Total Pressure BC for High-speed compressible flow - erroneous activation conditions #1 New Member   A. Z. Join Date: Jan 2019 Posts: 1 Rep Power: 0 Hello, Trying to derive the totalPressure boundary condition for a specific use, I found that the conditions for the selection between transonic and supersonic regimes for High-speed compressible flow are not consistent with the aerodynamic definition of these regimes. These conditions are associated with \gamma (specific heat ratios), where they should depend on the speed at least (Mach number). See the script here below from: fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C (OpenFOAM-5.x) ################################################## ########################## Code:  else { // High-speed compressible flow const fvPatchField& psip = patch().lookupPatchField(psiName_); if (gamma_ > 1) { scalar gM1ByG = (gamma_ - 1)/gamma_; operator== ( p0p /pow ( (1.0 + 0.5*psip*gM1ByG*(1.0 - pos0(phip))*magSqr(Up)), 1.0/gM1ByG ) ); } else { operator==(p0p/(1.0 + 0.5*psip*(1.0 - pos0(phip))*magSqr(Up))); } } ################################################## ######################### This may induce errors, any comment or suggestion regarding the way to proceed with this? Thanks. Zi Aun. Last edited by Zi_Aun; August 5, 2019 at 19:16. Reason: Add of the traditional "Hello"

 Tags gamma, totalpressure bc

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post LuckyTran FLUENT 1 November 23, 2016 10:40 Sanyo CFX 17 August 15, 2015 06:20 ghobold Main CFD Forum 3 June 15, 2015 11:14 Gearb0x OpenFOAM Running, Solving & CFD 2 February 28, 2011 21:18 Bart Prast Main CFD Forum 3 November 14, 2000 10:44

All times are GMT -4. The time now is 23:30.

 Contact Us - CFD Online - Privacy Statement - Top