Skip to content

Commit

Permalink
New version: based on python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
srebughini committed Oct 21, 2019
1 parent 0b419f8 commit 8f676fd
Show file tree
Hide file tree
Showing 56 changed files with 48 additions and 47 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ Asali has been tested on Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Windows 10, Windows
##### 2.1.1 Pre-requisites installation
The Linux based external libraries can be installed by typing these commands:
`sudo apt-get update`
`sudo apt-get install git g++ gfortran python scons libboost-dev cython python-dev python-numpy python-numpy-dev python-setuptools cython python3 python3-dev python3-setuptools python3-numpy`
`sudo apt-get install scons git python3-ruamel.yaml python3-yaml g++ gfortran python libboost-dev cython python-dev python-numpy python-numpy-dev python-setuptools python3 python3-dev python3-setuptools python3-numpy cython3`
`sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1`

##### 2.1.2 How to install Gtkmm libraries
[Gtkmm](https://www.gtkmm.org/en/) can be downloaded with the following command:
Expand Down
Binary file added Ubuntu/images/BatchLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/BatchLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/BigLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/BigLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/CstrLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/CstrLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/Het1DLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/Het1DLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/Icon.tiff
Binary file not shown.
Binary file added Ubuntu/images/KineticLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/KineticLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/KineticSchemeLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/KineticSchemeLogo.tiff
Binary file not shown.
Binary file removed Ubuntu/images/Logo.png
Binary file not shown.
Binary file added Ubuntu/images/PelletLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/PelletLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/Ph1DLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/Ph1DLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/PressureLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/PressureLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/Reaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/Reaction.tiff
Binary file not shown.
Binary file added Ubuntu/images/ReactorsEquations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/ReactorsEquations.tiff
Binary file not shown.
Binary file added Ubuntu/images/RegressionExponential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/RegressionExponential.tiff
Binary file not shown.
Binary file added Ubuntu/images/RegressionLinear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/RegressionLinear.tiff
Binary file not shown.
Binary file added Ubuntu/images/RegressionLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/RegressionLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/SmallLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/SmallLogo.tiff
Binary file not shown.
Binary file added Ubuntu/images/names.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Ubuntu/images/names.tiff
Binary file not shown.
12 changes: 6 additions & 6 deletions Ubuntu/src/Asali.C
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ namespace ASALI
"<b>\nor select the default one (database/data.xml)</b>"
"\n\nLoading might take several minutes, depending"
"\non your system performances."),
bigLogo_("images/BigLogo.tiff"),
smallLogo1_("images/SmallLogo.tiff"),
smallLogo2_("images/SmallLogo.tiff"),
smallLogo3_("images/SmallLogo.tiff"),
smallLogo4_("images/SmallLogo.tiff")
bigLogo_("images/BigLogo.png"),
smallLogo1_("images/SmallLogo.png"),
smallLogo2_("images/SmallLogo.png"),
smallLogo3_("images/SmallLogo.png"),
smallLogo4_("images/SmallLogo.png")
{
#include "shared/Beer.H"
#include "shared/BeerShort.H"
Expand All @@ -96,7 +96,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
this->add(grid_);
Expand Down
4 changes: 2 additions & 2 deletions Ubuntu/src/asaliCatalystProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
namespace ASALI
{
asaliCatalystProperties::asaliCatalystProperties()
: het1dLogo_("images/Het1DLogo.tiff"),
: het1dLogo_("images/Het1DLogo.png"),
mainBox_(Gtk::ORIENTATION_VERTICAL),
rhoLabel_("Density"),
condLabel_("Thermal conductivity"),
Expand All @@ -53,7 +53,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: catalyst input");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
mainBox_.set_halign(Gtk::ALIGN_START);
Expand Down
12 changes: 6 additions & 6 deletions Ubuntu/src/asaliKineticMaker.C
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ namespace ASALI
typeLabel1_("Type"),
recapSpeciesLabel_("Species"),
recapReactionLabel_("Reactions"),
logo1_("images/KineticSchemeLogo.tiff"),
logo2_("images/KineticSchemeLogo.tiff"),
logo3_("images/KineticSchemeLogo.tiff"),
logo4_("images/KineticSchemeLogo.tiff"),
logo5_("images/KineticSchemeLogo.tiff"),
logo1_("images/KineticSchemeLogo.png"),
logo2_("images/KineticSchemeLogo.png"),
logo3_("images/KineticSchemeLogo.png"),
logo4_("images/KineticSchemeLogo.png"),
logo5_("images/KineticSchemeLogo.png"),
NR_(0),
NC_(0),
restart_(true)
Expand All @@ -96,7 +96,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Kinetic scheme");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
this->add(reactionNumberBox_);
Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/asaliPlot.C
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: plotting");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid

Expand Down
10 changes: 5 additions & 5 deletions Ubuntu/src/asaliProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
namespace ASALI
{
asaliProperties::asaliProperties()
: batchLogo_("images/BatchLogo.tiff"),
ph1dLogo_("images/Ph1DLogo.tiff"),
het1dLogo_("images/Het1DLogo.tiff"),
pelletLogo_("images/PelletLogo.tiff"),
: batchLogo_("images/BatchLogo.png"),
ph1dLogo_("images/Ph1DLogo.png"),
het1dLogo_("images/Het1DLogo.png"),
pelletLogo_("images/PelletLogo.png"),
mainBox_(Gtk::ORIENTATION_VERTICAL),
nameLabel_("Name"),
mwLabel_("Molecular weight"),
Expand All @@ -62,7 +62,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: properties input");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
mainBox_.set_halign(Gtk::ALIGN_START);
Expand Down
6 changes: 3 additions & 3 deletions Ubuntu/src/batchReactor.C
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ namespace ASALI
timeLabel_("Integration time"),
saveLabel_("Save solution every"),
energyLabel_("Energy"),
logo1_("images/BatchLogo.tiff"),
logo2_("images/BatchLogo.tiff"),
logo1_("images/BatchLogo.png"),
logo2_("images/BatchLogo.png"),
plotButtonBool_(false)
{

Expand All @@ -70,7 +70,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Batch reactor");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
this->add(mainBox_);
Expand Down
6 changes: 3 additions & 3 deletions Ubuntu/src/catalyticPellet.C
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ namespace ASALI
pelletTypeLabel_("Pellet shape"),
modelTypeLabel_("Diffusion model"),
poreLabel_("Pore diameter"),
logo1_("images/PelletLogo.tiff"),
logo2_("images/PelletLogo.tiff"),
logo1_("images/PelletLogo.png"),
logo2_("images/PelletLogo.png"),
pelletType_("none"),
modelType_("none"),
modelBool_(false),
Expand All @@ -79,7 +79,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Catalytic pellets");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
this->add(mainBox_);
Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/catalyticReactors.C
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Catalytic reactors");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");
}

//Species input menu
Expand Down
4 changes: 2 additions & 2 deletions Ubuntu/src/chemkinConverter.C
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace ASALI
output_("Convert"),
help_("Help"),
exit_("Exit"),
logo_("images/SmallLogo.tiff")
logo_("images/SmallLogo.png")
{

#include "shared/Beer.H"
Expand All @@ -57,7 +57,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: CHEMKIN converter");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");


//Adding logo
Expand Down
6 changes: 3 additions & 3 deletions Ubuntu/src/cstrReactor.C
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ namespace ASALI
timeLabel_("Integration time"),
saveLabel_("Save solution every"),
energyLabel_("Energy"),
logo1_("images/CstrLogo.tiff"),
logo2_("images/CstrLogo.tiff"),
logo1_("images/CstrLogo.png"),
logo2_("images/CstrLogo.png"),
plotButtonBool_(false)
{

Expand All @@ -71,7 +71,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: CST reactor");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
this->add(mainBox_);
Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/equilibriumCalculator.C
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Equilibrium calculator");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");
this->input();
}

Expand Down
6 changes: 3 additions & 3 deletions Ubuntu/src/het1dReactor.C
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ namespace ASALI
honeyCombCPSILabel_("CPSI"),
honeyCombWallThicknessLabel_("Wall thickness"),
honeyCombDuctLabel_("Duct section"),
logo1_("images/Het1DLogo.tiff"),
logo2_("images/Het1DLogo.tiff"),
logo1_("images/Het1DLogo.png"),
logo2_("images/Het1DLogo.png"),
reactorType_("none"),
tubularBool_(false),
honeyCombBool_(false),
Expand All @@ -88,7 +88,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: 1D HET reactor");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
this->add(mainBox_);
Expand Down
4 changes: 2 additions & 2 deletions Ubuntu/src/ph1dReactor.C
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ namespace ASALI
pointsLabel_("Number of points"),
inertLabel_("Inert specie"),
resolutionLabel_("Resolution type"),
logo1_("images/Ph1DLogo.png"),
logo2_("images/Ph1DLogo.png"),
logo1_("images/Ph1DLogo.tiff"),
logo2_("images/Ph1DLogo.tiff"),
plotButtonBool_(false)
{

Expand Down
6 changes: 3 additions & 3 deletions Ubuntu/src/pressureDrops.C
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ namespace ASALI
honeyCombWallThicknessLabel_("Wall thickness"),
tubularDpLabel_("Bird R. B. et al. (1960)"),
honeyCombDpLabel_("Bird R. B. et al. (1960)"),
logo1_("images/PressureLogo.tiff"),
logo2_("images/PressureLogo.tiff"),
logo1_("images/PressureLogo.png"),
logo2_("images/PressureLogo.png"),
reactorType_("none"),
tubularBool_(false),
honeyCombBool_(false),
Expand Down Expand Up @@ -98,7 +98,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Pressure drops");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");
doneButton_.set_label("Next");
this->input();
}
Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/runBar.C
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");
this->add(mainBox_);
mainBox_.set_spacing(10);
mainBox_.pack_start(solvingLabel_,Gtk::PACK_SHRINK);
Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/speciesPopup.C
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: species names");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");
this->add(mainBox_);
mainBox_.pack_start(scrolledWindow_);
scrolledWindow_.add(speciesImage_);
Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/thermoTransportProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Thermodynamic and transport properties");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");
this->input();
}

Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/transportProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Transport properties");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

//Add background grid
this->add(inputGrid_);
Expand Down
2 changes: 1 addition & 1 deletion Ubuntu/src/vacuumProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace ASALI
this->set_border_width(15);
this->set_title("ASALI: Vacuum properties");
this->set_position(Gtk::WIN_POS_CENTER_ALWAYS);
this->set_icon_from_file("images/Icon.tiff");
this->set_icon_from_file("images/Icon.png");

this->add(grid_);

Expand Down
Binary file added Windows/Asali-setup.exe
Binary file not shown.

0 comments on commit 8f676fd

Please sign in to comment.