SolutionData#

class ansys.chemkin.core.chemkin_solution_utility.SolutionData(ckcsv: str | pathlib.Path)#

Manage the imported solution data for the Chemkin solution utility.

Overview#

call_reader

Read the solution data from the CSV file.

save_current_soln_group

Convert the collected rows into a wide-format DataFrame.

list_solution_groups

List all solution groups for the Chemkin solution utility.

list_solution_variables

List all solution variables for the specified solution group.

get_solution_groups

Return a list of all solution group names.

get_solution_variables

Return a list of all solution variables for the specified group.

get_solution_group_data

Return the raw data for the specified solution group.

get_solution_group_object

Return the SolutionGroup object for the specified solution group.

get_solution_array

Return the array for the specified variable in the given solution group.

get_number_of_points

Return the number of data points in solution data.

get_gas_species_info

Return the number of gas species and their symbols in solution data.

get_number_of_gas_species

Return the number of gas species in the solution data.

get_gas_species_symbols

Return the list of gas species symbols in the solution data.

validate_group

Validate if the specified solution group exists and has data.

Import detail#

from ansys.chemkin.core.chemkin_solution_utility import SolutionData

Method detail#

SolutionData.call_reader(csv_file: str | pathlib.Path)#

Read the solution data from the CSV file.

SolutionData.save_current_soln_group()#

Convert the collected rows into a wide-format DataFrame.

SolutionData.list_solution_groups()#

List all solution groups for the Chemkin solution utility.

SolutionData.list_solution_variables(group_name: str)#

List all solution variables for the specified solution group.

SolutionData.get_solution_groups() → list[str]#

Return a list of all solution group names.

SolutionData.get_solution_variables(group_name: str) → list[str]#

Return a list of all solution variables for the specified group.

SolutionData.get_solution_group_data(group_name: str) → pandas.DataFrame | None#

Return the raw data for the specified solution group.

SolutionData.get_solution_group_object(group_name: str) → SolutionGroup | None#

Return the SolutionGroup object for the specified solution group.

SolutionData.get_solution_array(group_name: str, var_name: str) → pandas.Series[float] | None#

Return the array for the specified variable in the given solution group.

SolutionData.get_number_of_points() → int#

Return the number of data points in solution data.

SolutionData.get_gas_species_info() → tuple[int, list[str]]#

Return the number of gas species and their symbols in solution data.

SolutionData.get_number_of_gas_species() → int#

Return the number of gas species in the solution data.

SolutionData.get_gas_species_symbols() → list[str]#

Return the list of gas species symbols in the solution data.

SolutionData.validate_group(group_name: str) → bool#

Validate if the specified solution group exists and has data.