Skip to content

Stanet Water net cannot be loaded, viscosity of STANET_fluid in pandapipes is not temperature dependent #703

@LasseBKMoeller

Description

@LasseBKMoeller

When trying to import a Stanet-Water-Network I get a KeyError: 'KFAKT', I think this is because the CSV-File of a Stanet-Water-Network does not contain the 'KFAKT' keyword.
What I did to solve this was (in get_net_params, converter/stanet/preparing_steps.py l. 195) :

    try:
        net_params["compress_model"] = compressibility_models[int(net_data.at[0, "KFAKT"])]
    except KeyError:
        logger.warning("No compression model found, using linear.")
        net_params["compress_model"] = "linear"

This works but is maybe not the most elegant solution.

Another issue I have found with the Stanet-Converter is that the viscosity of the STANET_fluid is not dependend on the temperature. In Stanet the Viscosity is a function of the temperature, but using the Stanet-converter in pandapipes the viscosity is set constant to the stanet-viscosity at the reference temperature. This leads to errors if the calculation temperature differs from the reference temperature.
What I did for a workaround was simply setting the fluid of the net to the 'water' fluid-type that comes with pandapipes and not using the STANET_liquid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions