how to change the max grid points in FreeFlame?

188 views
Skip to first unread message

y xue

unread,
Feb 16, 2024, 11:36:08 AM2/16/24
to Cantera Users' Group
I just want to set a larger grid point number in my FreeFlame simulation. I find the function  set_max_grid_points(domainnpmax) in Sim1D but I can't directly change in FreeFlame. 

If I select the f = ct.FreeFlame(gas, width=props['width']) as the domian, KeyError: 'Domain named "<cantera.onedim.FreeFlame object at 0x00000273CB73B8C0>" not found.' 

How can I get the right domian in FreeFlame and what's the right way to change the max grid points in FreeFlame?

Z. Weng

unread,
Feb 16, 2024, 11:48:46 AM2/16/24
to Cantera Users' Group
Hi,

The FreeFlame object contains three domains by default, i.e. inlet, outlet and flame.

f.set_max_grid_points(f.flame, npmax) or f.max_grid_points(npmax) should work. The current maximum grid points can be printed via f.max_grid_points.

y xue

unread,
Feb 16, 2024, 12:51:07 PM2/16/24
to Cantera Users' Group
The function f.set_max_grid_points(f.flame, npmax) works~Thank you very much~
Reply all
Reply to author
Forward
0 new messages