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

directMappedPatch and directMappedFixedInternalValue for fluid-fluid BC

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 7, 2012, 13:49
Default directMappedPatch and directMappedFixedInternalValue for fluid-fluid BC
  #1
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 6
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, 20 views)
File Type: jpg screen2.jpg (67.6 KB, 22 views)
File Type: jpg screen3.jpg (56.9 KB, 14 views)
Attached Files
File Type: zip hydroInterfaceTest.zip (21.4 KB, 13 views)
anon_a is offline   Reply With Quote

Old   July 6, 2012, 09:29
Default
  #2
New Member
 
Mike
Join Date: Jun 2012
Location: Wooster, OH
Posts: 5
Rep Power: 5
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, 10:17
Default
  #3
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 6
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
directMappedPatch for LES syoon OpenFOAM Running, Solving & CFD 7 November 14, 2010 12:03
error directMappedPatch LES and parallel Thomas Baumann OpenFOAM 1 April 12, 2010 12:12
directMappedPatch in OpenFoam 1.6 olhe0002 OpenFOAM 2 April 8, 2010 12:35
altvernative to directMappedPatch olhe0002 OpenFOAM Running, Solving & CFD 0 April 4, 2010 07:22
directMappedPatch and Badly formed bounding box om3ro OpenFOAM Bugs 2 April 1, 2010 06:01


All times are GMT -4. The time now is 13:43.