Skip to content

I don't understand the relationship between enthalpy and energy in modelica_fluid #4210

Closed

Description

@zhouchunshu

There are two equations below:
0 = port_a.m_flow * actualStream(port_a.h_outflow) + port_b.m_flow *
actualStream(port_b.h_outflow) + Q_flow * 1000;
port_a.h_outflow = port_b.h_outflow;
Why is there energy input, but the specific enthalpy remains constant?Are the above two equations contradictory?

Activity

  1. mestinso commented on Nov 4, 2023

    @mestinso
    Collaborator

    I suggest reading the Modelica specification chapter on stream connectors. Additionally, there is an appendix with additional detail. Also, this is probably a better question for stack overflow, but I'll quickly answer here:

    First, to address your concern: no, the two equations are not contradictory. The first one is a steady state energy conservation equation (probably what you know and understand already, i.e. from thermodynamics--1st law for open systems).

    Regarding the 2nd equation, it does not imply that the specific enthalpy is constant, but instead just states that the h_outflow values (enthalpy values if flows were negative) are equal to each other. To understand this, we need to remember that h_outflow is specifically the enthalpy at that location if the m_flow were negative. It might be helpful to think about another conceptual variable: h, the specific enthalpy within the control volume for your component. Instead of the single equation you have, you could have the following two equations.
    port_a.h_outflow = h;
    port_b.h_outflow = h;
    These equations should individually feel natural, since if the flow were negative the port, the respective enthalpy would be equal to in enthalpy state within the control volume. And of course, you can combine these two equations, eliminate h, and get back to where you started.

  2. locked and limited conversation to collaborators on Nov 6, 2023
  3. converted this issue into a discussion #4226 on Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions