![]() ![]() Its methods are available for allĬlear all saved input data, so that the data given by input_data or _SolutionBase #Ĭlass _SolutionBase is a common base class for the ThermoPhase, Kinetics, and Solution ( yaml = yaml_def ) class cantera.solutionbase. Yaml_def = ''' phases: - name: gas thermo: ideal-gas kinetics: gas elements: species: - gri30.yaml/species: all reactions: - gri30.yaml/reactions: declared-species skip-undeclared-elements: true skip-undeclared-third-bodies: true state: ''' gas = ct. The YAML phase definition in directly, using the yaml keyword In addition, Solution objects can be constructed by passing the text of Shorthand returning a tuple containing the types of the three constitutiveįor non-trivial uses cases of this functionality, see the examples Transport_model attributes further, the composite attribute is a Queried using the thermo_model, kinetics_model and Types of underlying models that form the composite Solution object are YAML input file requires a Kinetics object containing the species, as Species and reactions keyword arguments are lists of Species and Specifying the thermodynamic and kinetics model, respectively, and Where the thermo and kinetics keyword arguments are strings Solution ( thermo = 'ideal-tas', kinetics = 'gas', species = spec, reactions = rxns, name = 'my_custom_name' ) list_from_file ( "gri30.yaml", spec_gas ) gas = ct. Solution ( thermo = 'ideal-gas', species = spec ) rxns = ct. ![]() list_from_file ( "gri30.yaml" ) spec_gas = ct. The most common way to instantiate Solution objects is by using a phaseĭefinition, species and reactions defined in an input file: Transport_model=None to the Solution constructor. To skip initialization of the Transport object, pass the keyword argument Single object can be used to compute thermodynamic, kinetic, and transport It defines no methods of its own, and is provided so that a Represent any type of solution – a mixture of gases, a liquid solution, orĬlass Solution derives from classes ThermoPhase, Kinetics, and Solution ( infile = '', name = '', *, origin = None, yaml = None, thermo = None, species = (), kinetics = None, reactions = () ) #Ī class for chemically-reacting solutions. Thermodynamic, chemical kinetic, and (optionally) transport properties. These classes are composite representations of a substance which has ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |