|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Christoph Trier
Join Date: Mar 2024
Posts: 12
Rep Power: 3 ![]() |
Hey guys,
I have a problem with my simulation, and I don't know any further. At the moment, I'm just trying to simulate a normal flow through an L-shaped geometry (image attached). For now, it's isothermal and with a B field of 0. The boundary condition for U Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type fixedValue; value uniform (0.02 0 0); } outlet { type zeroGradient; //type pressureInletOutletVelocity; //value uniform (0 0 0); } Wall_side { type noSlip; } Wall_out { type noSlip; } Wall_inside { type noSlip; } } Code:
dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type fixedFluxPressure; value uniform 0; } outlet { type fixedValue; value uniform 0; //type fixedFluxPressure; //value uniform 0; //type inletOutlet; //outletInlet //inletValue uniform 0; } Wall_side { type fixedFluxPressure; value uniform 0; } Wall_out { type fixedFluxPressure; value uniform 0; } Wall_inside { type fixedFluxPressure; value uniform 0; } } I have tried several conditions with inlet/outlet, etc., but nothing helps. For the first few time steps, everything seems good, but then after some time, the pressure flips or does something strange (see images). The inlet is at the bottom, and the outlet is on top of it. So, the flow comes in at the bottom half of the L and leaves at the top half. I am new to OpenFOAM, and I can't figure out why this is happening. I'm using the buoyantPimpleMhdFoam (MHD and heat transfer), but both are switched off for now to check and see if the case is running, which it is not. Boundary condition: no heat transfer, so it's constant. Code:
internalField uniform 573; boundaryField { inlet { type fixedValue; value uniform 573; } outlet { type zeroGradient; } Wall_side { type zeroGradient; } Wall_out { type zeroGradient; } Wall_inside { type zeroGradient; } } ![]() Please let me know if you need anything else. Can someone help me with this kind of problem?? Thanks, Christoph Last edited by Lorddrinkalot; April 30, 2024 at 17:44. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Christoph Trier
Join Date: Mar 2024
Posts: 12
Rep Power: 3 ![]() |
Hey,
I added a GitHub repository for the case to see the different files. https://github.com/Lorddrinkalot/OpenFoam_Case.git I should mention that I am using the Boussinesq approximation. I also tried it with icoPolynomial, and in that case, the solver is working. However, for my case, I need the Boussinesq equation of state, and in that case, some weird stuff is happening. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Roman
Join Date: Sep 2013
Posts: 83
Rep Power: 13 ![]() |
With the other solvers (ex. fireFoam) p_rgh must be approximately the same as normal pressure, not zero. This is a common pressure corrected with the height.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Will Kernkamp
Join Date: Jun 2014
Posts: 383
Rep Power: 15 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Christoph Trier
Join Date: Mar 2024
Posts: 12
Rep Power: 3 ![]() |
So, hey guys,
I fixed my problems, or rather, I let it run longer. My problem was that I didn't let the Simulation run long enough in the business approximation. After simulation for some hours, the Pressure P-rough looks rigth |
|
![]() |
![]() |
![]() |
Tags |
p_rgh, p_rgh devergence |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 11:12 |
[mesh manipulation] Problems with rotational cyclic boundaries | TReviol | OpenFOAM Meshing & Mesh Conversion | 8 | July 11, 2014 03:45 |
[ICEM] Flow channel meshing problems | StefanG | ANSYS Meshing & Geometry | 19 | May 15, 2012 06:44 |
Two-phase air water flow problems by activating Wall Lubrication Force | challenger85 | CFX | 5 | November 5, 2009 05:44 |
Help required to solve Hydraulic related problems | aero | CFX | 0 | October 30, 2006 11:00 |