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

[cfMesh] Anisotropic refinement on box not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2023, 06:03
Default Anisotropic refinement on box not working
  #1
Member
 
Giorgio
Join Date: Mar 2023
Posts: 46
Rep Power: 3
giorgianig is on a distinguished road
Dear all,

I have prepared a very simple example showing a problem in the anisotropic mesh refinement of cfmesh.

I am meshing an arc



The left leg is at the origin of the axes.

Here is the meshDict without refinement:

Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

surfaceFile "arc.fms";

maxCellSize 0.2;

boundaryCellSize 0.2;

minCellSize 0.1;
Here is the result



which is ok.

Now say I want larger elements in the z direction, only on the left leg, here is the box refinement I use

Code:
surfaceFile "arc.fms";

maxCellSize 0.2;

boundaryCellSize 0.2;

minCellSize 0.1;


anisotropicSources
{
   Box0
   {
   type box;
   centre (0 0   4);
   lengthX 2;
   lengthY 2;
   lengthZ 3;
   scaleX 1;
   scaleY 1;
   scaleZ 3;
   }
}

Here is the result:



As you can see, the larger elements are ALSO on the right leg.

Looks like a bug to me.

Any ideas?

Thanks in advance.
giorgianig is offline   Reply With Quote

Old   June 27, 2023, 08:22
Default
  #2
Senior Member
 
Join Date: Dec 2021
Posts: 204
Rep Power: 5
Alczem is on a distinguished road
That's weird, it never has resulted in something like this for me. Have you tried smaller values for the lengthX and lengthY ?
Alczem is offline   Reply With Quote

Old   June 27, 2023, 09:06
Default
  #3
Member
 
Giorgio
Join Date: Mar 2023
Posts: 46
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
That's weird, it never has resulted in something like this for me. Have you tried smaller values for the lengthX and lengthY ?
The size of the leg is 1 x 1 x 10, that's why I use 2 for the box length in the X and Y direction.
giorgianig is offline   Reply With Quote

Old   June 27, 2023, 09:07
Default
  #4
Member
 
Giorgio
Join Date: Mar 2023
Posts: 46
Rep Power: 3
giorgianig is on a distinguished road
Quote:
Originally Posted by Alczem View Post
That's weird, it never has resulted in something like this for me. Have you tried smaller values for the lengthX and lengthY ?
Can you tell me which version of cfmesh you use?
giorgianig is offline   Reply With Quote

Reply

Tags
anisotropic refinement


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
[snappyHexMesh] snappyHexMesh sticking point natty_king OpenFOAM Meshing & Mesh Conversion 11 February 20, 2024 09:12
Free Surface Ship Flow timfranke OpenFOAM Running, Solving & CFD 322 March 3, 2021 09:04
[snappyHexMesh] Error:Unknown searchableSurface type box ulugbey OpenFOAM Meshing & Mesh Conversion 1 February 9, 2021 03:06
[snappyHexMesh] Unknown searchableSurface type box ulugbey OpenFOAM Meshing & Mesh Conversion 2 February 9, 2021 03:04
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42


All times are GMT -4. The time now is 00:29.