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

[snappyHexMesh] Put patch in internal mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cutmountain

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2019, 06:13
Default Put patch in internal mesh
  #1
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
Hello everybody,

I am having problems with mergeMeshes.

For my studies, I need to make a lot of simualtions of a bluff body with different angles of attack so the idea was:
- mesh the wind tunnel with a spheric hole (with snappy)
- mesh a sphere with the bluff body in it (with snappy)
- rotate the mesh of the sphere of the angle that I need
- merge the meshes and running the simulation

That idea was for avoiding to mesh each time for each angle of attack.

The problem is that when I am going to merge the Meshes in the boundary files there is the pathc of the sphere (with a non zero number of faces), but I don't want it because it is supposed to be part of the internal mesh.

How can I add this patch to the internal mesh?

Thanks in advance to everybody,

Edoardo.
cutmountain is offline   Reply With Quote

Old   April 26, 2019, 06:20
Default
  #2
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
I have tried with mergeMeshes and then with stitchMeshes but when I do the stitch mesh -perfect gives me an error about the merging tolerances; if I use -partial it remains stuck and don't do anything.

The things is that the two patches don't fit perfectly because they have small differences in face numbers for the two different way of meshing those surfaces.

So my question is: is the one that I had described above in the previous post the right approach or not? Maybe is possible to separate the two meshes after had meshed all together because in that way the surfaces will be identically?

Hope that somebody could help me.

Edoardo.
cutmountain is offline   Reply With Quote

Old   April 30, 2019, 03:38
Default
  #3
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

You can try and define the patch that is common as cyclicAMI with transformation noOrdering

Hope this helps

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   May 2, 2019, 07:14
Default
  #4
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
I'll try in that way and I will let you know.

Thanks for replying.
cutmountain is offline   Reply With Quote

Old   May 3, 2019, 09:14
Default
  #5
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
Hi Antimony,

thanks for your suggestion, it worked!!

Edoardo.
Antimony likes this.
cutmountain is offline   Reply With Quote

Old   May 22, 2019, 10:59
Default Problem AMI
  #6
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
Hello everybody,

I am working on a simplyfied test case for a moving flap.

I have a stationary zone and a rotating zone and all of the mesh and the simulation seems to works well.

The problem it that watching at the tke seems like that the two zones (stationary and rotating) are not talking each others.

Looking at the velocity fields, epsilon and nut and p the two zones are talking each others but not tke.

Is something that is needed to be activated or something that I am missing?

I add two screen of two different time step on a plane cutting the rotating part for k and U and my BCs for k.


Thanks in advance as always,

Edoardo.
Attached Images
File Type: jpg U1.jpg (33.1 KB, 11 views)
File Type: jpg U2.jpg (29.9 KB, 5 views)
File Type: jpg k1.jpg (24.8 KB, 4 views)
File Type: jpg k2.jpg (24.7 KB, 3 views)
Attached Files
File Type: txt k.txt (1.3 KB, 0 views)
cutmountain is offline   Reply With Quote

Old   May 22, 2019, 11:04
Default
  #7
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0.01;

boundaryField
{
    "rotor|stator"
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    inlet 
    {
        type            fixedValue;
        value           uniform 0.01;
    }

    outlet
    {
        type            zeroGradient;
    }

    "AMI.*"
    {
        type            cyclicAMI;
        value           $internalField;
    }
    defaultFaces
    {
        type            slip;
    }

}

// ************************************************************************* //
cutmountain is offline   Reply With Quote

Old   May 22, 2019, 11:13
Default
  #8
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
sorry I put my last two messages into the wrong thread.

I opened a new thread.
cutmountain is offline   Reply With Quote

Reply

Tags
mergemeshes, openfoam, 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
steadyUniversalMRFFoam Tutorial fails in MixingPlane HenrikJohansson OpenFOAM Bugs 0 February 14, 2019 05:48
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


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