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

OpenFoam blockMesh: reference internal block interface

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

Like Tree2Likes
  • 2 Post By panpanzhong

Reply
 
LinkBack Thread Tools Display Modes
Old   July 8, 2013, 13:12
Default OpenFoam blockMesh: reference internal block interface
  #1
New Member
 
Peng Zhong
Join Date: Jun 2013
Posts: 12
Rep Power: 4
panpanzhong is on a distinguished road
Dear OpenFoam users,

I am interested in naming an internal interface so I can reference it by that name in a source code. The problem is that internal interface is not a boundary face and it is a face formed by touching interface of 2 blocks created in blockMesh. So my question is, while we can name a normal boundary face, is there a way we can name internal block interface? Thanks.

Peng,
panpanzhong is offline   Reply With Quote

Old   July 10, 2013, 05:13
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 226
Rep Power: 6
Artur is on a distinguished road
Depending on what you need it for, you could use faceZones or faceSets. Have a look at the propeller tutorial in pimpleDyMFoam folder where this approach is used for setting up an arbitrary mesh interface (AMI) for a rotating geometry.

More precisely, you should look at the topoSet dictionaries and createPatchDict.
Artur is offline   Reply With Quote

Old   July 10, 2013, 22:20
Default
  #3
New Member
 
Peng Zhong
Join Date: Jun 2013
Posts: 12
Rep Power: 4
panpanzhong is on a distinguished road
Thanks.

I figured it out. The patch type is cyclicAMI which can be defined in blockMesh as follows

side1
{
type cyclicAMI;
neighborPatch side2;
faces
(
(1 2 3 4)
);
}

side2
{
type cyclicAMI;
neighborPatch side1;
faces
(
(8 7 6 5)
);
}

where side1 and side2 are faces formed by the 2 mesh regions' interface. There orientation is opposite from each other. Vertex 1 has exact same coordinate as vertex 5, Vertex 2 has exact same coordinate as Vertex 6 ...

The initial boundary condition for side1 and side2 is:

boundaryFields
(
side1
{
type cyclicAMI;
}
side2
{
type cyclicAMI;
}
);

These boundary condition being "type cyclicAMI" will tell the solver that fielsd from side1 should progagate across side2.
Artur and crixman like this.
panpanzhong 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
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Compiling new Solver with wmake lin123 OpenFOAM 3 April 13, 2010 14:18
Icem Mesh to Foam jphandrigan OpenFOAM Mesh Utilities 4 March 9, 2010 03:58
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 18:20.