Download Latest Version NCE-0.0.12.zip (4.3 MB)
Email in envelope

Get an email when there's a new version of Numerics for Chemical Engineering

Home / Spreadsheets / old_versions
Name Modified Size InfoDownloads / Week
Parent folder
Data fitting 2016-04-02
NCE_20160805.oxt 2016-08-05 595.8 kB
NCE-src_20160428.tar.xz 2016-08-05 846.2 kB
NCE_20160428.oxt 2016-04-28 429.3 kB
README.txt 2016-04-02 5.3 kB
PhPropLiqVol-alpha-0.0.2.tar.gz 2016-04-02 2.9 MB
NCE-VLE-0.0.4.tar.gz 2016-04-02 3.1 MB
NCE-SpSh-bin-0.0.6-rc1.tar.xz 2016-04-02 5.4 MB
NCE-SpSh-bin-0.0.5.tar.gz 2016-04-02 25.1 MB
NCE-EOS-alpha-0.0.3.tar.gz 2016-04-02 3.1 MB
EquipComprSpSh-alpha-0.0.2.tar.gz 2016-04-02 2.9 MB
EquipComprMultiSpSh-alpha-0.0.1.tar.gz 2016-04-02 3.0 MB
EosGasVDWSpSh-alpha-0.0.2.tar.bz2 2016-04-02 2.9 MB
EosGasRKSpSh-alpha-20140222.tar.gz 2016-04-02 2.9 MB
EosGasRKSpSh-alpha-0.0.2.tar.gz 2016-04-02 2.9 MB
Totals: 15 Items   56.1 MB 0
Numerics for Chemical Engineering
=================================
Copyright (c) 2014,2015 Carlo Tegano

NCE SpreadSheets has been discontinued in favor of *Process Engineering Tools*
Python package.

2014-12-30

Numerics for Chemical Engineering Spreadsheets Collection
=========================================================
Spreadsheets are used to provide a user friendly interface to setup 
calculation input and collect the output.

Spreadsheets list
-----------------
> Data fitting - vapor pressure - Antoine
> Data fitting - Specific heat
> Data fitting - Activity coefficient - Wilson
> Equations of state 
> Irreversible gas expansion (throttling)
> Specific volume of saturated and compressed liquids
> Pressure loss in a pipe
> Storage tank heat losses
> Viscosity of gases and liquids
Old releases:
> Vapor - Liquid equilibria (NCE-Vle-0.0.4)
> Gas multistage compression (EquipComprMultiSpSh-alpha-0.0.1)
        
Quick start
-----------
Linux users:
- unpack the tarball
- surf to "./bin/shell" and give executable permission to all the scripts 
  in the folder "runNCE-fooName.sh"
  (user@local:~$ chmod u+x runNCE*.sh)
You are ready for the calculation:
- Launch the model of your choice by double-clicking on the corresponding
  launcher script "runNCE-fooName.sh"
  An xterm window pops-up showing calculation engine output and 
  user interface spreadsheet opens
- Edit sheet3 "MAIN" to setup the calculation as in a common spreadsheet
- Pressing any key on the xterm window produces a new run of the calculation
- Results should be automatically updated on the user interface

Windows users:
- unpack the tarball
You are ready for the calculation:
- Open the user interface spreadsheet for the model of choice in "./ui".
- Launch the model of your choice by double-clicking on the corresponding
  launcher script "runNCE-fooNamehoice.bat" in folder "./bin/bat".
  A terminal window pops-up showing calculation engine output 
- Edit sheet3 "MAIN" to setup the calculation as in a common spreadsheet
- Pressing any key on the terminal window produces a new run of the calculation
- Results: see below known issues

Requirements
------------
Open Document Spreadsheet format support
A spreadsheet application that supports Open Document Format is required.
Sheets are built with LibreOffice, but other equivalent applications shall work
the same way.

See also RELEASE.txt in the package.

Architecture overview
---------------------

The calculation tool is based on 3 components:

nce-spsh.jar       - java calculation engine
NCE-fooName-UI.ods - spreadsheet user interface
NCE-fooName-IO.ods - spreadsheet for input/output between core and UI

--------------------                -------------------------
|                  |   Input data   |  NCE-fooName-UI.ods   |
|   Java Engine    |<---------------|                       |
|                  |                |                       |
--------------------                |sheet1-Input to core   |
        |                           |                       |
        V                           |sheet2-Output from core|
--------------------                |                       |
|                  |  Output data   |sheet3-User interface  |
|NCE-fooName-IO.ods|--------------->|                       |
|                  |                |                       |
--------------------                -------------------------

How it works
------------
The user starts the launcher script for the model of choice 
by double-clicking on it.
This will open the corresponding spreadsheet interface and a shell with 
a running calculation engine.
Sheet3 presents a self explanatory interface to setup calculation, insert input 
data and read calculation results.
It is customizable, with the only exception of to not break the links to
the other sheets, as they are used to input and output the calculation engine.
Pressing "enter" on the shell will cause the calculation engine to perform a 
new calculation loop. It will read the input directly scanning sheet0 of the 
user interface spreadsheet. 
For this reason it is important to not move sheet0 from first position.
The calculation engine writes its output to the IO Link spreadsheet.
This is linked with sheet1 of the user interface spreadsheet. Once more, do not
move sheet1 from its position.
The link is automatically updated within the interface at short time intervals, 
so calculation output is refreshed continuously. There is no need to keep
the IO Link spreadsheet open.

Tips
-----
User Interface (LibreOffice)
the link to external data is visible in "Edit -> Links".

IO Link (LibreOffice)
The exported cell range is defined in "Data -> Define Range"

Files renaming (general)
renaming the files causes the links to break. Renaming is possible
but links as well as scripts shall be properly adapted to new names.

Known issues
------------
There is a lack of support to Open Document Format in Excel, that causes the
inability to continuously refresh program output. Input and calculation still
work, but output is available only on the terminal.

Feedback
--------
Feedback is welcome. Write your comments, suggestions and questions 
to the author: <carlotorresce@gmail.com>

Testing
-------
The tool has been tested on Ubuntu 14.04 with Libreoffice 4.2.7.2
Source: README.txt, updated 2016-04-02