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

directMappedPatch and directMappedFixedInternalValue for fluid-fluid BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2012, 14:49
Default directMappedPatch and directMappedFixedInternalValue for fluid-fluid BC
  #1
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
In the spirit of experimentation (but also as a possibility for my work), I decided to test the directMapped BC as a way to exchange data in two different regions of the same fluid.

For this reason, I modified the multiRegionHeater tutorial of chtMultiRegionFoam in the following way:
- Only two regions, both of them fluid (topAir, bottomAir)
- Walls all around
- topAir @ 6x10^4 Pa, bottomAir @ 10^5 Pa
- Communication between the two regions is done with directMappedPatch and directMappedFixedInternalValue for all fields
- Gravity, radiation, turbulence, etc all turned off

I need to stress that this is just for testing purposes and I do not have the ambition or desire to take accurate results for this problem. This was meant to be a rough run. I just want to make sure that the BC does what I think, i.e. provide a correct exchange of data and a smooth interface between the two fluid regions.

The problem is that, even though the field data seem to be correctly transmitted, the value exactly at the boundary does not change. It is actually the one that I give in the "value" field at the beginning (if I don't give anything, I get an error related to the thermophysical properties). The result is that the pressure field looks ok with cell data, but when I plot the interpolated field, there is a fine line of different color (see attached files). The situation is much worse when I plot the distribution in one dimension (also see the awful 1D plot attached here).

Does anyone know how to fix this?
The case is attached here, be my guest and play with it.
I am using OF Version 2.0.1, compiled from sources.
Attached Images
File Type: jpg screen1.jpg (90.1 KB, 30 views)
File Type: jpg screen2.jpg (67.6 KB, 31 views)
File Type: jpg screen3.jpg (56.9 KB, 18 views)
Attached Files
File Type: zip hydroInterfaceTest.zip (21.4 KB, 19 views)
anon_a is offline   Reply With Quote

Old   July 6, 2012, 10:29
Default
  #2
New Member
 
Mike
Join Date: Jun 2012
Location: Wooster, OH
Posts: 5
Rep Power: 14
manderson010 is on a distinguished road
Just one of those "Is it plugged in?" sort of things: using ParaView, if the boundaries are included in the rendered image, that could possibly throw things off in just the way you describe.

2.1.5.7 in user guide:
Quote:
Also, data is interpolated incorrectly at boundaries if the boundary regions are selected in the Mesh Parts panel. Therefore the user should deselect the patches in the Mesh Parts panel ... and apply the changes.
Also, I am new to openfoam, and I am trying to do the very thing you are doing. Would a cyclic boundary work for this purpose just as well?
manderson010 is offline   Reply With Quote

Old   July 6, 2012, 11:17
Default
  #3
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
No, the boundaries are deselected :-(
And also unfortunately no, the cyclic BC would not work because we are talking about two different meshes while cyclic BC is applicable for one mesh and two different patches (I think).

But if you find something, please let me know about it.
anon_a 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
error directMappedPatch LES and parallel Thomas Baumann OpenFOAM Running, Solving & CFD 2 April 26, 2016 08:58
directMappedPatch for LES syoon OpenFOAM Running, Solving & CFD 7 November 14, 2010 12:03
directMappedPatch in OpenFoam 1.6 olhe0002 OpenFOAM 2 April 8, 2010 13:35
altvernative to directMappedPatch olhe0002 OpenFOAM Running, Solving & CFD 0 April 4, 2010 08:22
directMappedPatch and Badly formed bounding box om3ro OpenFOAM Bugs 2 April 1, 2010 07:01


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