Grid#

class ansys.chemkin.core.grid.Grid#

Grid quality control parameters for Chemkin 1-D steady-state reactor models.

Overview#

set_numb_grid_points

Set the number of uniform grid points at the start of simulation.

set_max_grid_points

Set the max number of grid points allowed during the solution refinement.

set_reaction_zone_center

Set the coordinate value of the reaction/mixing zone center.

set_reaction_zone_width

Set the width of the reaction/mixing.

set_max_adaptive_points

Set the max number of adaptive grid points allowed.

set_solution_quality

Set the maximum gradient and curvature ratios.

set_grid_profile

Specify the grid point coordinates of the initial grid points.

start_position

Get the coordinate value of the first grid point.

end_position

Get the coordinate value of the last grid point.

Import detail#

from ansys.chemkin.core.grid import Grid

Property detail#

property Grid.start_position: float#

Get the coordinate value of the first grid point.

property Grid.end_position: float#

Get the coordinate value of the last grid point.

Attribute detail#

Grid.max_numb_grid_points = 250#
Grid.max_numb_adapt_points = 10#
Grid.gradient = 0.1#
Grid.curvature = 0.5#
Grid.numb_grid_points = 6#
Grid.starting_x = 0.0#
Grid.ending_x = 0.0#
Grid.reaction_zone_center_x = 0.0#
Grid.reaction_zone_width = 0.0#
Grid.grid_profile = []#
Grid.numb_grid_profile = 0#

Method detail#

Grid.set_numb_grid_points(numb_points: int)#

Set the number of uniform grid points at the start of simulation.

Grid.set_max_grid_points(numb_points: int)#

Set the max number of grid points allowed during the solution refinement.

Grid.set_reaction_zone_center(position: float)#

Set the coordinate value of the reaction/mixing zone center.

Grid.set_reaction_zone_width(size: float)#

Set the width of the reaction/mixing.

Grid.set_max_adaptive_points(numb_points: int)#

Set the max number of adaptive grid points allowed.

Grid.set_solution_quality(gradient: float = 0.1, curvature: float = 0.5)#

Set the maximum gradient and curvature ratios.

Grid.set_grid_profile(mesh: numpy.typing.NDArray[numpy.double]) int#

Specify the grid point coordinates of the initial grid points.