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
julia> model = UNIFAC(["Ethanol",(component2,groups)]) ERROR: MissingException: Missing values exist ∈ single parameter Tc: ["Phenylethanol"].
Another ERROR, "Phenylethanol", could it be parameter Tc database related? Smiles and names that not in the database lead to ERROR: MissingException: Missing values exist ∈ single parameter Tc
For the first error (ERROR: MissingException: Missing values exist ∈ single parameter Tc: ["CC(Cc1ccc(cc1)C(C(=O)O)C)C"].), it means that there is no component in the critical database with name "CC(Cc1ccc(cc1)C(C(=O)O)C)C. the critical database is called because we use the Peng-Robinson equation of state as the default pure model for UNIFAC. if you are only modeling in low pressures and moderate temps, you can just use an ideal gas model instead:
on the error with phenylethanol, you can try with 1-phenylethanol, that name is in the database
julia> c1 = Clapeyron.cas("1-phenylethanol") #gets a cas from a name
1-element Vector{String}:
"98-85-1"
julia> Clapeyron.by_cas(c1) #gets a name from a cas.
1-element Vector{String}:
"1-phenylethanol"
julia> PR("1-phenylethanol")
PR{BasicIdeal, PRAlpha, NoTranslation, vdW1fRule} with 1 component:
"1-phenylethanol"
Contains parameters: a, b, Tc, Pc, Mw
I have updated GCIdentifier.jl to latest version. GCIdentifier.jl
BUT, still ERROR, please, thanks.
julia> (component,groups) = get_groups_from_smiles("CC(Cc1ccc(cc1)C(C(=O)O)C)C", UNIFACGroups)
("CC(Cc1ccc(cc1)C(C(=O)O)C)C", ["COOH" => 1, "CH3" => 3, "CH" => 1, "ACH" => 4, "ACCH2" => 1, "ACCH" => 1])
julia> model = UNIFAC(["water",(component,groups)])
AND i try my own example,
julia> (component,groups) = get_groups_from_smiles("CC(CO)O",UNIFACGroups)
("CC(CO)O", ["CH3" => 1, "CH2" => 1, "CH" => 1, "OH (P)" => 1, "OH (S)" => 1])
julia> model = UNIFAC(["Ethanol",(component,groups)])
The text was updated successfully, but these errors were encountered: