Solutions Software de Simulation pour l’Enseignement Scientifique et l’Engineering
S4E2
  1. You are here:  
  2. Home
  3. Uncategorised

Installing Eclipse on Mac

To launch Thermoptim on Mac, if you do not already have a Java development environment, you can use a tool available as freeware, called Eclipse. Developed in open source, Eclipse can be downloaded from the Internet at https://www.eclipse.org.

Eclipse allows you to write your classes in Java, compile them and test their integration directly into Thermoptim.

Installing Eclipse

To install the development environment, go to the Eclipse website, and follow the instructions.

Given the potential of Eclipse, which is a widely used environment, you will easily find sites explaining in detail how to install it for various operating systems.

When you start Eclipse, the page below offers you a whole series of possible actions. In the upper right part is a "Hide" button. Click on it to hide it.

start pageseclipsemac

Importing the Thermoptim project

An Eclipse workspace ("Workspace") allowing you to launch Thermoptim is available. It is called Thopt_Demo_Mac_Ecl_252_En and can be downloaded from the following address:

https://www.s4e2.com/download/soft/thopt/mac/Thopt_Demo_Mac_Ecl_252_En.zip

To import the project into Eclipse, do the following:

Select File/Import/General/Existing Projects into Workspace

Choose Select archive file and navigate through your files until you select the Thopt_Demo_Mac_En.zip archive.

The Eclipse screen should be analogous to this one, once the project tree is deployed.

MacEclipse screen.png

In the left part appears the contents of the archive, with different working directories and a number of working files. If you click on a file, it opens in the right panel.

The top bar has a list of menus. The ones that will interest us below are Project and Run.

Selecting Working Libraries

Eclipse should load the entire project, but it may be necessary to make some settings by hand.

This is especially the case to inform Java of the libraries needed to run the browser.

It is likely that the files .jar will be recognized, but it may be necessary to add the .zip by hand.

To do this, you must select the project by clicking on it on the left side of the screen, then go to Project/Properties and select Java Build Path and the Libraries tab. The list of automatically identified libraries is displayed. To add more, click in the window and then click add JARs and select all the files .zip to the root of the project, until you get the result of the figure.


javaBuilPathMac

Launching Thermoptim

To launch an application in Eclipse, you must choose the Java class that must be executed. The Thermoptim one is called pilot.Starter, which means Starter class of the pilot package.

Select Run/Run As.. A Java application, or click the green icon representing a right-facing arrow. A screen of the type below is displayed, with the list of existing classes with a main() method. Look in the list for the class Starter - pilot, if it is not selected by default as in the figure, then click on it to select it and click the "OK" button.

runConfigMac.png

You can also start by creating a launch configuration by going to Run/Run Configurations, and creating a new configuration with Thopt_Demo_Mac_Ecl_252_En project and Main class pilot.Starter. Be careful to respect lowercase and uppercase letters.Give a name to the launch configuration, and then click Apply.

 runconfigurationmac

Once these settings have been made, by clicking run, the windows of the diagram editor and the Thermoptim simulator should open.
 

Security Warning

The operating system may issue a security warning to warn you of the risks associated with running programs.

securitymac

In this case, validate the use of Eclipse.

Launching the Thermoptim Browser on Mac

To launch the Thermoptim browser on Mac, if you do not already have a Java development environment, you can use a tool available as freeware, called Eclipse. Developed in open source, Eclipse can be downloaded from the Internet at https://www.eclipse.org.

Eclipse allows you to write your classes in Java, compile them and test their integration directly into Thermoptim.

Installing Oracle's Java 1.8 Environment

In order to be launched, the Thermoptim browser needs a JAVA runtime environment containing special libraries called JavaFX.

For this software to run you must install on your system a runtime environment (the Java Runtime Environment or JRE) as well as, for Eclipse, a compilation environment (JDK). There are several, but the ones that contain JFX are those from Oracle up to version 1.8.

They can be downloaded and installed from this link, following the instructions given:

https://www.oracle.com/fr/java/technologies/javase/javase8-archive-downloads.html

Installing Eclipse

To install the development environment, go to the Eclipse website and follow the instructions.

Given the potential of Eclipse, which is a widely used environment, you will easily find sites explaining in detail how to install it for various operating systems.

When you start Eclipse, a page offers you a whole series of possible actions. In the upper right part is a "Hide" button. Click on it to hide it.

pagedemarrageeclipsemac

Importing the browser project

An Eclipse workspace allowing you to launch Thermoptim browser is available. It is called Nav_Thopt_Mac and can be downloaded from the following address:

https://www.s4e2.com/download/soft/thopt/mac/Nav_Thopt_Mac_En.zip

To import the project into Eclipse, do the following:

File/Import/General/Existing Projects into Workspace

Choose Select archive file and browse through your files until you select the Nav_Thopt_Mac_Fr.zip archive.

The Eclipse screen should be this one, once the project tree is deployed.

MacEclipse screen.png

In the left part appears the contents of the archive, with different working directories and a number of working files. If you click on a file, it opens in the right panel.

The top bar has a list of menus. The ones we'll be interested in below are Project and Run.

Selecting Working Libraries

Eclipse should load the entire project, but it may be necessary to make some settings by hand.

You must check that all the libraries needed to run the browser are declared.

It is likely that the files ending by .jar will be recognized, but it may be necessary to add by hand those ending by .zip.

To do this, select the project by clicking on it on the left side of the screen, then go to Project/Properties and select Java Build Path and the Libraries tab. The list of automatically identified libraries is displayed. To add more, click in the window and then on Add JARs and select all the files ending by .zip located at the root of the project, until you get the result of the figure.

javaBuilPathMac.png

Selection of the JDK and JRE

 By default, the JRE installed by Eclipse does not contain javaFX libraries. You must therefore declare to Eclipse to use Oracle's JRE 1.8.

To do this, go to Eclipse/Preferences, and then, in the Java/Installed JREs section, select this JRE and not the default one installed by Eclipse.


choixJRE_Mac.png

Launching the browser

 

To launch the browser, you must choose the Java class that must be executed. The browser one is called rg.espfx.EspFx, which stands for EspFx class of the rg.espfx package.

Select Run/Run As.. A Java application, or click the green icon representing a right-facing arrow. A screen of the type below is displayed, with the list of existing classes with a main() method. Look in the list for the class EspFx - rg.espfx, if it is not selected by default as in the figure, then click on it to select it and click the "OK" button.

runConfigMac.png

You can also start by creating a launch configuration by going to Run/Run Configurations, and creating a new configuration with Nav_Thopt_Mac as project and main class rg.espfx.EspFx. Be careful to respect lowercase and uppercase letters.Give a name to the launch configuration, and then click Apply.

runconfigurationmac

Once these settings are made, by clicking on Run/Run, the browser should open as well as the windows of the Thermoptim diagram editor and simulator, as shown in the figure below.

The menu at the top left of the browser screen allows you to select the guided exploration you want to study.


navThoptMac en

Security warning

The operating system may issue a security warning to warn you of the risks associated with running programs.

In this case, validate the use of Eclipse.

securityMac.png

 

Installing the Oracle JRE on Ubuntu

To run the Thermoptim browser, you need to install a JAVA runtime environment (JRE) containing special libraries called Java JFX.

Several JRE are available, but the one that contains JFX is Oracle's.

This note explains how to install it, in the latest Ubuntu LTS 22.04 release. It is largely inspired by this web page: https://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux.

Preparation

Start by checking if your Ubuntu Linux operating system is 32-bit or 64-bit. Open a terminal and run the command:

$ file /sbin/init

This will allow you to choose the type of file containing the JRE to download.

Then check which versions of Java are already installed, by the command:

$ java -version

If one already exists, you will to uninstall it.

If it's the OpenJDK/JRE, a command like this will allow you to do this:

$ sudo apt-get purge openjdk-*

Then create a directory to save the JRE files:

$ sudo mkdir /usr/local/java

JRE download

Download the Oracle JRE from this link choosing the 32-bit or 64-bit version that suits you:

https://www.java.com/download/linux_manual.jsp

As of this writing, the 64 bit file is called: jre-8u333-linux-x64.tar.gz

Copying and extracting the JRE

You can now copy this file to the /usr/local/java directory you created earlier and extract it.

To do this, go to your download directory and enter:

$ sudo cp jre-8u333-linux-x64.tar.gz /usr/local/java

Then go to the /usr/local/java directory and type:

$ sudo tar xvzf jre-8u333-linux-x64.tar.gz

Note the name of the directory where the files are extracted. Here: jre1.8.0_333.

JRE Statement

Declaring the JRE allows you to update environment variables so that the JRE can be recognized by the system.

Using a text editor you are familiar with, for example gedit, open the /etc/profile file:

$ sudo gedit /etc/profile

At the end of the file, add the following lines, replacing jre1.8.0_333 by the name of the extraction directory if different:

JRE_HOME=/usr/local/java/jre1.8.0_333

PATH=$PATH:$HOME/bin:$JRE_HOME/bin

export JRE_HOME

export PATH

Save the file and close it.

Inform the operating system:

$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.8.0_333/bin/java" 1

$ sudo update-alternatives --set java /usr/local/java/jre1.8.0_333/bin/java

When you restart Ubuntu, the environment variables will be updated permanently, but you can already launch the browser if you wish.

Browser launch

The browser can be launched from the main installation directory. There are two modes to choose from:

Directly, by right-clicking the NavThopt icon and choosing "Run as a program".

LanceurLinuxEn

Or, on the command line, by entering:

$ ./NavThopt

You can also launch Thermoptim alone by operating in a similar way, NavThopt being replaced by Thermoptim.

Thermoptim features

The Thermoptim software package provides a modeling environment integrating in a deeply interconnected way a diagram editor / synoptic screen, interactive charts, simulation functions and an optimization method based on the pinch method. Its objective is twofold: to facilitate and secure the modeling of energy conversion technologies.

Main simulator features

Thermoptim allows one to calculate the complete state of different fluids (temperature, pressure, mass volume, enthalpy, internal energy, entropy, exergy and quality), for ideal gases and condensable vapors. These fluids can undergo various transformations or processes:

  • compression and expansion, in open or closed systems. These can be adiabatic or polytropic, and are characterized by their isentropic or polytropic efficiency ;

  • combustion, also in a closed or open system, at set pressure, volume or temperature. Fuel can be introduced into the combustion chamber separately from the oxidizer, or premixed. The dissociation of the carbon dioxide can be taken into account ;

  • isenthalpic throttling ;

  • heat exchanges with other fluids: the software is able to calculate the UA product or the overall heat transfer coefficient across the surface of a heat exchanger for the following configurations: counter flow, parallel flow, cross flow or (p-n) type.

Fluid networks are represented by nodes (mixers, dividers and separators), which conserve enthalpy and mass flow-rate. The other elements (compressors, turbines, combustion chambers, heat exchangers) can be easily connected into these networks.

Fluid mixtures can be made. These are considered to be ideal gases. Specifically, Thermoptim allows one to process water vapor / gas mixtures and provides six types of processes to study them (heating, cooling, humidification, supply conditions, desiccation).

The software possesses a database of thermophysical properties of substances most commonly used in applied thermodynamics. The whole set of elements composing the system studied is grouped as a project which can be handled thanks to appropriate interfaces.

Advanced simulator features

In addition, Thermoptim incorporates very powerful advanced features for experienced users, which make it a very well suited tool for studying innovative systems with low environmental impact:

  • it is possible to make extensions of Thermoptim, by adding modules recognized by the software package, called external classes, which define elements (substances or components) that automatically appear in its screens in a transparent way for the user;

  • Thermoptim can also be coupled to external thermodynamic property servers in order to be able to take into account new fluids, including vapor mixtures;

  • it has very powerful optimization algorithms based on the pinch method;

  • it makes it possible to generate productive structures (in the sense of Valero) and to automate the establishment of the exergy balances of complex systems, which leads to thermoeconomic optimization;

  • Thermoptim can also be used to perform the technological sizing of energy installations and study their behaviour when operating in off-design conditions.

Thermoptim is thus a generic platform for modeling energy systems,capable of modeling a wide variety of systems, from the simplest to the most complex, equipped with powerful second Law analysis tools (exergy methods are increasingly considered to be among the best suited to carry out optimization studies, because they make it possible to take into account both the amounts of energy involved and their quality).

Thermoptim screenshot gallery

Here are some examples of Thermoptim's screens.

Synoptic of a regenerative reheat steam plant cycle

In this diagram, the boiler is represented in the upper part by four "exchange" processes.

At the HP turbine outlet, a divider separates the main steam flow into an extraction used to heat the water coming out of the open feedwater, while the rest of the flow is reheated and then expanded in the LP turbine.

At the bottom of the diagram, the water leaving the LP turbine is condensed, then compressed to the intermediate pressure and injected into the open feedwater where it is mixed with the extraction, which increases its temperature.

Water coming out of the open feedwater is then compressed to the maximum pressure of the cycle and directed to the economizer.

The small widget in the center of the screen summarizes the information on the energy balance of the cycle.
 

regenerative reheat steam plant cycle

Combustion process screen

Here is a combustion chamber screen configured to take into account a CO2 dissociation rate in fumes of 2%. The temperature of the fumes is set at 1065 °C and the corresponding lambda air factor is determined.

Combustion process screen

Optimization of a dual pressure combined cycle

Here is the synoptic of a dual pressure combined cycle being optimized by the pinch method. This method makes it possible to search for the configuration of the network of exchangers maximizing the electrical power produced. To do this, it draws the composite curves presented below.

At the beginning of the optimization process, the network of exchangers coupling the hot gas vein coming out of the gas turbine to the two steam circuits is not built, as in this figure. Only the "exchange" type processes of the steam circuits are defined, representing the two sets (economizer, vaporizer, superheater), and at least one gas cooling process (there are three here but it is not necessary).

Optimization of a combined cycle

When the optimization is completed, the network of exchangers is much more complex, as shown in the figure below. Some veins must be split in order to heat in parallel the steam circuits whose temperatures are close.

 

 Optimized combined cycle

 

Exergy composite curves of a dual pressure combined cycle

The red composite curve represents the cooling of the gas vein coming out of the gas turbine, and the blue the heating of water and steam in steam cycles.

The green curve is called Carnot Factor Difference Curve (CFDC). It corresponds to the difference between the two composites, and the black curve is called the Minimum Pinch Locus.

On this figure, the ordinates are expressed as Carnot factor θ = 1-T0/T, T0 being the temperature of the environment.

In this case, the irreversibilities of the system are exactly equal to the area underpinned by the green CFDC.

In this figure, the optimization method made it possible to minimize the pinch between the two curves: the green curve touches the black at the two pinch points.

Composite curves of a dual pressure combined cycle

 

Productive structures

This figure shows the correspondence between the diagram of a steam cycle and its productive structure.

Such a productive structure is interpreted as follows: the steam power plant is a machine which receives an external exergy input in the boiler, and by internal recycling, exergy is provided to the pump, which are the two production units in the left of the screen.

This exergy is partly converted into mechanical form in the turbine and partly dissipated in the condenser.

The net work is the fraction of mechanical power not recycled.

Correspondence between diagram and productive structure

Exergy balance sheets

This figure shows the exergy balance of a combined cycle automatically established by Thermoptim thanks to the productive structure of the project.

 Exergy balance sheets

Air treatment cycle

Here is the representation in the psychrometric chart of the air, of a summer air conditioning cycle. The outside air is first mixed with some of the indoor air that is recycled. The mixture is then cooled and condensed in a cold battery until its absolute humidity is equal to that corresponding to the supply conditions. The cooled air is then slightly warmed to lead to the desired comfort conditions.

 

Air treatment cycle

Example catalog

Example catalogs can be prepared to facilitate the loading of project and schema files.

This corresponds to Chapter 3 of the book Energy systems, 2nd Edition. On the image is selected the second guided exploration of Chapter 3.

Sample Catalog

Guided Explorations

The Thermoptim browser allows you to visualize guided explorations. Here is the tab presenting processes in the exploration dedicated to the discovery of Thermoptim.
 
Thermoptim browser
 

Legal notice

Identity

Website name:
S4E2
Simulation Software Solutions for Science Education and Engineering

Address: https://www.s4e2.com
Owner: Renaud Gicquel
Responsible for publication: Renaud Gicquel | Contact: This email address is being protected from spambots. You need JavaScript enabled to view it.

Design and production: Renaud Gicquel
Animation: Renaud Gicquel
Hosting: PulseHeberg

Terms of use

Use of this site implies full acceptance of the general conditions of use described below. These conditions of use are likely to be modified or supplemented at any time.

Information

The information and documents on the site are presented for information only, are not exhaustive, and cannot engage the responsibility of the site owner.

The owner of the site can not be held responsible for direct or indirect damage resulting from access to the site.

Interactivity


The users of the site can possibly post content there, appearing on the site in dedicated spaces (in particular via the comments). The deposited content remains under the responsibility of their authors, who fully assume full legal responsibility.

The site owner reserves the right to withdraw without notice and without justification any content posted by users that does not meet the site's code of ethics or the legislation in force.

Intellectual property


Unless otherwise stated, all elements accessible on the site (texts, images, graphics, logo, icons, sounds, software, etc.) remain the exclusive property of their authors, with regard to intellectual property rights or rights of 'usage1.

Any reproduction, representation, modification, publication, adaptation of all or part of the elements of the site, whatever the means or process used, is prohibited without the prior written consent of the author23.

Any unauthorized use of the site or any of the elements it contains is considered to constitute an infringement and may be prosecuted4.

The brands and logos reproduced on the site are registered by the companies which own them.

Links


Outgoing links


The site owner declines all responsibility and is not bound by the referencing via hypertext links of third-party resources on the Internet, both with regard to their content and their relevance.

Incoming links


The site owner authorizes hypertext links to any of the pages on this site, provided that they open a new window and are presented in an unequivocal manner in order to avoid:

  • any risk of confusion between the citing site and the site owner
  • as well as any tendentious presentation, or contrary to the laws in force.

The site owner reserves the right to request the removal of a link if he considers that the source site does not comply with the rules thus defined.


Confidentiality


As indicated in page Privacy policy, all users have the right to access, rectify and oppose personal data concerning them, by making a written and signed request, accompanied by proof of identity5678.


Legal notices provided by WebExpress - Version 1.5 - Free use under Creative Commons License CC BY-NC-ND 3.0 EN / creativecommons.org.
 

1Articles L111-1 et suivants du Code de la Propriété Intellectuelle du 1er juillet 1992

2Article 41 de la loi du 11 mars 1957

3Article L. 226-13 du Code pénal et la Directive Européenne du 24 octobre 1995

4Articles L.335-2 et suivants du Code de Propriété Intellectuelle

5Loi n° 78-87 du 6 janvier 1978, modifiée par la loi n° 2004-801 du 6 août 2004, relative à l’informatique, aux fichiers et aux libertés

6Articles 38 et suivants de la loi 78-17 du 6 janvier 1978 relative à l’informatique, aux fichiers et aux libertés

7Loi du 1er juillet 1998 transposant la directive 96/9 du 11 mars 1996 relative à la protection juridique des bases de données

8Loi n° 2004-801 du 6 août 2004

  1. About us
  2. Terms and conditions of sale
  3. Privacy policy
  4. Prices

 

Select your language

  • Français (France)
  • English (United Kingdom)
  • Welcome
  • Thermoptim
    • Thermoptim applications
    • Thermoptim features
    • Getting started with Thermoptim
    • Different versions of Thermoptim
    • Modelling support
    • Download
  • Interactive charts
  • Commercial distribution
    • Prices
    • Request for commercial proposal
    • Terms and conditions of sale
    • Legal notice
  • About us
  • Privacy policy
  • Site map