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

Converge CFD calculation fluctuation while changing base grid

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

Like Tree5Likes
  • 1 Post By s.chen8
  • 1 Post By s.chen8
  • 1 Post By MFGT
  • 1 Post By s.chen8
  • 1 Post By MFGT

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2022, 21:05
Exclamation Converge CFD calculation fluctuation while changing base grid
  #1
New Member
 
shanghua chen
Join Date: May 2018
Posts: 29
Rep Power: 7
s.chen8 is on a distinguished road
Hello all,

I met some unexpected situation while doing some IC engine cycle simulation. Remaining all the setup unchanged(including embedding strategies, combustin model, emission model, etc,.) and change the base grid size only, everything went smooth when I switch from 4mm, 3mm and 2mm. The final outputs were linear ly converging and the difference getting smaller.

However, while I tried 1.5mm as base grid size, the output was diverged and showing some different trends. The engine is a common 1.5L NA gasoline inline-4 engine, 73mm bore, running at 3000rpm WOT, 23.77% EGR with stoichimetric condition. I was using 58 threads (29 cores), 3.3 GHz.

My question is: Does it happen before while changing base grid size? OR Does it relate with computer multi-core capability? Or does it relate with AMR distribution while changing base grid size?

Thank you!
s.chen8 is offline   Reply With Quote

Old   February 16, 2022, 13:58
Default
  #2
Senior Member
 
nitesh.attal's Avatar
 
Nitesh Attal
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 113
Rep Power: 8
nitesh.attal is on a distinguished road
Quote:
Originally Posted by s.chen8 View Post
Hello all,
I met some unexpected situation while doing some IC engine cycle simulation. Remaining all the setup unchanged(including embedding strategies, combustin model, emission model, etc,.) and change the base grid size only, everything went smooth when I switch from 4mm, 3mm and 2mm. The final outputs were linear ly converging and the difference getting smaller.

However, while I tried 1.5mm as base grid size, the output was diverged and showing some different trends. The engine is a common 1.5L NA gasoline inline-4 engine, 73mm bore, running at 3000rpm WOT, 23.77% EGR with stoichimetric condition. I was using 58 threads (29 cores), 3.3 GHz.

My question is: Does it happen before while changing base grid size? OR Does it relate with computer multi-core capability? Or does it relate with AMR distribution while changing base grid size?

Thank you!

Hello,



If your engine is susceptible to Cycle-to-Cycle variability, then this is something that can be captured by the code. Slight perturbation (due to restart, number of cores, or change in random number seed) may lead to a different evolution path and hence a different result.


Few considerations below,


1) If you have parcels in the simulation, you would have to increase the number of parcels as you refine the mesh. This is because you do not want the parcels to overshadow the mass in a given cell as this will lead to incorrect momentum transfer.

2) To reduce CCV, you can use repeatable setting in the solver (1st order and low monotone tolerance)
3) If the engine exhibits CCV then you would have to run multiple cycle to really gauge the performance of the simulation, the experiments and simulations in this case should be statistically in agreement.


Thanks,
__________________
Nitesh Attal
Principal Engineer | Applications
CONVERGECFD
nitesh.attal is offline   Reply With Quote

Old   February 28, 2022, 01:44
Smile
  #3
New Member
 
shanghua chen
Join Date: May 2018
Posts: 29
Rep Power: 7
s.chen8 is on a distinguished road
Hello Nitesh,


Thank you very much for your reply.

Actually the model is running in one cycle instead of multiple consecutive cycles. In this way CCV is not considered in this case.

My question is still the same: without changing anything except the base grid size, the final result of base-grid 1.5mm is divergent from base-grid 2mm (besides the max pressure, the max APHR, the entire combustion events have been enhanced unexpectedly compared with 2mm, 3mm, 4mm).

the max embedding level in this model is the sphere embedding which applied around spark-plug: level 5 with 2mm embedding radius and level 4 with 4mm embedding radius. What's more, a level 3 AMR embedding of velocity and temperature is also applied inside cylinder during combustion happening (temperature embedding from -17.4 to 140, velocity embedding permenant).

I notice that there was a paper issued by Converge:
'Modeling Turbulent Combustion Using a RANS Model, Detailed Chemistry, and Adaptive Mesh Refinement' (SAE 2014-01-1116). This paper indicated that while using RANS model, the smallest scale of element should be no less than 0.1mm. So, Does it relate to RANS because of the unappropriate small element?


Please check out the attachment file, which is a snip picture of PV diagram. As observed, the base-grid=1.5mm pressure trace is showing a faster combustion (a shorter combustion duration although a slightly lower max pressure than the 2mm ones) than any other case .

Thank you and all the best.

Quote:
Originally Posted by nitesh.attal View Post
Hello,



If your engine is susceptible to Cycle-to-Cycle variability, then this is something that can be captured by the code. Slight perturbation (due to restart, number of cores, or change in random number seed) may lead to a different evolution path and hence a different result.


Few considerations below,


1) If you have parcels in the simulation, you would have to increase the number of parcels as you refine the mesh. This is because you do not want the parcels to overshadow the mass in a given cell as this will lead to incorrect momentum transfer.

2) To reduce CCV, you can use repeatable setting in the solver (1st order and low monotone tolerance)
3) If the engine exhibits CCV then you would have to run multiple cycle to really gauge the performance of the simulation, the experiments and simulations in this case should be statistically in agreement.


Thanks,
Attached Images
File Type: jpg PV diagram(4mm,3mm,2mm,1mm).JPG (67.7 KB, 30 views)
s.chen8 is offline   Reply With Quote

Old   March 1, 2022, 09:08
Default
  #4
Senior Member
 
nitesh.attal's Avatar
 
Nitesh Attal
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 113
Rep Power: 8
nitesh.attal is on a distinguished road
Quote:
Originally Posted by s.chen8 View Post
Hello Nitesh,


Thank you very much for your reply.

Actually the model is running in one cycle instead of multiple consecutive cycles. In this way CCV is not considered in this case.

My question is still the same: without changing anything except the base grid size, the final result of base-grid 1.5mm is divergent from base-grid 2mm (besides the max pressure, the max APHR, the entire combustion events have been enhanced unexpectedly compared with 2mm, 3mm, 4mm).

the max embedding level in this model is the sphere embedding which applied around spark-plug: level 5 with 2mm embedding radius and level 4 with 4mm embedding radius. What's more, a level 3 AMR embedding of velocity and temperature is also applied inside cylinder during combustion happening (temperature embedding from -17.4 to 140, velocity embedding permenant).

I notice that there was a paper issued by Converge:
'Modeling Turbulent Combustion Using a RANS Model, Detailed Chemistry, and Adaptive Mesh Refinement' (SAE 2014-01-1116). This paper indicated that while using RANS model, the smallest scale of element should be no less than 0.1mm. So, Does it relate to RANS because of the unappropriate small element?


Please check out the attachment file, which is a snip picture of PV diagram. As observed, the base-grid=1.5mm pressure trace is showing a faster combustion (a shorter combustion duration although a slightly lower max pressure than the 2mm ones) than any other case .

Thank you and all the best.

Hi,



What you are showing is the effect of grid resolution on your simulation. Looks like the simulation approaches grid convergence at 2mm base grid as these results are very similar to 1.5mm base grid. (assuming some CCV, so you will have to run multiple cycles to really tell).
Please take a look at length scale reported in turbulence.out (or region specific) and compare that to the grid resolution you have to see if you are indeed resolving all the scales.


Thanks,
__________________
Nitesh Attal
Principal Engineer | Applications
CONVERGECFD
nitesh.attal is offline   Reply With Quote

Old   March 2, 2022, 02:38
Default
  #5
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 264
Rep Power: 10
MFGT is on a distinguished road
Quote:
Originally Posted by s.chen8 View Post
The engine is a common 1.5L NA gasoline inline-4 engine, 73mm bore, running at 3000rpm WOT, 23.77% EGR with stoichimetric condition. I was using 58 threads (29 cores), 3.3 GHz.
just two thoughts from my side:


a) 23.77% EGR is a lot, what combustion model do you use? ECFM, G-Equation or SAGE? If SAGE, what mechanism?


b) 58 threads on 29 cores, have you tried running without HyperThreading?
MFGT is offline   Reply With Quote

Old   March 2, 2022, 21:27
Default
  #6
New Member
 
shanghua chen
Join Date: May 2018
Posts: 29
Rep Power: 7
s.chen8 is on a distinguished road
Hello Tobias,

Thanks for the interest.

Actually 23.77% EGR is a lot for IC engine but not the limit of Nowadays. This engine is in production already. I am running the model with SAGE, and mechanism from Prof. Ming Jia.

I have not try running without hyperthread yet since ddl is approaching. It is pretty much sure that the calculating speed will be definitely slower without hyperthread.


Quote:
Originally Posted by MFGT View Post
just two thoughts from my side:


a) 23.77% EGR is a lot, what combustion model do you use? ECFM, G-Equation or SAGE? If SAGE, what mechanism?


b) 58 threads on 29 cores, have you tried running without HyperThreading?
MFGT likes this.
s.chen8 is offline   Reply With Quote

Old   March 3, 2022, 02:31
Default
  #7
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 264
Rep Power: 10
MFGT is on a distinguished road
Hi,

a) sure thats not the limit, but I am asking since my experience was that the standard Jia PRF mechanism (48 species, 152 reactions) from the example cases failed with EGR rates higher than ~10%.
In this cases i switched to ECFM with tabulated laminar flame speeds of a more detailed mechanism with 335 species and 1610 reactions.


b) I am running my simulations on a 2x16 Dual CPU server, without HT enabled. I didnt test it with 64threads, but allways thought that it wouldn't be beneficial.
MFGT is offline   Reply With Quote

Old   March 3, 2022, 22:48
Default
  #8
New Member
 
shanghua chen
Join Date: May 2018
Posts: 29
Rep Power: 7
s.chen8 is on a distinguished road
Hi Tobias,

Thanks for the reply.

I wonder the reference about stating the EGR limit of Jia PRF mechanism since I have not met any trouble of converging during calculation, including any sign of recovering.

Also, I double checked the SAE paper 2013-01-1098 'Gasoline Combustion Modeling of Direct and Port-Fuel Injected Engines using a Reduced Chemical
Mechanism'. The results showed that Jia's might not suitable for low pressure combustion but no mention of EGR or dilution.

The original paper which issued Jia's mechanism: 'Enhancement on a Skeletal Kinetic Model for Primary Reference Fuel Oxidation by Using a Semidecoupling Methodology', did not mention EGR limit either.


I may try to disable Hyperthread and run it for trial testing. It is interesting that for Intel I-series CPU(such as I9,I7), the core-speed could be higher than Intel Xeon series during multi-core running condition. The only problem is that I-series motherboard does not support dual CPU setup as same as Xeon series.



Quote:
Originally Posted by MFGT View Post
Hi,

a) sure thats not the limit, but I am asking since my experience was that the standard Jia PRF mechanism (48 species, 152 reactions) from the example cases failed with EGR rates higher than ~10%.
In this cases i switched to ECFM with tabulated laminar flame speeds of a more detailed mechanism with 335 species and 1610 reactions.


b) I am running my simulations on a 2x16 Dual CPU server, without HT enabled. I didnt test it with 64threads, but allways thought that it wouldn't be beneficial.
MFGT likes this.
s.chen8 is offline   Reply With Quote

Old   March 9, 2022, 08:06
Default
  #9
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 264
Rep Power: 10
MFGT is on a distinguished road
Quote:
Originally Posted by s.chen8 View Post
I wonder the reference about stating the EGR limit of Jia PRF mechanism since I have not met any trouble of converging during calculation, including any sign of recovering.
I might be wrong, so I will do a test for loads about 12bar BMEP
MFGT is offline   Reply With Quote

Old   March 10, 2022, 02:26
Default
  #10
New Member
 
shanghua chen
Join Date: May 2018
Posts: 29
Rep Power: 7
s.chen8 is on a distinguished road
Hello Tobias,

Please let me know if you got any update.

I contacted Prof. Ming Jia personally about this EGR limit question. He replied that his mechanism had not considered heavy EGR condition yet, back to 2013 when he published this mechanism. What he suggested is that, since the mechanism may not perform precisely under heavy EGR condition, it is better to calibrate absolute tolerance and relative tolerance setup in SAGE based on some given experimental data.

Hope this helpful.
Cheers.


Quote:
Originally Posted by MFGT View Post
I might be wrong, so I will do a test for loads about 12bar BMEP
s.chen8 is offline   Reply With Quote

Old   March 10, 2022, 05:35
Default
  #11
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 264
Rep Power: 10
MFGT is on a distinguished road
Hey,



well, I am surprised my testcase went well.
20% external EGR burned with passive pre-chamber and default Jia mechanism, just had to adjust the spark timing a bit.


Maybe (but I dont think so) something has been improved from 2.4 to 3.0 because I definetly have old simulations that burned very poorly with 20% EGR.
s.chen8 likes this.
MFGT is offline   Reply With Quote

Old   March 10, 2022, 20:26
Default
  #12
New Member
 
shanghua chen
Join Date: May 2018
Posts: 29
Rep Power: 7
s.chen8 is on a distinguished road
Hello Tobias,

20% EGR with passive pre-chamber... that's amazing...

How much ignition energy did you apply on the spark? I was doing active PC with 40mJ, lambda=1.6 with no EGR and combustion went fine. I have not try any EGR test on either passive or active PC before, since Mahle's paper emphasized how EGR could easily ruin PC performance (especially passive ones).

Let me know if you want to share some info. We should consider open another thread about pre-chamber.

Cheers.

Quote:
Originally Posted by MFGT View Post
Hey,



well, I am surprised my testcase went well.
20% external EGR burned with passive pre-chamber and default Jia mechanism, just had to adjust the spark timing a bit.


Maybe (but I dont think so) something has been improved from 2.4 to 3.0 because I definetly have old simulations that burned very poorly with 20% EGR.
MFGT likes this.
s.chen8 is offline   Reply With Quote

Old   March 11, 2022, 03:16
Default
  #13
Senior Member
 
Tobias
Join Date: May 2016
Location: Germany
Posts: 264
Rep Power: 10
MFGT is on a distinguished road
I kept the original two times 30mJ.


For active Pre-Chamber I also had a similar loadpoint, Lambda 1.6. Here I also went up to Lambda > 2 and it worked quite well.


Maybe we should open a Pre-Chamber thread
s.chen8 likes this.
MFGT is offline   Reply With Quote

Reply

Tags
base grid size, converge cfd, fluctuation, fluctuations

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
On the CFD market and trends sbaffini Main CFD Forum 14 June 13, 2017 11:48
Is the grid generation process in CONVERGE really automatic? ywang89 CONVERGE 0 January 13, 2016 12:07
exists minimum grid size for Ansys calculation? sooh2121 ANSYS 2 March 7, 2012 10:34
conjugateHeatFoam, grid spacing and gradient calculation benk OpenFOAM 1 May 5, 2010 16:06
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 05:59


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