CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

semi-periodic boundary conditions for channel flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2019, 14:30
Default semi-periodic boundary conditions for channel flow
  #1
New Member
 
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14
kiski is on a distinguished road
Hi,


I am trying to solve a channel flow with leaks. I know the leak pressure (reference 0), and I know the pressure drop within the pipe channel.


I want from CFD to get the pressure within the channel. Here a sketch


-------------------------------------------

p_in . . . . . . . . . . . . . . . . . . . . . p_out = p_in-5

-----| |------------------------------------
. p = 0


How can I set something like this in openfoam? What would you advice me?


+ mappedField? This is not working per se, maybe with some dict... I am using snappyHexMesh for meshing (I need to, there are more objects in the flowfield, but the channel is straight and nearestPatchFace should work I guess)

outlet
{
type mappedField;
sampleMode nearestPatchFace;
samplePatch inlet;
field p;
setAverage no;
average 0;
offset (0 0 0);
value uniform 0;
}


I also used nearestPatchFaceAMI, but I get error.


If it worked I would have needed some short of
setAverage no;
average $inlet-5; // I guess you understand this pseudo code



+ some short of cyclic?
+ Any better idea?


Thank you!
kiski is offline   Reply With Quote

Reply

Tags
cyclic bcs, mapfields


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
Boundary conditions for k and epsilon on a periodic channel flow Maveryck OpenFOAM 2 August 26, 2019 05:08
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19
Symmetry and Periodic boundary conditions CFD_Fluent_User FLUENT 1 October 16, 2014 02:18
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


All times are GMT -4. The time now is 06:09.