Skip to content

Setting up a reaction package #403

Answered by andrewlee94
dimi3saad asked this question in Q&A
Discussion options

You must be logged in to vote

@dimi3saad I believe your problem is that you need to "unpack" the config dict (note the **):

m.fs.reaction_properties = GenericReactionParameterBlock(default={ "property_package": m.fs.properties, **config_dict })

From you questions about providing parameters for the config dict, I think you will need to be a bit more specific about what you are asking, as not all methods require parameters and there are different parameters for different forms. For power law type functions, there are no requires parameters, although there is a set of optional parameters. A power law form is:

r = k*prod(x[i]**o[i] for i in component_list)

For an elementary reaction, o can be calculated from the reaction …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@dimi3saad
Comment options

@andrewlee94
Comment options

@dimi3saad
Comment options

Answer selected by andrewlee94
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants