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

Issue setting up a case with periodic boundaries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2023, 13:06
Default Issue setting up a case with periodic boundaries
  #1
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Hello,
I am trying to setup a case with an axisymmetric injector with periodic boundaries. But I am running into an issue while trying to the assign the periodic condition to a boundary and pair it with its matching boundary. The error/warning I am getting is attached as an image. When I try to the case, it crashes immediately due to periodic boundary matching and duplicate vertices issues. I tried compressing the STL for better tolerances, healing the periodic boundaries, and also increasing the triangles my STL but neighter of these options helped.However, I was able to make the same case work with symmetry boundary conditions but that is not the physics I aiming for. Am I missing something in my case setup?

Thanks,
Sampath
PS: I tried attaching the cvg file of my case setup but it is exceeding cfd-online's attachment size limit.
Attached Images
File Type: png periodicBoundaryIssue.png (80.2 KB, 13 views)
sampy is offline   Reply With Quote

Old   February 6, 2023, 16:58
Default
  #2
Member
 
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3
angela.wu is on a distinguished road
Hello,



It seems like the areas are not matching. One option is to delete one of the periodic boundaries and copy the other face and rotate it. To do this in Studio, go to repair-->delete. Choose selected boundaries as your input method, then select the periodic boundary you want to delete, and click apply. Then go to transform --> rotate, choose the first periodic boundary to rotate. Type the correct rotation angle, and make sure to check number of copies, click apply. This will create a new periodic boundary that is equal to the first periodic boundary. All that is left is to stitch it to your geometry by doing repair--> stitch--> edges. Choose the open edges you want to stitch together.



I hope this was helpful. If you need more help, please contact support@convergecfd.com and we will be glad to take a look at the case setup.


Thanks,


Angela
__________________
__________________
Angela Wu
Research Engineer
CONVERGECFD
angela.wu is offline   Reply With Quote

Old   February 9, 2023, 12:41
Default
  #3
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Hello Angela,
Thank you for the response. Yes, copying the face and stitching with the geometry worked.


I have an additional question. I am trying to simulate injection of a low density gas into a high density one. Irrespective of my best attempts, I am running into "recovering .... because transport equations did not converge or energy extrapolations" issues. I have tried to minimize this issue by adding fixed embedding, AMR, change the solvers to precondition BICGStab and also tried lowering the cfl, cfl_mach, piso tolerances. But none of them work. Any suggestions on how to reduce these convergence issues?
Thanks,
Sampath
sampy is offline   Reply With Quote

Old   February 9, 2023, 12:49
Default
  #4
Member
 
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3
angela.wu is on a distinguished road
Hey Sampath,


Can you try the following command in your output directory where there's a converge.log file:
tail -50000f converge.log | grep -e ncyc -e % -e Total -e new -e ABORT -e ERROR -e recover -e limited -e CONVERGE


Please copy what the terminal outputs. We're trying to find what causes the recovery.


Thanks,


Angela
__________________
__________________
Angela Wu
Research Engineer
CONVERGECFD
angela.wu is offline   Reply With Quote

Old   February 9, 2023, 12:55
Default
  #5
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Angela,
Thank you for the prompt response. I attached the log from the command you shared.
-Sampath
Attached Files
File Type: zip errorLog.zip (26.2 KB, 4 views)
sampy is offline   Reply With Quote

Old   February 9, 2023, 13:18
Default
  #6
Member
 
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3
angela.wu is on a distinguished road
Can you attach your solver.in and inputs.in?
__________________
__________________
Angela Wu
Research Engineer
CONVERGECFD
angela.wu is offline   Reply With Quote

Old   February 9, 2023, 13:21
Default
  #7
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Sure, I attached the solver.in and inputs.in.
-Sampath
Attached Files
File Type: gz inpFiles.gz (6.6 KB, 6 views)
sampy is offline   Reply With Quote

Old   February 9, 2023, 13:31
Default
  #8
Member
 
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3
angela.wu is on a distinguished road
A few suggestions: use first-order upwinding and MUSCL flux schemes for momentum, global, and turbulence. Set the flux limiter to minmod. You can also try increasing max # of PISO steps to 20. I would make max_cfl_u 1. Is there a reason why dt_min is 1e-10 and the base mesh is 0.06 mm? What's the overall geometry size?
__________________
__________________
Angela Wu
Research Engineer
CONVERGECFD
angela.wu is offline   Reply With Quote

Old   February 9, 2023, 13:43
Default
  #9
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Thank you, Angela. I will try the suggested settings and will get back to you.


My domain is a few hundred microns in the x,z directions and about 10 mm in y-direction. That's why I used both fixed embedding and amr. My minimum grid size is about 7.5 um. The cell count is close to 10 MM with amr.



One quick question - would the upwinding setting affect the shock structure? I am assuming the sharpness of the shock structures would diminish. Will I be able to recover them once I switch to second order after the flow has stabilized?
Thanks,
Sampath
sampy is offline   Reply With Quote

Old   February 9, 2023, 14:27
Default
  #10
Member
 
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3
angela.wu is on a distinguished road
Try MUSCL_CVG as your flux_scheme and reconstructed central difference for the muscl_blend_factors to get a stable flow with less recoveries. Once it's stable, you can change it to muscl_blend_factors to second order upwind. And yes, I would expect the shock to be not well-defined with upwinding, but once you stabilize the flow and switch to second order, it may be better defined.
__________________
__________________
Angela Wu
Research Engineer
CONVERGECFD
angela.wu is offline   Reply With Quote

Old   February 10, 2023, 13:58
Default
  #11
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Hello Angela,


I tried re-running my cases with the suggested changes. I used MUSCL_CVG for the flux schemes with a reconstructed the central difference. This has helped to overcome the energy extrapolation issue. However, my time-steps are still quite low. I realized that cfl_d is pushing the dt to its minimum value. Any recommendations what my cfl_nu should be? It is currently at 5 and I tried lowering it to 2 but that did not help.


Thanks,
Sampath
sampy is offline   Reply With Quote

Old   February 10, 2023, 14:26
Default
  #12
Member
 
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3
angela.wu is on a distinguished road
Hey Sampath,


If your timestep is too small and it's limited by cfl_nu, you want to increase it. Try 10 or more and monitor the stability of the flow by looking at recoveries in time.out.



Angela
__________________
__________________
Angela Wu
Research Engineer
CONVERGECFD
angela.wu is offline   Reply With Quote

Old   February 10, 2023, 14:29
Default
  #13
Member
 
sampath
Join Date: Sep 2014
Posts: 36
Rep Power: 11
sampy is on a distinguished road
Thanks, Angela. I should have mentioned in my earlier response that I increased cfl_nu to 20 from the initial value of 5, but that did not help in avoiding the dt_recover. Eventually, i had to lower my cfl_u from 0.75 to 0.3 to keep it stable. It is working fine now.

-Sampath
sampy is offline   Reply With Quote

Reply

Tags
converge case setup, periodic bc


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
Issue applying periodic interface to boundaries ValorToMe STAR-CCM+ 0 October 16, 2020 07:57
Periodic Interface: Symmetry Boundaries are not matching mazhar16823 Main CFD Forum 2 August 29, 2020 17:30
[help] an Error appears when setting periodic boundaries! loveHL STAR-CCM+ 7 April 22, 2014 10:22
Help with setting up an OpenFoam case plucas CFD Freelancers 1 February 27, 2013 05:14
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 17:30.