semi-periodic boundary conditions for channel flow
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! |
All times are GMT -4. The time now is 15:35. |