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

Functions on internal patches

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

Like Tree1Likes
  • 1 Post By gl_sb

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2012, 10:24
Default Functions on internal patches
  #1
New Member
 
Join Date: Aug 2012
Posts: 1
Rep Power: 0
gl_sb is on a distinguished road
Hello,

I have a problem with OF and I would be very glad, if someone can help me!

Inside my fluid domain I have an "internal patch" on which I want to get some Information about the flow field and the mesh. The "internal patch" was already meshed in Ansa so after the export from Ansa to OF 2.0 I get a faceZones entry in the polyMesh-folder.
Now I need the following values of every single face of the "internal patch":
- Velocity
- Area
- Coordinates of the face centres

First I tried to get these values through the following function definition in the controlDict:

Values_internal_patch
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl timeStep;
outputInterval 1;
log true;
valueOutput true;
source faceZone;
sourceName internal_patch;
operation sum;
fields
(
phi
U
);
}

I did't get the U values because for faceZones it is not possible to access VolFields. For this we need a patch as source. So I continued convert the faceZone "internal_patch" into two patches with cyclic boundary conditions via the createBaffle command:

createBaffles internal_patch '(internal_patch_1 internal_patch2)'

I got the following result in my boundary file:

internal_patch_1
{
type cyclic;
nFaces 1779;
startFace 6094853;
matchTolerance 0.0001;
neighbourPatch internal_patch_2;
}
internal_patch_2
{
type cyclic;
nFaces 1779;
startFace 6096632;
matchTolerance 0.0001;
neighbourPatch internal_patch_1;
}

In all the variable file in the 0 folder I added the following lines:

internal_patch_1
{
type cyclic;
}
internal_patch_2
{
type cyclic;
}

And defined a new function within my controlDict:

Values_internal_patch_1
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl timeStep;
outputInterval 1;
log true;
valueOutput true;
source patch;
sourceName internal_patch_1;
operation sum;
fields
(
phi
U
);
}

Now I get phi and U, but only 889 values are printed to the output file and not 1779. Note that the patch consits of 1779 single faces (1414 Tias and 365 Quads). When I use the function in connection with for example the "Inlet" boundary, everything is fine and I get the same number of entries in the output files for every variable like faces forming the "Inlet".

Has anybody an idea? Thanks for every hint
samiam1000 likes this.
gl_sb is offline   Reply With Quote

Old   March 8, 2013, 04:10
Default Create internal mesh patches
  #2
New Member
 
Kentin cal
Join Date: May 2012
Posts: 11
Rep Power: 4
Kentin is on a distinguished road
Hi !

I have been very interested in this old post :

Functions on internal patches

I am currently facing the same problem, did you figure out your problem?

Thanks in advance,

Kentin
Kentin 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
How to handle internal patches for p,T,U monsoon OpenFOAM 16 March 22, 2013 16:00
Remove internal patch(es) SD@TUB OpenFOAM Meshing & Mesh Conversion 15 May 17, 2012 15:01
Internal patches openFoam Aerospace OpenFOAM 1 November 6, 2010 06:30
Internal patches with fluentMeshToFoam sega OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 October 29, 2009 09:11
internal faces between patches created with snappyHexMesh romant OpenFOAM Mesh Utilities 0 August 17, 2009 08:40


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