Problem updating a problem from old reaktoro version to the newest version #331
Replies: 3 comments 2 replies
-
Hi @JMCarmona10 , please do not use |
Beta Was this translation helpful? Give feedback.
-
Better to initiate a new question with a new title next time.
aqueous_species = system.species().withAggregateState(AggregateState.Aqueous)
gaseous_species = system.species().withAggregateState(AggregateState.Gas) See API here: https://reaktoro.org/api/classReaktoro_1_1SpeciesList.html |
Beta Was this translation helpful? Give feedback.
-
Hello Allan, I am once again trying to update this problem in Reaktoro v1. In the original code, there is a section "Define an auxiliary function for creating the output file" that uses the ChemicalOutput class: output = ChemicalOutput(system) However, I dont know which class to use i think its ChemicalState class instead but im unsure. state = ChemicalState(system) Also i dont know how to use Reaktoro API to re-write this particular line. "output.filename('results/{}.txt'.format(str(step).zfill(ndigits)))" I would really appreciate if you could provide an example of the Reaktoro API syntax needed to replace that output.filename() line and ChemicalOutput. Here is the section that im trying to figure ` Create the instance of ChemicalOutput class
|
Beta Was this translation helpful? Give feedback.
-
Hello Lean,
Lately, I've been facing a challenge concerning the transport-reaktoro functionality from the older Reaktoro version, as outlined in this link (https://reaktoro.org/v1/tutorials/transport/reactive-transport-calcite-dolomite-custom.html). I've been working on updating this program with the latest function calls, but I've encountered difficulties when defining temperature and pressure parameters.
It seems that in the new Reaktoro version, the 'simulate()' function no longer recognizes the 'set.temperature' parameter. Do you have any suggestions on how to resolve this issue?
This is the section where I'm encountering difficulties. I've attempted to upgrade this program using the latest Reaktoro functions. However, when I run the program, I encounter an error when defining the temperature (T) and pressure (P) for that composition as shown in the figure above. I could show the entire program but it too long.
`def simulate():
Beta Was this translation helpful? Give feedback.
All reactions