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

[mesh manipulation] Symmetry within SnappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By dasith0001
  • 2 Post By otaolafr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2019, 08:55
Default Symmetry within SnappyHexMesh
  #1
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Dear Community,



I am very basic user of snappyHexMesh, I am curious if in SnappyHexMesh (SHM) symmetry is possible. I am trying to generate a mesh for two identical batteries placed in a domain. A schematic picture is attached (sorry due to confidentiality I can't post the real picture).

My job is to mesh the whole domain but due to the complex geometries of the batteries I just want to mesh half of the domain and by using some tools (mergeMesh stitchMesh) or by just using some symmetric boundary conditions I could simulate the flow for the whole domain.



Thanks
Owais
Attached Images
File Type: jpg batterycase.jpg (50.2 KB, 46 views)
Owais Shabbir is offline   Reply With Quote

Old   December 20, 2021, 21:50
Default
  #2
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 107
Rep Power: 5
dasith0001 is on a distinguished road
Hi,

Probably too late now, but if anybody else is looking, you can add the symmetry boundary condition under 'refinementSurfaces' at the required boundary as,

patchInfo
{
type symmetry;
}

Dasith
mactone likes this.
dasith0001 is offline   Reply With Quote

Old   January 6, 2022, 04:47
Default
  #3
Senior Member
 
Franco
Join Date: Nov 2019
Location: Compiègne, France
Posts: 129
Rep Power: 6
otaolafr is on a distinguished road
Quote:
Originally Posted by dasith0001 View Post
Hi,

Probably too late now, but if anybody else is looking, you can add the symmetry boundary condition under 'refinementSurfaces' at the required boundary as,

patchInfo
{
type symmetry;
}

Dasith
hello Dasith,
I might be incorrect but if i remember correctly you can not use symmetry in the refimenetSurfaces in snappy as any other constraint type boundary (i.e. symmetry, symmetryPlane, cyclic, clyclicAMI).
what I do myself is create a dummy patch e.g. symm_1 with a patch type and then with createPatchDict transform it into sym_1 with a symmetry type.
like this example of createPatchDict:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pointSync false;

patches
(

		{
        name            sym_1;
        patchInfo
        {
            type            symmetry;
        }
        constructFrom patches;
        patches (symm_1);
    }
);

// ************************************************************************* //
then I run
Code:
createPatch	-overwrite
best regards,
F.
2538sukham and Lennart.H like this.
otaolafr is offline   Reply With Quote

Reply

Tags
mesh mani, 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
High nut values in random place and time krzychu111 OpenFOAM Running, Solving & CFD 0 January 9, 2019 08:42
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing peterhess OpenFOAM Meshing & Mesh Conversion 2 January 3, 2018 02:54
[snappyHexMesh] Strange SnappyHexMesh behavior at the symmetry plane ripperjack OpenFOAM Meshing & Mesh Conversion 6 March 3, 2017 13:39
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
[ICEM] Blocking and Symmetry BrolY ANSYS Meshing & Geometry 32 August 24, 2012 03:13


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