You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I try to use CEPTR convert(use convert.sh) yaml to generate C++ mechanism files ,it ouccurs that
Traceback (most recent call last):
File "", line 1, in
File "/home/zhangjiaqian/Desktop/PeleLMeX/Submodules/PelePhysics/Support/ceptr/ceptr/ceptr.py", line 201, in main
convert(
File "/home/zhangjiaqian/Desktop/PeleLMeX/Submodules/PelePhysics/Support/ceptr/ceptr/ceptr.py", line 71, in convert
conv.writer()
File "/home/zhangjiaqian/Desktop/PeleLMeX/Submodules/PelePhysics/Support/ceptr/ceptr/converter.py", line 453, in writer
cp.production_rate(
File "/home/zhangjiaqian/Desktop/PeleLMeX/Submodules/PelePhysics/Support/ceptr/ceptr/production.py", line 199, in production_rate
pef = (reaction.rate.pre_exponential_factor * ctuc).to_base_units()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'cantera.reaction.PlogRate' object has no attribute 'pre_exponential_factor'
what i use mechanism.yaml file url is below.
(https://github.com/grabtheNS/soot-chemical-mechanism-/blob/78840684f7a85712898c1093095bc2be4986697b/kaust.yaml)
It does not seem to support the pressure dependent chemical reaction format yaml file, but I am not sure what is the cause of this error.
Best regards!
The text was updated successfully, but these errors were encountered:
We still don't support Plog-type reactions with CEPTR. See #487. Typically the recommendation is to convert the Plog reactions to constant pressure if that works for your system. @RSuryaNarayan - is that what you ended up doing in that case?
Hello @baperry2 apologies for missing the update on this. Essentially what we ended up doing was to remove PLOG reactions by just retaining parameters for one pressure "relevant to our problem" i.e. we were looking at detonations and just retained high P stuff. I hope that makes sense
Thanks for the update @RSuryaNarayan. That's what I figured.
@grabtheNS: I'm going to leave this issue open to indicate Plog support is something we'd like to add, although there are no immediate plans to do so. As mentioned in the discussion linked above, we'd be happy to review a PR with this capability if anyone wants to implement it, but for now the only workaround is to remove pressure dependence from the relevant reactions.
baperry2
changed the title
CEPTR issue:AttributeError: 'cantera.reaction.PlogRate' object has no attribute 'pre_exponential_factor'
Feature Request: Plog reaction support in CEPTR (currently leads to AttributeError: 'cantera.reaction.PlogRate' object has no ...)
Oct 29, 2024
Hello,It seems that cepter does not support the cantera type: pressure-dependent Arrhenius form of chemical reaction.which like that :
type: pressure-dependent-Arrhenius
rate-constants:
when I try to use CEPTR convert(use convert.sh) yaml to generate C++ mechanism files ,it ouccurs that
It does not seem to support the pressure dependent chemical reaction format yaml file, but I am not sure what is the cause of this error.
Best regards!
The text was updated successfully, but these errors were encountered: