-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParametrizedTConstantVDomain must take "T" as a function or if an array of times for "ts" is supplied as an array of volumes #220
Comments
For the code above you want |
Thanks! I should have payed more attention. I'm still getting errors, let me know if you'd like me to open new issues or move the conversation offline I'm now doing the following: phaseDict = readinput(rms_file);
spcs = phaseDict["phase"]["Species"];
rxns = phaseDict["phase"]["Reactions"];
solv = Solvent("water", RiedelViscosity(-52.843, 3703.6, 5.866, -5.88e-29, 10.0));
liq = IdealDiluteSolution(spcs, rxns, solv, name="phase", diffusionlimited=true);
# BTW, concentration units below are mol/cm3 like in RMG, do I need to multiply by 1e6 to convert?
initialconds = Dict(["T" => 300.0, "V" => V, "water" => 0.055332, "mol1" => 1.30E-5]);
domain, y0 = ConstantTVDomain(phase=liq, initialconds=initialconds, constantspecies=[]);
reactor = Reactor(domain, y0, (0.0, max_time * 1.05)); But I get:
Since I'm not calling My code follows this RMS example. |
Update: domain, y0 = ConstantTVDomain(phase=liq, initialconds=initialconds, constantspecies=[]);
reactor = Reactor(domain, y0, (0.0, max_time * 1.05)); into domain, y0, p = ConstantTVDomain(phase=liq, initialconds=initialconds, constantspecies=[]);
reactor = Reactor(domain, y0, (0.0, max_time * 1.05), p=p); Perhaps the examples should be updated if this is change is correct? |
Yes, that is the correct format now...it looks like that never got changed in the docs... |
The first bit I understand, but I'm a little confused why the |
@mjohnson541 I think |
I'm running a liquid simulation using an RMG-generated .rms file.
When given initial conditions such as
RMS says:
The structure of the above input also appears in the docs. I can run if I give a list of
ts
and a list ofT
s though@mjohnson541, could you please take a look?
The text was updated successfully, but these errors were encountered: