CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [cfMesh] Create baffles with cfMesh (https://www.cfd-online.com/Forums/openfoam-community-contributions/218399-create-baffles-cfmesh.html)

Swift June 19, 2019 10:12

Create baffles with cfMesh
 
Dear Foamers,

Is it possible to create baffles with cfMesh?

I am trying to mesh zero thickness walls within the domain. Using surfaceMeshRefinement, it is possible to refine around the wall, but when I check the mesh with checkMesh, the wall has zero faces. I have tried playing with 'keepCellsIntersectingBoundary' and 'keepCellsIntersectingPatchs', but in all cases I get zero faces on the wall patch.

In these slides, it seems that it is possible to create a baffle (see slide 4), but I can'e work it out.

My meshDict is as follows:

Code:


/*--------------------------------*- C++ -*----------------------------------*\
|    _ _ _ _    |                                                              |
| //        \\ | Creative Fields cfMeshPRO                                  |
| | cfMeshPRO | |                                                              |
| \\ _ _ _ _ // | Version: 0.0.99                                            |
|              | Web: www.c-fields.com e-mail: support@c-fields.com          |
\*---------------------------------------------------------------------------*/
FoamFile
{
version        2;
format        ascii;
class        dictionary;
location        "system";
object        meshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
maxCellSize        0.025;
surfaceFile        "newGeo.fms";


surfaceMeshRefinement
{
   
    baffle1
    {
        surfaceFile "constant/triSurface/baffle1.stl";
        additionalRefinementLevels 1;
       
    }

   
}

edgeMeshRefinement
{
    baffle1
    {
        edgeFile "baffle1.eMesh"
        additionalRefinementLevels 1;
       
    }
   
}

objectRefinements
{

refinement_for_surface
    {
        //cellSize        20.1;
        p0        ( -0 0 0.6 );
        p1        ( -0 0 0.7 );
        radius0        0.8;
        radius1        0.8;
        additionalRefinementLevels 1;
        type        cone;
    }
/
}
//keepCellsIntersectingBoundary 1;

keepCellsIntersectingPatchs
{
    baffle1
    {
        keepCells 1;
       
    }
   
   
}

workflowControls
{
}

// ************************************************************************* //

Thanks for the help,
Thomas

Krao August 6, 2019 05:55

Hi Thomas,

Did you manage to figure out creating baffles? It would be interesting to know if you have succeeded. Thank you

Krao

Swift August 8, 2019 03:28

Hi Krao,

Sadly not...

Thomas

BenGher May 22, 2020 11:34

Hi,

Landed on this post while looking for how to do baffles in cfmesh, and then found out they had an example on their website using sails.

In case someone else lands on this post seeking the same answer, here is the link to the downloadable examples (then click on the sails picture to get a .zip):

https://cfmesh.com/download-examples/

Enjoy,

Ben

rsa September 8, 2023 03:24

Hi,


I know it is way long since this subject is posted but the link is not working anymore. Would it be possible for you to share the files?


Tahnks.

BenGher September 8, 2023 08:00

Hi,

Unfortunately I changed job since and I don't think those were in the files I took with me. I will have a look, but if I don't come back to you it means I didn't find them.

You might want to send them (the cfmesh team) a mail to check if they are still available somewhere.

Best of luck!


All times are GMT -4. The time now is 22:44.