ChemkinSolutionImporter#

class ansys.chemkin.core.chemkin_solution_utility.ChemkinSolutionImporter#

Post-process the regular Chemkin simulation solution.

Overview#

import_solution

Get the solution data using the Chemkin post-processor.

process_solution_data

Import the solution data from the CSV file for further analysis.

process_ckcsv

Process the CSV file containing the solution data.

get_help

Get help information from the Chemkin solution utility.

set_working_dir

Set the working directory for the Chemkin solution utility.

generate_preference_file

Generate the preference file to customize solution extraction.

set_xml_data_file

Set the XML data file for the Chemkin solution utility.

use_preference_file

Enable the use of the preference file for the Chemkin solution utility.

disable_preference_file

Disable the use of the preference file for the Chemkin solution utility.

enable_mass_fraction

Enable the use of mass fraction for the Chemkin solution utility.

disable_mass_fraction

Disable the use of mass fraction for the Chemkin solution utility.

enable_get_everything

Enable the ‘get everything’ option for the Chemkin solution utility.

disable_get_everything

Disable the ‘get everything’ option for the Chemkin solution utility.

enable_sensitivity

Enable the sensitivity option for the Chemkin solution utility.

disable_sensitivity

Disable the sensitivity option for the Chemkin solution utility.

enable_rop

Select the rate of progress option for the Chemkin solution utility.

disable_rop

Deselect the rate of progress option for the Chemkin solution utility.

validate_solution_data

Validate the imported solution data.

get_solution_groups

Get the list of available solution groups.

get_variable_labels

Get the list of variable labels for a specific solution group.

get_group_data

Get the data for a specific solution group.

get_group_object

Get the solution group object for a specific solution group.

get_solution_variable_array

Get the array of data for a specific variable within a solution group.

get_number_of_points

Get the number of solution points in the solution data.

get_number_of_gas_species

Get the number of gas species in the solution data.

get_gas_species_symbols

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

Import detail#

from ansys.chemkin.core.chemkin_solution_utility import ChemkinSolutionImporter

Attribute detail#

ChemkinSolutionImporter.ckbin#
ChemkinSolutionImporter.get_soln = ''#
ChemkinSolutionImporter.soln_transpose = ''#
ChemkinSolutionImporter.env_file = ''#
ChemkinSolutionImporter.get_soln_path = ''#
ChemkinSolutionImporter.soln_transpose_path = ''#
ChemkinSolutionImporter.get_soln_args: list[str] = []#
ChemkinSolutionImporter.work_dir_path#
ChemkinSolutionImporter.xml_data_file = 'XMLdata.zip'#
ChemkinSolutionImporter.use_mass_fraction = False#

Method detail#

ChemkinSolutionImporter.import_solution(soln_file: str | None = None)#

Get the solution data using the Chemkin post-processor.

ChemkinSolutionImporter.process_solution_data()#

Import the solution data from the CSV file for further analysis.

ChemkinSolutionImporter.process_ckcsv(ckcsv_file: str | None = None)#

Process the CSV file containing the solution data.

ChemkinSolutionImporter.get_help()#

Get help information from the Chemkin solution utility.

ChemkinSolutionImporter.set_working_dir(work_dir: str)#

Set the working directory for the Chemkin solution utility.

ChemkinSolutionImporter.generate_preference_file(soln_file: str | None = None)#

Generate the preference file to customize solution extraction.

ChemkinSolutionImporter.set_xml_data_file(xml_file: str)#

Set the XML data file for the Chemkin solution utility.

ChemkinSolutionImporter.use_preference_file(pref_file: str)#

Enable the use of the preference file for the Chemkin solution utility.

ChemkinSolutionImporter.disable_preference_file()#

Disable the use of the preference file for the Chemkin solution utility.

ChemkinSolutionImporter.enable_mass_fraction()#

Enable the use of mass fraction for the Chemkin solution utility.

ChemkinSolutionImporter.disable_mass_fraction()#

Disable the use of mass fraction for the Chemkin solution utility.

ChemkinSolutionImporter.enable_get_everything()#

Enable the ‘get everything’ option for the Chemkin solution utility.

ChemkinSolutionImporter.disable_get_everything()#

Disable the ‘get everything’ option for the Chemkin solution utility.

ChemkinSolutionImporter.enable_sensitivity()#

Enable the sensitivity option for the Chemkin solution utility.

ChemkinSolutionImporter.disable_sensitivity()#

Disable the sensitivity option for the Chemkin solution utility.

ChemkinSolutionImporter.enable_rop()#

Select the rate of progress option for the Chemkin solution utility.

ChemkinSolutionImporter.disable_rop()#

Deselect the rate of progress option for the Chemkin solution utility.

ChemkinSolutionImporter.validate_solution_data() → bool#

Validate the imported solution data.

ChemkinSolutionImporter.get_solution_groups() → list[str]#

Get the list of available solution groups.

ChemkinSolutionImporter.get_variable_labels(solution_group: str) → list[str]#

Get the list of variable labels for a specific solution group.

ChemkinSolutionImporter.get_group_data(solution_group: str) → pandas.DataFrame | None#

Get the data for a specific solution group.

ChemkinSolutionImporter.get_group_object(solution_group: str) → SolutionGroup | None#

Get the solution group object for a specific solution group.

ChemkinSolutionImporter.get_solution_variable_array(solution_group: str, variable_label: str) → pandas.Series[float] | None#

Get the array of data for a specific variable within a solution group.

ChemkinSolutionImporter.get_number_of_points() → int#

Get the number of solution points in the solution data.

ChemkinSolutionImporter.get_number_of_gas_species() → int#

Get the number of gas species in the solution data.

ChemkinSolutionImporter.get_gas_species_symbols() → list[str]#

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