|
[Sponsors] |
UDF/SCHEME to Change Individual Cell Boundary Conditions Based on Pressure |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 29, 2022, 15:33 |
UDF/SCHEME to Change Individual Cell Boundary Conditions Based on Pressure
|
#1 |
New Member
Anonymous
Join Date: Mar 2022
Posts: 6
Rep Power: 4 |
Hello,
I'm working on a detonation simulation where I need a boundary condition change to occur in the high-pressure region behind the wave. The 2-D simulation takes place in a rectangular domain with periodic boundaries on the sides, a pressure outlet exhaust on top, and an inlet at the bottom. The detonation wave is to travel along the inlet, continuously rotating. The goal is to have a total pressure inlet supplying propellant at all parts of the inlet whose pressure at the cell face along the inlet is less than the injection pressure. Those cell faces with higher pressure (immediately after detonation passes) need to be switched to a wall boundary condition. I've read some SCHEME setups that are able to change the boundary of the entire inlet with provided zone ID, but I haven't been able to come across anything that can change individual cell faces that are part of the boundary. In the past, I've used a UDF to switch between total pressure inlets and supersonic pressure inlets, but the switch between two completely different types is turning out to be more difficult. Does anyone have any experience with this kind of change? Any help would be greatly appreciated. Thank you. |
|
March 30, 2022, 10:53 |
|
#2 |
New Member
Join Date: Jun 2021
Posts: 13
Rep Power: 5 |
I think fluent has can separate surfaces to faces. if you are willing to write a switch statement from Wall-Inlet, theoretically, you should be able to switch the faces of a surface individually by some kind of a generalized if statement
|
|
April 1, 2022, 00:13 |
|
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
there is no way to switch between boundary conditions in specific cell/face
it is applied to the whole thread I see two ways for you here: 1. make a huge amount of faces with unique names (ids) so you may change BC types there 2. Change viscosity to huge value in that region, so the flow can't proceed there
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 07:40 |
Fail to converge when solving with a fabricated solution | zizhou | FLUENT | 0 | March 22, 2021 07:33 |
Wrong multiphase flow at rotating interface | Sanyo | CFX | 14 | February 7, 2017 18:19 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |