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

[snappyHexMesh] createBaffles for activePressureForceBaffleVelocity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Steve80

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2022, 05:15
Default createBaffles for activePressureForceBaffleVelocity
  #1
New Member
 
London
Join Date: Dec 2020
Posts: 10
Rep Power: 5
CBranch171 is on a distinguished road
Hi

I am try to create the necessary cyclic and wall baffles for use with activePressureForceBaffleVelocity. However, the only example I see is for openfoam 2112. I am using openfoam 10 and the createBafflesDict will not run.

Openfoam10 is expecting keywords master and slave. Where in 2112 these ave not been used. This means I cannot create 4 baffles that I require.

here is the 2112 createBafflesDict I found from tobias holzmann

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Website: |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2012;
format ascii;
class dictionary;
location "system";
object createBafflesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


internalFacesOnly true;

noFields false;

baffles
{
// Here we use the previous created faceSet to create 4 times the same
// faces which are moved to different boundary conditions
// The reason for that is that the activePressureForceBaffle needs
// a) a cyclic boundary set (master/slave)
// b) an additional wall
quadruplicateTheInternalFaces
{
type faceZone;
zoneName raptureDiscFaceZone;
patches
{
// a) Create the cyclic guys (RD = raptureDisc)
RD_master_cyclic
{
name raptureDisc_master;
type cyclic;
sampleMode nearestPatchFace;
neighbourPatch raptureDisc_slave;
sameGroup off;
patchFields
{
}
}

RD_slave_cyclic
{
name raptureDisc_slave;
type cyclic;
sampleMode nearestPatchFace;
neighbourPatch raptureDisc_master;
sameGroup off;
patchFields
{
}
}

// b) create another set of walls (will be merged in the next step)
RD_master_wall
{
name raptureDiscWall1;
type wall;
}
RD_slave_wall
{
name raptureDiscWall2;
type wall;
}

}
}
}

Is there a way of creating 4 baffles (2x (master/slave) with one faceZone as seems to be done in 2112 in openfoam 10. Currently I create the faceZone in snappyHexMesh and this works OK, I can see them created and they have faces defined. The issue is when I try to use the same faceZone twice the faces are zero in the second baffle so it appears you can't assign the faceZone to two different places
CBranch171 is offline   Reply With Quote

Old   November 10, 2023, 12:07
Default
  #2
New Member
 
Stephan
Join Date: Aug 2017
Posts: 6
Rep Power: 9
Steve80 is on a distinguished road
Hi,
I encountered the same problem. It seems that after redesign along with the non-conformal meshes, OF10+ cannot have the same face in different patches or simply duplicate them. I tried PDRMesh, but it didn’t work either.
Good news, if you create a cyclic and wall patch pair with OpenFOAM9, it can still be used in OpenFoam10 or 11 (I assume, but never testet that this holds true for the ESI version as well)
So my dirty workaround was to compile the createBaffles utility of v9 under v10/11. One only has to make a minor change in two lines and there is no need to maintain a old OpenFOAM version

Hope this helps.
Best regards
Stephan
maguirre likes this.
Steve80 is offline   Reply With Quote

Old   July 24, 2024, 11:30
Default
  #3
New Member
 
Matias Alberto Aguirre
Join Date: Mar 2023
Posts: 11
Rep Power: 3
maguirre is on a distinguished road
Quote:
Originally Posted by Steve80 View Post
Hi,
I encountered the same problem. It seems that after redesign along with the non-conformal meshes, OF10+ cannot have the same face in different patches or simply duplicate them. I tried PDRMesh, but it didn’t work either.
Good news, if you create a cyclic and wall patch pair with OpenFOAM9, it can still be used in OpenFoam10 or 11 (I assume, but never testet that this holds true for the ESI version as well)
So my dirty workaround was to compile the createBaffles utility of v9 under v10/11. One only has to make a minor change in two lines and there is no need to maintain a old OpenFOAM version

Hope this helps.
Best regards
Stephan
Hi Stephan!
This answer is quite valuable! I'm facing the same problem, and there is not much info. However, could you explain how you compile the createBaffles utility of v9 under v11? Or, in the best case, is there another solution to this problem?

I'm trying to use this BC but my result does not make much sense and I think this is because I created the cyclic patches and the wall onto difference patches.

Cheers!
Matias.
maguirre is offline   Reply With Quote

Reply

Tags
createbafflesdict, facezone, snappyhexmesh


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
Problem with createBaffles - want to make master and slave internal patches artymk4 OpenFOAM 1 May 22, 2021 05:45
CreateBaffles on open/closed models wouterremmerie OpenFOAM Post-Processing 1 June 18, 2018 05:38
Problems using createBaffles to create a 3D thermal baffle zfaraday OpenFOAM Running, Solving & CFD 10 September 6, 2017 17:07
[Commercial meshers] createBaffles for fluent3DMeshToFoam cfdonline2mohsen OpenFOAM Meshing & Mesh Conversion 2 August 14, 2015 05:02
Is there a bug when running createBaffles in parallel??? zfaraday OpenFOAM Pre-Processing 1 May 12, 2015 13:32


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