CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF/SCHEME to Change Individual Cell Boundary Conditions Based on Pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2022, 15:33
Post UDF/SCHEME to Change Individual Cell Boundary Conditions Based on Pressure
  #1
New Member
 
Anonymous
Join Date: Mar 2022
Posts: 6
Rep Power: 4
JaySmall1 is on a distinguished road
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.
JaySmall1 is offline   Reply With Quote

Old   March 30, 2022, 10:53
Default
  #2
New Member
 
Join Date: Jun 2021
Posts: 13
Rep Power: 5
anan12345 is on a distinguished road
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
anan12345 is offline   Reply With Quote

Old   April 1, 2022, 00:13
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
AlexanderZ is offline   Reply With Quote

Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:56.