Skip to content

Trace element nonlinearities #94

@KasparS2

Description

@KasparS2

Description

Adding trace elements to water causes extra nonlinearities per component and creates issues with dynamic state selection. I haven't been able to find the state selection option for TRASNFORM components which causes Modelica to often choose the wrong states causing simple models to fail.

To Reproduce

Steps to reproduce the behavior:
add: package Medium = Modelica.Media.Water.StandardWater(extraPropertiesNames={"Tritium"});
change the medium of components to Medium
run any model and verify that the size and number of nonlinear systems increase
Note: Possible that this way of changing medium is wrong but it is the one used in TRANSFORM lecture series(https://www.youtube.com/watch?v=-LWV-svpzGg).

After talking to Claytex they mentioned that adding a trace substance shouldn't increase nonlinearities atleast in normal Modelica components. In addition to this normal Modelica components have stateSelect option in which we can tell Modelica which states to use so it doesn't get confused and end up selecting the wrong one. Is there a potential work around for this issue of nonlinearities?

OS: Windows 10
Dymola 2023x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions