Giter VIP home page Giter VIP logo

owtp's Introduction

Ordinary Water Thermodynamic Properties

Build status

Ordinary Water Thermodynamic Properties (OWTP) is an open-source C library that calculates the thermodynamic properties of ordinary water, which is based on release R7-97 from the International Association for the Properties of Water and Steam (IAPWS R7-97).

Project Goals

  1. Provide a thoroughly-tested, lightweight library that provides conventional steam tables functionality.
  2. Encourage the proliferation of applications that would require the use of conventional steam tables.
  3. Provide relatively easy interop with other languages.

Compilation

Right now, only building with Windows is supported. The next step of this project will be to add Linux support, but this may take some time for me to set up properly because I don't have a Linux box and I'm new to Linux.

To compile the code into a shared library:

  1. Clone the repo to a directory.
  2. Cmake is the build generator, so the following commands should allow you to build the library.

mkdir build

cmake -Bbuild -H. -DCMAKE_CONFIGURATION_TYPES=Release

cmake --build build --config Release

This should build a shared library named OWTP.dll in the following folder: ./build/src/bin/

Contact

If you need help or want to contribute, then please feel free to come into the discord server.

Invite link: https://discord.gg/S2cz7r

owtp's People

owtp's Issues

Region 2: Implement and Test Properties(P, h)

Implement and test the appropriate properties as functions of pressure and specific enthalpy.

#3 need to be finished before this is started.

This will be implemented by:

  1. calculating temperature as a function of pressure and specific enthalpy

  2. calculating the other properties as functions of temperature and pressure

This will be tested by using the values found in table 15 on page 17 of the attached document.

IF97-Rev.pdf

Region 2: Implement and Test Properties(P, s)

Implement and test the appropriate properties as functions of pressure and specific entropy.

#5 need to be finished before this is started.

This will be implemented by:

  1. calculating temperature as a function of pressure and specific entropy

  2. calculating the other properties as functions of temperature and pressure

This will be tested by using the values found in table 15 on page 17 of the attached document.

IF97-Rev.pdf

Region 3: Implement and Test Properties(specific volume, T)

Using the functions for properties as functions of density and temperature, implement and test properties as functions of specific volume and temperature.

These will be tested using the same values that were used when testing properties as functions of density and temperature.

Region 3: Implement and Test Properties(P,T)

Implement and test properties as functions of pressure and temperature.

Implementation will be achieved by using the v(P,T) equations for region 3 and using that specific volume as an input into:

  • Properties(Rho, T)
  • Properties(v, T)

Testing will be achieved by using the same values that were used for the testing of Properties(Rho, T) && Properties(v, T).

Region 2: Implement and Test Properties(h, s)

Implement and test the appropriate properties as functions of specific enthalpy and specific entropy.

#7 need to be finished before this is started.

This will be implemented by:

  1. calculating pressure as a function of specific enthalpy and specific entropy

  2. calculating temperature as a function of pressure and specific enthalpy

  3. calculating the other properties as functions of temperature and pressure

This will be tested by using the values found in table 15 on page 17 of the attached document.

IF97-Rev.pdf

Region 3: Implement and Test Properties(density, T)

Implement and test the equations that solve for properties as a function of density and temperature, which can be found in the following document starting at the bottom of page 29.

IF97-Rev.pdf

This will be tested by using the test cases found in table 33 on page 32 in the above document.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.