Skip to content

Solving DFTProfile for binary mixture with x1 = 1 results in singular matrix #39

@g-bauer

Description

@g-bauer
parameters = PcSaftParameters.from_json(
    ['toluene', 'acetone'], 
    '../parameters/pcsaft/loetgeringlin2018.json'
)
pcsaft = HelmholtzEnergyFunctional.pcsaft(parameters)
vle = PhaseDiagram.binary_vle(pcsaft, 300 * KELVIN, 251)
gamma = [PlanarInterface.from_tanh(pe, 1024, 100 * ANGSTROM, 500 * KELVIN).solve().surface_tension() for pe in vle.states]

results in RuntimeError: The matrix appears to be singular. for both end-points (pure substances) of the phase diagram.

The above functionality can be done with a SurfaceTensionDiagram but would it be helpful to handle PhaseEquilibrium inputs for mixtures with x=1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DFTDFT related feature or issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions