SurfaceChemistryController#
- class ansys.chemkin.core.surface_chemistry_controller.SurfaceChemistryController(reactor: SurfaceChemistryHost)#
Controller that encapsulates reactor surface-chemistry operations.
Overview#
Activate surface chemistry on reactor wall materials. |
|
Verify that the host reactor supports surface chemistry. |
|
Inform users that surface chemistry is not available. |
|
Return availability and log guidance when surface chemistry is absent. |
|
Log an error for an unknown surface material. |
|
Return all surface material names. |
|
Return site-species names for all surface materials. |
|
Return bulk-species names for all surface materials. |
|
Return total number of site species across all materials. |
|
Return total number of bulk species across all materials. |
|
Return whether a material-specific area fraction is set. |
|
Return the area fraction for a given surface material. |
|
Set the area fraction for a given surface material. |
|
Return whether a material-specific temperature is set. |
|
Return temperature for a given surface material. |
|
Set temperature for a given surface material. |
|
Return temperatures of all materials in a flat array. |
|
Return site fractions for a surface material. |
|
Set site fractions for a surface material. |
|
Return site fractions for all materials as one array. |
|
Return bulk activities for a surface material. |
|
Set bulk activities for a surface material. |
|
Return bulk growth rates for all materials as one array. |
|
Build default/initial site-fraction and bulk-activity arrays. |
|
Emit surface-chemistry related keyword lines via host.setkeyword. |
Return number of materials in the active surface mechanism. |
|
Return the global surface reaction-rate multiplier. |
Import detail#
from ansys.chemkin.core.surface_chemistry_controller import SurfaceChemistryController
Property detail#
- property SurfaceChemistryController.get_numb_material: int#
Return number of materials in the active surface mechanism.
- property SurfaceChemistryController.surface_ratemultiplier: float#
Return the global surface reaction-rate multiplier.
Method detail#
- SurfaceChemistryController.activate_surface_chemistry(chem: ansys.chemkin.core.chemistry.Chemistry, mode: str = 'normal')#
Activate surface chemistry on reactor wall materials.
- SurfaceChemistryController.verify_surface_chemistry() bool#
Verify that the host reactor supports surface chemistry.
- SurfaceChemistryController.no_surface_mechanism_declaration()#
Inform users that surface chemistry is not available.
- SurfaceChemistryController.require_surface_chemistry() bool#
Return availability and log guidance when surface chemistry is absent.
- SurfaceChemistryController.no_surface_material(mat_name: str)#
Log an error for an unknown surface material.
- SurfaceChemistryController.get_material_names() list[str]#
Return all surface material names.
- SurfaceChemistryController.get_site_species_names() list[list[str]]#
Return site-species names for all surface materials.
- SurfaceChemistryController.get_bulk_species_names() list[list[str]]#
Return bulk-species names for all surface materials.
- SurfaceChemistryController.get_total_site_species() int#
Return total number of site species across all materials.
- SurfaceChemistryController.get_total_bulk_species() int#
Return total number of bulk species across all materials.
- SurfaceChemistryController.check_material_area_fraction(mat_name: str) int#
Return whether a material-specific area fraction is set.
- SurfaceChemistryController.get_material_area_fraction(mat_name: str) float#
Return the area fraction for a given surface material.
- SurfaceChemistryController.set_material_area_fraction(mat_name: str, fraction: float)#
Set the area fraction for a given surface material.
- SurfaceChemistryController.check_material_temperature(mat_name: str) int#
Return whether a material-specific temperature is set.
- SurfaceChemistryController.get_material_temperature(mat_name: str) float#
Return temperature for a given surface material.
- SurfaceChemistryController.set_material_temperature(mat_name: str, temp: float)#
Set temperature for a given surface material.
- SurfaceChemistryController.get_all_surface_temperature() numpy.typing.NDArray[numpy.double]#
Return temperatures of all materials in a flat array.
- SurfaceChemistryController.get_site_fraction(mat_name: str) numpy.typing.NDArray[numpy.double]#
Return site fractions for a surface material.
- SurfaceChemistryController.set_site_fraction(mat_name: str, recipe: list[tuple[str, float]])#
Set site fractions for a surface material.
- SurfaceChemistryController.get_all_site_fractions() numpy.typing.NDArray[numpy.double]#
Return site fractions for all materials as one array.
- SurfaceChemistryController.get_bulk_activity(mat_name: str) numpy.typing.NDArray[numpy.double]#
Return bulk activities for a surface material.
- SurfaceChemistryController.set_bulk_activity(mat_name: str, recipe: list[tuple[str, float]])#
Set bulk activities for a surface material.
- SurfaceChemistryController.get_all_bulk_growth_rates() numpy.typing.NDArray[numpy.double]#
Return bulk growth rates for all materials as one array.
- SurfaceChemistryController.set_init_surface_coverage() tuple[numpy.typing.NDArray[numpy.double], numpy.typing.NDArray[numpy.double]]#
Build default/initial site-fraction and bulk-activity arrays.
- SurfaceChemistryController.set_surface_chemistry_keywords()#
Emit surface-chemistry related keyword lines via host.setkeyword.