CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] with anisotropicSources: "grading" / "scaling" does not work properly?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2016, 05:21
Default with anisotropicSources: "grading" / "scaling" does not work properly?
  #1
New Member
 
Join Date: Nov 2014
Posts: 11
Rep Power: 11
bizzy is on a distinguished road
Hello,

as snappyHexMesh can not create proper boundary layers for my geometry, I try to use cfMesh and it makes very promising results. Unfortunately I could not find a way to add grading to my mesh. Either I do not understand the user guide correctly or there is a bug. With the following Dict, I try to implement some sort of grading from X=8 to x=16:

Code:
FoamFile
{
    version   2.0;
    format    ascii;
    class     dictionary;
    location  "system";
    object    meshDict;
}

surfaceFile "Vessel_Tank.ftr";

maxCellSize 1;

anisotropicSources
{
    planeFWD
    {
    type plane;
    normal (1 0 0);
    origin (8 0 0);
    scalingDistance 8;
    scalingFactor 0.5;
    }
}


surfaceMeshRefinement
{
    hull
    {
        additionalRefinementLevels  7;
        surfaceFile "Vessel_Bare.stl";
        refinementThickness 0.05;
    }
}

     

boundaryLayers
{
    patchBoundaryLayers
    {
        "hull.*"
        {
            nLayers 3;
            thicknessRatio 1.5;
            maxFirstLayerThickness 0.001;
        }
    }
}
What I get as a result is some sort of refinement, but without any grading (see screenshot). I also get the same reulst with a Box as anisotropicSource. Am I missing something or is this a bug?
Attached Images
File Type: png gradingproblem.png (59.8 KB, 218 views)
bizzy is offline   Reply With Quote

Old   December 6, 2016, 15:11
Default Anisotropic meshing
  #2
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hello,

It is not a bug. Your anisotropic settings mean that within 8 meters from the plane the cells shall be compressed to 50% of their original size. Therefore, the size of the cells in the x direction is 50% smaller than in other directions. The cells are compressed uniformly.

Quote:
Originally Posted by bizzy View Post
Hello,

as snappyHexMesh can not create proper boundary layers for my geometry, I try to use cfMesh and it makes very promising results. Unfortunately I could not find a way to add grading to my mesh. Either I do not understand the user guide correctly or there is a bug. With the following Dict, I try to implement some sort of grading from X=8 to x=16:

Code:
FoamFile
{
    version   2.0;
    format    ascii;
    class     dictionary;
    location  "system";
    object    meshDict;
}

surfaceFile "Vessel_Tank.ftr";

maxCellSize 1;

anisotropicSources
{
    planeFWD
    {
    type plane;
    normal (1 0 0);
    origin (8 0 0);
    scalingDistance 8;
    scalingFactor 0.5;
    }
}


surfaceMeshRefinement
{
    hull
    {
        additionalRefinementLevels  7;
        surfaceFile "Vessel_Bare.stl";
        refinementThickness 0.05;
    }
}

     

boundaryLayers
{
    patchBoundaryLayers
    {
        "hull.*"
        {
            nLayers 3;
            thicknessRatio 1.5;
            maxFirstLayerThickness 0.001;
        }
    }
}
What I get as a result is some sort of refinement, but without any grading (see screenshot). I also get the same reulst with a Box as anisotropicSource. Am I missing something or is this a bug?
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   October 29, 2020, 07:41
Default Anisotropic mesh refinement close to free surface
  #3
New Member
 
Massimiliano Tarrini
Join Date: Jul 2009
Location: PISA Italy
Posts: 22
Rep Power: 16
massimiliano.tarrini is on a distinguished road
Send a message via Skype™ to massimiliano.tarrini
Dear Mr Juretic,
I'm using cfMesh embedded in OpenFOAM 2006. I actually believe you did a great job.

I am trying to generate grids on hull and as you probably know anisostropic refinement is needed in order to well capture wave elevation.
I tried different combination starting from shiptutorial but i'm not getting the a good result using anisotropic sources [box].

On the other side it seems that when I use localRefinement, the anisotropic mesh doesn't penetrate in the whole domain.
I can share you privately my file if you may like to give me a short hint...
kind regards
max
massimiliano.tarrini is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Global scaling - grid independency testing Jenny CFX 6 December 10, 2013 03:52
Could SU2_V2.0.2 work properly with continuous_adjoint.py script in parallel mode? Tommy Chen SU2 Shape Design 1 April 18, 2013 13:06
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
Can 'shock waves' occur in viscous fluid flows? diaw Main CFD Forum 104 February 16, 2006 05:44


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