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

createBaffles for fluent3DMeshToFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 5, 2013, 10:26
Default createBaffles for fluent3DMeshToFoam
  #1
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 117
Rep Power: 7
cfdonline2mohsen is on a distinguished road
Dear Foamers

I want to define an interior plane inside my domain for my inlet boundary condition (for using mappedVelocityFlux B.C. we need an interior patch). I searched the whole forums and found that there is no such a concept in OpenFOAM. one way is to create a cyclic baffle (createBaffles).
I've also studied all the posts regarding createBaffles and also all the tutorials in openFoam:
Code:
find $FOAM_TUTORIALS -name Allrun | xargs grep -sl createBaffles
which are:
Code:
/opt/openfoam211/tutorials/heatTransfer/buoyantSimpleFoam/circuitBoardCooling/Allrun
/opt/openfoam211/tutorials/incompressible/pimpleFoam/TJunctionFan/Allrun
/opt/openfoam211/tutorials/lagrangian/porousExplicitSourceReactingParcelFoam/filter/Allrun
/opt/openfoam211/tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/Allrun
in order to use the createBaffles utility we need to define 2 cyclic patches and a faceZone to use the following command:
Code:
createBaffles [OPTIONS] <faceZone> <(masterPatch slavePatch)>
All the tutorials use blockMeshDict and topoSetDict for this purpose.
But I generated my mesh in Gambit so I can not define the required boxes that are needed by topoSetDict.
I defined an interior plane in Gambit. then export it to OpenFOAM using fluent3DMeshToFoam. the interior plane converted to faceZone automatically. so I have a faceZone that is needed for createBaffles. I also need 2 cyclic patches too. I added them manually into my boundary
Code:
type cyclic;
nFaces 0;
startFace ???;
I don't know how to set startFace?
is there any simpler method for creating a cyclic baffle using Gambit?
can this cyclic baffle be created in Gambit and then be exported to OpenFOAM?

Any help will be appreciated.
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   October 6, 2013, 12:50
Default
  #2
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 117
Rep Power: 7
cfdonline2mohsen is on a distinguished road
I've found that if we manually add two cyclic patches with nFaces=0 into the boundary of polyMesh just like in TJunctionFan:(a cyclic baffle for fan b.c.)
Code:
    fan_half0
    {
        type            cyclic;
        nFaces          0;
        startFace       10125;
        matchTolerance  0.0001;
        neighbourPatch  fan_half1;
    }
    fan_half1
    {
        type            cyclic;
        nFaces          0;
        startFace       10125;
        matchTolerance  0.0001;
        neighbourPatch  fan_half0;
    }
It will also require blockMesh so that these two new patches can be recognoized by OpenFOAM.
I meshed my Geometry in Gambit so I don't have a blockMeshDict.

If I only add the above lines into my boundary without blockMesh , The CheckMesh Gives Error
What can I do??
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen 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
createBaffles for time-dependent problems startingWithCFD OpenFOAM 1 August 11, 2013 10:58
Error in using createBaffles lakeat OpenFOAM Bugs 22 June 14, 2010 03:31
How to find the faces for createBaffles?? basneb OpenFOAM 2 April 16, 2010 04:26


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