|
[Sponsors] |
[snappyHexMesh] createBaffles for activePressureForceBaffleVelocity |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
London
Join Date: Dec 2020
Posts: 10
Rep Power: 5 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Stephan
Join Date: Aug 2017
Posts: 6
Rep Power: 9 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Matias Alberto Aguirre
Join Date: Mar 2023
Posts: 11
Rep Power: 3 ![]() |
Quote:
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. |
||
![]() |
![]() |
![]() |
Tags |
createbafflesdict, facezone, snappyhexmesh |
|
|
![]() |
||||
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 |