Skip to content

Commit 393db2b

Browse files
committed
feat: adapt to core layout
1 parent bfcde19 commit 393db2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+377
-377
lines changed

examples/PFR/plugflow.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
import os
6363
import time
6464

65-
import ansys.chemkin as ck # Chemkin
66-
from ansys.chemkin import Color
65+
import ansys.chemkin.core as ck # Chemkin
66+
from ansys.chemkin.core import Color
6767

6868
# chemkin plug flow reactor model
69-
from ansys.chemkin.flowreactors.PFR import PlugFlowReactor_FixedTemperature
70-
from ansys.chemkin.inlet import Stream
71-
from ansys.chemkin.logger import logger
69+
from ansys.chemkin.core.flowreactors.PFR import PlugFlowReactor_FixedTemperature
70+
from ansys.chemkin.core.inlet import Stream
71+
from ansys.chemkin.core.logger import logger
7272
import matplotlib.pyplot as plt # plotting
7373
import numpy as np # number crunching
7474

examples/PSR/PSRgas.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@
6666
import os
6767
import time
6868

69-
import ansys.chemkin as ck # Chemkin
70-
from ansys.chemkin import Color
71-
from ansys.chemkin.inlet import Stream # external gaseous inlet
72-
from ansys.chemkin.logger import logger
69+
import ansys.chemkin.core as ck # Chemkin
70+
from ansys.chemkin.core import Color
71+
from ansys.chemkin.core.inlet import Stream # external gaseous inlet
72+
from ansys.chemkin.core.logger import logger
7373

7474
# Chemkin PSR model (steady-state)
75-
from ansys.chemkin.stirreactors.PSR import PSR_SetResTime_EnergyConservation as PSR
76-
from ansys.chemkin.utilities import find_file
75+
from ansys.chemkin.core.stirreactors.PSR import PSR_SetResTime_EnergyConservation as PSR
76+
from ansys.chemkin.core.utilities import find_file
7777
import matplotlib.pyplot as plt # plotting
7878
import numpy as np # number crunching
7979

examples/PSR/jetstirredreactor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@
6262
import os
6363
import time
6464

65-
import ansys.chemkin as ck # Chemkin
66-
from ansys.chemkin import Color
67-
from ansys.chemkin.inlet import Stream # external gaseous inlet
68-
from ansys.chemkin.logger import logger
65+
import ansys.chemkin.core as ck # Chemkin
66+
from ansys.chemkin.core import Color
67+
from ansys.chemkin.core.inlet import Stream # external gaseous inlet
68+
from ansys.chemkin.core.logger import logger
6969

7070
# chemkin perfectly stirred reactor (PSR) model (steady-state)
71-
from ansys.chemkin.stirreactors.PSR import PSR_SetResTime_FixedTemperature as PSR
72-
from ansys.chemkin.utilities import find_file
71+
from ansys.chemkin.core.stirreactors.PSR import PSR_SetResTime_FixedTemperature as PSR
72+
from ansys.chemkin.core.utilities import find_file
7373
import matplotlib.pyplot as plt # plotting
7474
import numpy as np # number crunching
7575

examples/PSR/multi-inletPSR.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@
6565
import os
6666
import time
6767

68-
import ansys.chemkin as ck # Chemkin
69-
from ansys.chemkin import Color
70-
from ansys.chemkin.inlet import Stream # external gaseous inlet
71-
from ansys.chemkin.logger import logger
68+
import ansys.chemkin.core as ck # Chemkin
69+
from ansys.chemkin.core import Color
70+
from ansys.chemkin.core.inlet import Stream # external gaseous inlet
71+
from ansys.chemkin.core.logger import logger
7272

7373
# Chemkin PSR model (steady-state)
74-
from ansys.chemkin.stirreactors.PSR import PSR_SetVolume_EnergyConservation as PSR
75-
from ansys.chemkin.utilities import find_file
74+
from ansys.chemkin.core.stirreactors.PSR import PSR_SetVolume_EnergyConservation as PSR
75+
from ansys.chemkin.core.utilities import find_file
7676
import matplotlib.pyplot as plt # plotting
7777
import numpy as np # number crunching
7878

examples/batch/closed_homogeneous__transient.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@
5656

5757
import os
5858

59-
import ansys.chemkin as ck # Chemkin
60-
from ansys.chemkin import Color
59+
import ansys.chemkin.core as ck # Chemkin
60+
from ansys.chemkin.core import Color
6161

6262
# chemkin batch reactor models (transient)
63-
from ansys.chemkin.batchreactors.batchreactor import (
63+
from ansys.chemkin.core.batchreactors.batchreactor import (
6464
GivenPressureBatchReactor_EnergyConservation,
6565
)
66-
from ansys.chemkin.logger import logger
66+
from ansys.chemkin.core.logger import logger
6767
import matplotlib.pyplot as plt # plotting
6868
import numpy as np # number crunching
6969

@@ -176,7 +176,7 @@
176176
#
177177
# .. note::
178178
#
179-
# - Type ``ansys.chemkin.show_ignition_definitions()`` to get the list of all available ignition
179+
# - Type ``ansys.chemkin.core.show_ignition_definitions()`` to get the list of all available ignition
180180
# delay time definitions in Chemkin.
181181
#
182182
# - By default, time intervals for both print and save solution are 1/100 of the

examples/batch/ignitiondelay.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@
5656
import os
5757
import time
5858

59-
import ansys.chemkin as ck # chemkin
60-
from ansys.chemkin import Color
59+
import ansys.chemkin.core as ck # chemkin
60+
from ansys.chemkin.core import Color
6161

6262
# chemkin batch reactor models (transient)
63-
from ansys.chemkin.batchreactors.batchreactor import (
63+
from ansys.chemkin.core.batchreactors.batchreactor import (
6464
GivenPressureBatchReactor_EnergyConservation,
6565
)
66-
from ansys.chemkin.logger import logger
66+
from ansys.chemkin.core.logger import logger
6767
import matplotlib.pyplot as plt # plotting
6868
import numpy as np # number crunching
6969

@@ -196,7 +196,7 @@
196196
# as the indication of an auto-ignition. You can choose a different auto-ignition definition.
197197
#
198198
# .. note::
199-
# Type ``ansys.chemkin.show_ignition_definitions()`` to get the list of all available ignition
199+
# Type ``ansys.chemkin.core.show_ignition_definitions()`` to get the list of all available ignition
200200
# delay time definitions in Chemkin.
201201
#
202202
# .. note::

examples/batch/rcm.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@
5757

5858
import os
5959

60-
import ansys.chemkin as ck # Chemkin
61-
from ansys.chemkin import Color
60+
import ansys.chemkin.core as ck # Chemkin
61+
from ansys.chemkin.core import Color
6262

6363
# chemkin batch reactor models (transient)
64-
from ansys.chemkin.batchreactors.batchreactor import (
64+
from ansys.chemkin.core.batchreactors.batchreactor import (
6565
GivenVolumeBatchReactor_EnergyConservation,
6666
)
67-
from ansys.chemkin.logger import logger
67+
from ansys.chemkin.core.logger import logger
6868
import matplotlib.pyplot as plt # plotting
6969
import numpy as np # number crunching
7070

@@ -210,7 +210,7 @@
210210
# as the indication of an auto-ignition. You can choose a different auto-ignition definition.
211211
#
212212
# .. note::
213-
# Type ``ansys.chemkin.show_ignition_definitions()`` to get the list of all available ignition
213+
# Type ``ansys.chemkin.core.show_ignition_definitions()`` to get the list of all available ignition
214214
# delay time definitions in Chemkin.
215215
#
216216
# .. note::

examples/batch/sensitivity.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
import os
6969
import time
7070

71-
import ansys.chemkin as ck # Chemkin
72-
from ansys.chemkin import Color
71+
import ansys.chemkin.core as ck # Chemkin
72+
from ansys.chemkin.core import Color
7373

7474
# chemkin batch reactor models (transient)
75-
from ansys.chemkin.batchreactors.batchreactor import (
75+
from ansys.chemkin.core.batchreactors.batchreactor import (
7676
GivenPressureBatchReactor_EnergyConservation,
7777
)
78-
from ansys.chemkin.logger import logger
78+
from ansys.chemkin.core.logger import logger
7979
import matplotlib.pyplot as plt # plotting
8080
import numpy as np # number crunching
8181

examples/batch/vapor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141

4242
import os
4343

44-
import ansys.chemkin as ck # Chemkin
45-
from ansys.chemkin import Color
44+
import ansys.chemkin.core as ck # Chemkin
45+
from ansys.chemkin.core import Color
4646

4747
# chemkin batch reactor model (transient)
48-
from ansys.chemkin.batchreactors.batchreactor import (
48+
from ansys.chemkin.core.batchreactors.batchreactor import (
4949
GivenPressureBatchReactor_FixedTemperature,
5050
)
51-
from ansys.chemkin.logger import logger
51+
from ansys.chemkin.core.logger import logger
5252
import matplotlib.pyplot as plt # plotting
5353
import numpy as np # number crunching
5454

@@ -149,8 +149,8 @@
149149
# Switch on the real-gas EOS model
150150
# ==================================
151151
# Use the ``use_realgas_cubicEOS()`` method to turn on the real-gas EOS model. For more
152-
# information, type either ``ansys.chemkin.help("real gas")`` for information on real-gas model
153-
# usage or ``ansys.chemkin.help("manuals")`` to access the online **Chemkin Theory**
152+
# information, type either ``ansys.chemkin.core.help("real gas")`` for information on real-gas model
153+
# usage or ``ansys.chemkin.core.help("manuals")`` to access the online **Chemkin Theory**
154154
# manual for descriptions of the real-gas EOS models.
155155
#
156156
# .. note::

examples/chemistry/loadmechanism.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
import os
4848

4949
# import PyChemkin packages
50-
import ansys.chemkin as ck
51-
from ansys.chemkin import Color
52-
from ansys.chemkin.logger import logger
50+
import ansys.chemkin.core as ck
51+
from ansys.chemkin.core import Color
52+
from ansys.chemkin.core.logger import logger
5353

5454
# check the working directory
5555
current_dir = os.getcwd()

0 commit comments

Comments
 (0)