|
[Sponsors] |
Unexpected jump in Velocity & Temp across shock using pisoCentralFoam &rhoCentralFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 22, 2016, 07:03 |
Unexpected jump in Velocity & Temp across shock using pisoCentralFoam &rhoCentralFoam
|
#1 | |||||||
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Dear Foamers,
I am trying to simulate single phase supersonic flow in an axisymmetric cylinder. (attached image of the domain) Mesh(made from blockMesh looks good in CheckMesh option (inlet radius is 2mm, and length from depositor to inlet is 360 mm ) Quote:
T Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
There is a spike observed near the shock region in rhoCentralFoam and PisoCentralFoam. This is not the case with Fluent and it gives good agreement with literature and experimental data. I am unable to figure out why a discontinuity observed in the results? comparison-1.png meshmain.jpg Vmag-OF1.jpg pisocent_foam.zip Last edited by chirag; January 23, 2016 at 11:08. |
||||||||
January 23, 2016, 09:42 |
|
#2 |
New Member
Luka Denies
Join Date: Oct 2014
Posts: 28
Rep Power: 12 |
Hey there,
Can you also give the boundary conditions for pressure? It looks like you put those of velocity but not pressure. Although I suppose you put totalPressure at the inlet and zeroGradient at the outlet, which would be the correct b.c. The first thing that comes to mind is: do you know for sure that the simulation is converged? Yours for some reason makes me think it is not fully converged yet. There are quite some threads here how to recognize a properly converged solution. |
|
January 23, 2016, 11:06 |
|
#3 |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Hi LukeD,
I guess It has converged I have simulated it for really long time. My maximum velocity is 3000 m/s . so the particle sweeps through domain atleast 30 times. Thanks in advance! Chirag |
|
January 23, 2016, 11:11 |
|
#4 |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Hi LukeD,
https://drive.google.com/file/d/0B5_...ew?usp=sharing I have shared the results in google drive too along with all the files Can you please go through them ? Thanks in advance! Chirag |
|
January 23, 2016, 11:45 |
|
#5 | |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Quote:
I have to maintain the chamber at T and P of(100 Pa, 300K). High energy gas (20000 Pa, 12000 k) enters the chamber and results in underexpanded flow through nozzle. I am using totalPressure at inlet and waveTransmissive pressure B.C at outlet. I have used similar B.C in fluent and results seem to be in very good agreement with exp and dsmc. Thank you, Chirag |
||
January 23, 2016, 14:25 |
|
#6 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hi,
can you add a small converging region at the inlet?
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 23, 2016, 14:26 |
|
#7 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Also, i would suggest to try running case with lower inlet/outlet pressure ratio
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 23, 2016, 14:28 |
|
#8 |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Hello Sir!
I will get it done and share it within few hours! Thanks! Chirag |
|
January 23, 2016, 14:48 |
|
#9 |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
I am trying to validate this paper by by selezneva et. al "Stationary supersonic plasma expansion: continuum fluid mechanics versus direct simulation Monte Carlo method" and I am trying to use same operating conditions (as I did in fluent for verifying the results). I will change the straight region with convergent one at inlet and fire it. I will also reduce the pressure ratio as advised.
Thanks! http://iopscience.iop.org/article/10.../35/12/312/pdf Last edited by chirag; January 23, 2016 at 14:49. Reason: added something more |
|
January 26, 2016, 06:32 |
|
#10 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hi, chirag!
After some steps i was able to reach solution that is very close to fluent, see attached figures for Ma and T distribution along axis. I done next steps: 1) I changed from upwind to Minmod scheme, i reverted to 3 PISO correctors. I think, that for this case it is possible to use less dissipative schemes, like vanLeer, vanAlbdada, filteredLinear2, etc 2) I switched off momentum predictor at system/fvSolution 3) Also, i changed this case for steady-state simulation (LTS), which is available for OpenFOAM 3.0.0, (see attached) tgz file. For steady-state simulation i used different rDeltaTSmoothingCoeff at different iterations: 0.001 for starting iterstions (0 - 5000) 0.01 for iterations (5001 - 30000) 0.02 for iterations > 30000 4) I changed inlet conditions for k, epsilon, U and p: it is better to calculate k and epsilon at inlet using empirical formula depending on current velocity: k: Code:
INLET { type turbulentIntensityKineticEnergyInlet; intensity 0.01; value uniform 0.1544303; } Code:
INLET { type turbulentMixingLengthDissipationRateInlet; mixingLength 0.00036; value uniform 67.93; } velocity must be calculated from current pressure with uniform profile, that's why i used pressureInletUniformVelocity: Code:
INLET { type pressureInletUniformVelocity; value uniform (0 0 0); } Code:
INLET { type timeVaryingTotalPressure; value uniform 100; p0 table 21 ( (0 100) (10 200) (20 300) (30 400) (50 500) (60 600) (70 700) (80 800) (90 900) (100 1000) (200 2000) (300 2000) (400 3000) (500 3000) (600 5000) (700 5000) (800 7500) (900 7500) (1000 10000) (2000 10000) (3000 10000) ); U U; phi phi; psi thermo:psi; gamma 0.9; } On the outlet, i imposed special B.C. for presssure, which is also present only in libcompressibleTools - subsonicSupersonicPressureOutlet Code:
OUTLET { type subsonicSupersonicPressureOutlet; value $internalField; p0 $internalField; U U; phi phi; psi thermo:psi; gamma 1.67; refValue $internalField; refGradient uniform 0; valueFraction uniform 1; } As i understand from the article, authors used power law for viscousity and conductivity, for our case this leads to change in enthalpy and velocity diffusion coefficients more than 10 times, and it is also very important. So, i made a simple library, which implements linear approximation to power law properties (see attached file) Also, authors told that they imposed 12000K and 10000Pa at the outlet of nozzle. It means that if you will set fixedValue for temperature at nozzle wall, you will get a strong heat flux, and you will loose a lot of thermal energy in the nozzle. So, i separated nozzle wall from other walls and used zeroGradient for temperature on nozzle surface. At last, i made nozzle to be slightly convering, to prevent flow from reaching Ma > 1, see blockMeshDict in attached case What next steps must be done to get closer to more physical solution: 1) We need to implement temperature-dependent Cp - because now it is constant, but it can vary significantly for such case 2) We need to implement power law for viscosity and thermal conductivity 3) We need to implement limiter for lower boundary of pressure - there is still a small region with p ~ 1 and this can lead to diverging solution. This can be done with fvOptions, but i need add fvOptions to current implementation of pisoCentralFoam 4) Also, i would propose to make outlet of nozzle diverging, this may also help to avoid low pressure region
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin Last edited by mkraposhin; January 26, 2016 at 07:48. |
|
January 26, 2016, 06:33 |
|
#11 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
And a temperature field (case didn't converged to steady-state)
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 26, 2016, 10:03 |
|
#12 |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Hello Sir,
Thank you very much for looking into the problem. There is no gradient of V & T observed in the results u have arrived as expected from experiments /simulation. The author has inlet b.c as 20000 Pa and 12000K. She studied for outlet flow: 1) P = 100 Pa, 300k 2) P = 20 Pa, 300K The pressure will sometimes go below 0 Pa and needs bounded as you said ( I had applied that before in Fluent). I had limited its value to 1e-8. The region where you have observed the low pressure is where fluent predicts (please see the attached images). We have good agreement with the experiments and the N-S simulation which she had performed. I had applied varying viscosity and specific heat in fluent for getting good agreement. I am trying to get the same in openFoam. Its really very kind of you to look into it. Thanks, |
|
January 26, 2016, 10:56 |
|
#13 |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
hi,
I tried to install the new boundary condition library. I observed following error: "cannot find -lfftw3" Can you please gupdate the repository with the library file fftw3 Thanks! |
|
January 26, 2016, 10:57 |
|
#14 | |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Quote:
I tried to install the new boundary condition library. I observed following error: "cannot find -lfftw3" Can you please gupdate the repository with the library file fftw3 Thanks! |
||
January 26, 2016, 11:49 |
|
#15 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hi,
You must compile library with script ./makeLib.sh
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 26, 2016, 11:51 |
|
#16 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
If you will wait, i'm going to update library with thermophysical properties for your case
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 26, 2016, 12:19 |
|
#17 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Can you post here expression for Cp?
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 26, 2016, 13:05 |
properties of argon
|
#18 |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Hello Sir,
Please find the properties of argon needed for simulating this flow Viscosity: mu = mu0 (T/To)^0.72 where mu0 = 2.125e-5 kg/m.s To = 273.11 K specitic heat is function of temperature and linear variation has been calculated using the data provided in Thermal Plasmas Fundamentals and Applications Volume 1 by Maher I. Boulos et. al Cp = 6e-17 *T^5 - 4e-13*T^4 - 3e-9*T^3 +3e-5T^2 - 0.0597*T + 551.74 I am also attaching the table in text format if linear input of viscosity is required instead of expression Thanks!! |
|
January 26, 2016, 13:54 |
|
#19 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hi,
I made it. It is interesting, what results you will obtain. Don't forget to downoald rescent version of pisoCentralFoam and compressibleTools, case for simulation in the attachment I used polynomial expression for Cp, because it is already done in OpenFOAM. In the future, it will be better to implement tabular properties, because it is much faster. minimum value for pressure is set at system/fvOptions
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
January 26, 2016, 14:13 |
|
#20 | |
New Member
chirag khalde
Join Date: Sep 2011
Posts: 22
Rep Power: 15 |
Quote:
Thank you very much! I will install 3.0.0 as I was using 2.3.1. I will share the results soon! Regards, Chirag |
||
Tags |
pisocentralfoam, rhocentralfoam, shock wave, validation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wrong velocity & temp at initialization | Leo | FLUENT | 1 | October 15, 2007 11:42 |
Pressure jump on supersonic velocity inlet | Viktor | FLUENT | 0 | August 9, 2007 01:23 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 03:13 |
Porous jump and velocity | Christian | FLUENT | 6 | May 21, 2003 14:24 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |