|
[Sponsors] |
how to mappedField boundary 45 degrees across a retangle |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 14, 2018, 03:07 |
how to mappedField boundary 45 degrees across a retangle
|
#1 |
Senior Member
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9 |
Hi,
I am trying to setup a case with recycling flow across a rectangle. When the flow direction is straight across it is very easy. However, when I have flow at 45 degrees, I am not sure how to set up the mapping. I want things to map along straight 45 degree lines as shown in the simple diagram attached. I was using this boundary condition for the mapping before: Code:
inlet { type mappedField; sampleMode banana; samplePatch outlet; offset (0 0 0); field p; setAverage no; average 0; value uniform 0; } All of the sampleMode options are "nearest" in some way, so I have no idea how to solve this problem. Any ideas? Thanks |
|
August 29, 2018, 08:18 |
|
#2 |
Senior Member
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9 |
I am still looking for a good solution to this. I am thinking that I can do by loading both boundaries in a #codestream, and looping through all the points to get the right mapping. This seems really inefficient though - the mesh is static, so the mapping should only be found once and reused for ever time step... Anyone have any idea how I can come up with a mapping and use it repeatedly? Maybe there is a utility I don't know about? I feel like I am about to re-invent one of openFoam's many wheels that I don't know about.
|
|
August 29, 2018, 08:41 |
|
#3 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
Hi!
What if you map top with bottom and left with right patch? |
|
August 29, 2018, 09:04 |
|
#4 |
Senior Member
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9 |
I just wrote an explanation and deleted it because I realized that maybe I am barking up the wrong tree here. I was thinking about periodicity in terms of the flow, but I should probably be thinking about it in terms of the geometry. The mapping is possible, but is actually not what I need. Maybe no one needs it which is why there is no code to do it. So...thanks for posting haha. That actually solved my problem without anyone having to do any real work! Just goes to show how much it helps to get out of ones own echo chamber I guess.
|
|
August 29, 2018, 09:12 |
|
#5 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
Sorry I also had to edit my post because first I was wondering how the hell can you put this thing near itself on a diagonal way...
But if you solved it then it's fine. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 01:27 |
[snappyHexMesh] sHM layer process keeps getting killed | MBttR | OpenFOAM Meshing & Mesh Conversion | 4 | August 15, 2016 03:21 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 08:44 |
Low torque values on Screw Turbine | Shaun Waters | CFX | 34 | July 23, 2015 08:16 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 04:05 |