SolutionGroup#

class ansys.chemkin.core.chemkin_solution_utility.SolutionGroup(group_name: str, raw_group_data: pandas.DataFrame)#

Class representing a single solution group within the Chemkin solution data.

Overview#

get_variable_index

Get the index of a variable in the solution group by its name.

get_species_index

Get the index of a gas species by its symbol.

get_gas_species_variable_name

Get the variable name of a gas species by its symbol.

get_gas_species_variable_index

Get the variable index of a gas species by its symbol.

get_variable_array

Get the array of values for a variable by its name.

get_variable_array_with_tag

Get the array of values for a variable by its name and a tag.

get_variable_unit

Get the unit of a variable by its name.

get_variable_unit_with_tag

Get the unit of a variable by its name.

number_of_variables

Return the number of variables in the solution group.

group_name

Return the name of the solution group.

group_data

Return the raw data of the solution group.

variable_names

Return the list of variable names in the solution group.

species_unit

Return the species units of the solution group.

number_of_points

Return the number of solution points in the solution group.

has_gas_species

Return True if the solution group has any gas species, False otherwise.

number_of_gas_species

Return the number of gas species in the solution group.

gas_species_symbols

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

Import detail#

from ansys.chemkin.core.chemkin_solution_utility import SolutionGroup

Property detail#

property SolutionGroup.number_of_variables: int#

Return the number of variables in the solution group.

property SolutionGroup.group_name: str#

Return the name of the solution group.

property SolutionGroup.group_data: pandas.DataFrame#

Return the raw data of the solution group.

property SolutionGroup.variable_names: list[str]#

Return the list of variable names in the solution group.

property SolutionGroup.species_unit: str#

Return the species units of the solution group.

property SolutionGroup.number_of_points: int#

Return the number of solution points in the solution group.

property SolutionGroup.has_gas_species: bool#

Return True if the solution group has any gas species, False otherwise.

property SolutionGroup.number_of_gas_species: int#

Return the number of gas species in the solution group.

property SolutionGroup.gas_species_symbols: list[str]#

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

Method detail#

SolutionGroup.get_variable_index(variable_name: str) → int#

Get the index of a variable in the solution group by its name.

SolutionGroup.get_species_index(species_symbol: str) → int#

Get the index of a gas species by its symbol.

SolutionGroup.get_gas_species_variable_name(species_symbol: str) → str#

Get the variable name of a gas species by its symbol.

SolutionGroup.get_gas_species_variable_index(species_symbol: str) → int#

Get the variable index of a gas species by its symbol.

SolutionGroup.get_variable_array(variable_name: str) → pandas.Series[float]#

Get the array of values for a variable by its name.

SolutionGroup.get_variable_array_with_tag(variable_name: str, tag: str) → pandas.Series[float]#

Get the array of values for a variable by its name and a tag.

SolutionGroup.get_variable_unit(variable_name: str) → str#

Get the unit of a variable by its name.

SolutionGroup.get_variable_unit_with_tag(variable_name: str, tag: str) → str#

Get the unit of a variable by its name.