Skip to content

Create a state class #81

Description

@chmarti1

This was originally posted by @DanielSarmiento04 as a comment in #77. I've re-posted it here because it's an interesting idea.

         I have been using the library for the past few months in parallel to a thermodynamics course

I like the piromat ecosystem

I made this repository when I used for solve Brayton, Rankine and >combine Cicle, these example you can use for tutorials.

Another suggestion that I found is the next

  • Simply code
    Normally, for optimize time processed and debugger I use
    state_x = 'fluid'.state('propierties')

this return a dictionary and for mapping the information we have to use .get dictionary method
h_x = state_x.get('h')
something to improve is use the status type objects

  • Example
class State(object):
  h
  s
  T
  v
 # Some propierties

and then use h_x = state_x.h

Originally posted by @DanielSarmiento04 in #77 (comment)

Activity

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

    aspirationalSomething we'd like to work on when resources permit.enhancementA suggestion to improve the package

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions