CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

cyclicAMI BC for Dynamic Mesh Refinement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2020, 03:40
Default cyclicAMI BC for Dynamic Mesh Refinement
  #1
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
Hi Foamers,
I hope everything is going well for you in this pandemic time. My question is about using CyclicAMI boundary condition along with dynamic mesh refinement tool. As we know, dynamic mesh refinement works based on a specified field and some refinement levels. This level can be saved in polymesh directory of every timestep by cellLevel files.

In this regard, the attached image shows that my moving object, which the refinement is done based on that, is close to my periodic surface. However, we don't have the refinement on the other side. So can you please tell me whether there is any specific configuration in DynamicMeshDict for cyclicAMI BC?
Thank you for your time in advance.
Mohammad
Attached Images
File Type: png file.png (138.1 KB, 48 views)
mostanad is online now   Reply With Quote

Old   December 3, 2020, 14:21
Default
  #2
New Member
 
Tamas's Avatar
 
Tamas Egeresi
Join Date: Nov 2014
Location: Budapest, Hungary
Posts: 14
Rep Power: 12
Tamas is on a distinguished road
I guess, it is not possible to use dynamic mesh refinement on cyclicAMI interfaces. The cell to cell addressing is done at the beginning of the simulation, hence changing the mesh on AMI interfaces during the run is not acceptable. Therefore, the simulation will crash, in my opinion.



Quote:
Originally Posted by mostanad View Post
Hi Foamers,
I hope everything is going well for you in this pandemic time. My question is about using CyclicAMI boundary condition along with dynamic mesh refinement tool. As we know, dynamic mesh refinement works based on a specified field and some refinement levels. This level can be saved in polymesh directory of every timestep by cellLevel files.

In this regard, the attached image shows that my moving object, which the refinement is done based on that, is close to my periodic surface. However, we don't have the refinement on the other side. So can you please tell me whether there is any specific configuration in DynamicMeshDict for cyclicAMI BC?
Thank you for your time in advance.
Mohammad
__________________
Tamas Egeresi
Senior Hydraulics Engineer

CFD Egeresi
www.cfdegeresi.freecluster.eu
Tamas is offline   Reply With Quote

Old   December 4, 2020, 00:06
Default
  #3
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
I think you are wrong Tamas.
I am using dynamic mesh refinement with cyclicAMI without any problem. The issue is just with using the periodic cellLevel values at periodic sides. I believe cyclicAMI, in comparison to cyclic BC, is compatible with dynamic mesh refinement since it tries to match the different refined cells in the periodic sides.
Mohammad
mostanad is online now   Reply With Quote

Old   December 4, 2020, 03:03
Default
  #4
New Member
 
Tamas's Avatar
 
Tamas Egeresi
Join Date: Nov 2014
Location: Budapest, Hungary
Posts: 14
Rep Power: 12
Tamas is on a distinguished road
Hi!


You are right, sorry for my misunderstand. As far as I remember, the refinement is not detected at the other side of the cyclic boundary condition when using cyclicAMI. Only solution for that is using normal cyclic BC then the cell faces will find their corresponding cell faces at meshing (snappyHexMesh) phase, and a 1 to 1 connection will be set. Hence the refinement is detected on both sides.
__________________
Tamas Egeresi
Senior Hydraulics Engineer

CFD Egeresi
www.cfdegeresi.freecluster.eu
Tamas is offline   Reply With Quote

Old   December 10, 2020, 01:22
Default
  #5
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
I think something else is happening. Dynamic refinement takes place based on the specified field. If we use the cyclicAMI (or even cyclic), the field value would be transferred to the other side and the refinement happens at this side as well. However, my problem is something else. I have the moving object very close to periodic side. So this field is really close to the other side so that it is not yet transferred to that side. So it does not detect cycling until it passes the periodic boundary. The solution for this problem, as I've showed in my previous post, is setting the periodic boundary condition for the cellLevel parameter as well. The refinement method detects the need for refining based on this parameter.

Regarding using cyclic or cylicAMI I still believe that we just can use cyclicAMI boundary condition for the case with dynamic refinement since it needs to match the meshes with different shapes at these periodic boundaries.
Cheers
Mohammad

Last edited by mostanad; December 10, 2020 at 03:13.
mostanad is online now   Reply With Quote

Old   October 1, 2022, 07:33
Default did you resolve that issue?
  #6
New Member
 
Che
Join Date: Jul 2019
Posts: 3
Rep Power: 7
yirenxindudu is on a distinguished road
Hi there,

I'm facing the same problem, i.e., appling cyclic boundary conditions with dynamic mesh refinement.

Best
Che
yirenxindudu is offline   Reply With Quote

Reply


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 10:12
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 16:15
[snappyHexMesh] Edge Refinement fracasce OpenFOAM Meshing & Mesh Conversion 3 December 2, 2017 14:30
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
[snappyHexMesh] problems using snappyHexMesh 2.1.0 on a supercomputer Sunxing OpenFOAM Meshing & Mesh Conversion 9 September 20, 2014 10:30


All times are GMT -4. The time now is 04:43.