CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

how to mappedField boundary 45 degrees across a retangle

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2018, 03:07
Default how to mappedField boundary 45 degrees across a retangle
  #1
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
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
Attached Images
File Type: jpg IMG_20180814_145930.jpg (29.9 KB, 33 views)
KTG is offline   Reply With Quote

Old   August 29, 2018, 08:18
Default
  #2
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
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.
KTG is offline   Reply With Quote

Old   August 29, 2018, 08:41
Default
  #3
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!

What if you map top with bottom and left with right patch?
simrego is offline   Reply With Quote

Old   August 29, 2018, 09:04
Default
  #4
KTG
Senior Member
 
Abe
Join Date: May 2016
Posts: 119
Rep Power: 9
KTG is on a distinguished road
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.
KTG is offline   Reply With Quote

Old   August 29, 2018, 09:12
Default
  #5
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
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.
simrego 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
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


All times are GMT -4. The time now is 15:39.