|
[Sponsors] |
simpleFoam and rhoSimpleFoam boundary conditions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 22, 2023, 14:00 |
simpleFoam and rhoSimpleFoam boundary conditions
|
#1 |
New Member
prab
Join Date: Jun 2021
Posts: 4
Rep Power: 5 |
Hello, I am a newbie to openfoam. After going though the tutorials, I am setting up a capillary gas flow where the inlet is at atmospheric pressure 101325 pascal and the outlet is at 300 pascal.
I know that the incomprssible simpleFoam use p/rho and compressible use absolute pressure. But I am not sure if the p and U settings I entered are correct. The simulation is running somehow, but I do not see mach cones, which are expected at the outlet of the capillary. It looks like a simple gas expansion. So I am worried about the boundary settings. Following are the boundary setting for simpleFoam and rhoSimpleFoam. simpleFoam U: Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type fixedValue; value uniform (0 0 0.7); } outlet { type inletOutlet;; inletValue uniform (0 0 0.7); } walls { type noSlip; } } simpleFoam p: Code:
dimensions [0 2 -2 0 0 0 0]; internalField uniform 216; //260/1.2; boundaryField { inlet { type zeroGradient; } outlet { type fixedValue; value uniform 216; //260/1.2; } walls { type zeroGradient; } } rhoSimpleFoam U: Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type flowRateInletVelocity; massFlowRate constant 0.5; //I have a mesurement of mass flow rate //1.2 L/min. But just to test the code I used the default 0.5. rhoInlet 0.5; // Guess for rho profile turbulentBL; } outlet { type pressureInletOutletVelocity; value uniform (0 0 0); } walls { type noSlip; } } Code:
dimensions [1 -1 -2 0 0 0 0]; internalField uniform 260; boundaryField { inlet { type zeroGradient; refValue uniform 101325; refGradient uniform 0; valueFraction uniform 0.3; } outlet { type fixedValue; value uniform 260; } walls { type zeroGradient; } } Any comments on if the mach cones will be visible with simpleFoam or rhoSimpleFoam? Thank you Last edited by aneps; May 22, 2023 at 18:46. |
|
Tags |
rhosimplefoam, simple foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleFoam and rhoSimpleFoam convergence problem | maem93 | OpenFOAM Running, Solving & CFD | 0 | November 6, 2017 07:42 |
compressible flow, rhoSimpleFoam, boundary conditions | Aeronautics El. K. | OpenFOAM Running, Solving & CFD | 0 | June 26, 2016 15:27 |
Switching from simpleFoam to rhoSimpleFoam | sebastian | OpenFOAM | 11 | January 7, 2015 05:32 |
SimpleFoam results as initial condition to rhoSimpleFoam | marcelorl | OpenFOAM Pre-Processing | 5 | March 7, 2014 11:08 |
Dimesion error after switching from simpleFoam to rhoSimpleFoam | sebastian | OpenFOAM Bugs | 2 | June 17, 2010 09:03 |