Skip to main content

Introduction

This repository contains Python wrappers for running the Solstice ray-tracing software, which can be used for the simulation of concentrating solar-thermal power (CSP) systems. The repository also contains copies of the post-processing tools for Solstice, which are required by our Python wrappers. Finally, this repository contains code to generate an easy-to-use Windows installer for Solstice.

github

1. solsticepy

See the documentation for solsticepy at Read The Docs.

2. Install Solstice

2.1 Windows

  • For Windows (Windows 10, 64-bit), use our 64-bit binary installer to install Solstice. The resulting files will be located in c:\Program Files\solstice-0.9.0 (with the appropriate version number). Note that the Windows installer also includes the post-processing tools.

2.2 Linux

  • In Linux system (eg Ubuntu 18.04 64-bit), you need

(1) download the binary tarball from the Solstice homepage.

(2) set up the post-processing tools.

2.2.1 Install solstice

### download and extract:
cd ~
wget "https://www.meso-star.com/projects/solstice/downloads/Solstice-0.9.0-GNU-Linux64.tar.gz"
tar zxvf Solstice-0.9.0-GNU-Linux64.tar.gz
### add solstice to your PATHs:
export PATH=$PATH:~/Solstice-0.9.0-GNU-Linux64/bin
export LD_LIBRARY_PATH=$LB_LIBRARY_PATH:~/Solstice-0.9.0-GNU-Linux64/lib
### check that it runs:
solstice --help

Note that you can add the two export commands to your ~/.profile file in order that solstice remains available next time you log in.

2.2.2 Install the post-processing program

Perform the following comments to clone the solsticepy package, and compile the post-processing program by scons

cd ~
git clone https://github.com/anustg/solstice-scripts.git
cd solstice-scripts/postproc
scons

To install the post-processing programs in a user-defined path, replace the last step by the following comment, and then add the /user/defined/path to system path if needed.

scons INSTALL_PREFIX=/user/defined/path install
export PATH=$PATH:/user/defined/path

3. Install solsticepy

The instructions below give easy instructions for end-users. If you are interested in hacking/developing/changing solsticepy code, see HACKING instead.

Windows

  • First install Python if you have not done so already. Choose the latest "Windows x86-64 executable installer" of the latest Python 3 release for Windows.

  • If you added Python to your PATH during installation you can just open a command prompt and type pip3 install solsticepy and that should download and install everything you need.

  • If you didn't add Python to your PATH, you can do the following:

    • Create a text file install.py in your home directory with the following content:
# put this file in your home directory and name it install.py
import sys, subprocess
subprocess.check_call([sys.executable,"-m","pip","install","solsticepy"])
  • Open a command prompt (type 'cmd' in the Start menu), then type
install.py
  • You should see Python downloading and installing 'solsticepy' from the PyPI servers.

4. Install Paraview

Pavaview is a software to visualise Solstice simulation scene.

  • Be sure to install a version 4 release of Paraview. Version 5 was not stable on Windows when we tested it (Apr 2020).

  • On Windows:

  • On Linux (Ubuntu 18.04):

    • sudo apt install paraview should be all you need.

5. Running an example:

  • This section yet to be completed

  • Download our Zip file from this page

  • Extract the folder example to your home directory

  • Open a command prompt, navigate to your example directory, then run the run.py script:

cd example
run.py
  • You should see various output, followed by "Completed successfully". Also note the output what says "Case directory is...".

  • In the case directory, you will file output files including .csv files that can be opened using Excel, and .vtk files that contain 3D graphics can be opened in Paraview.

References

Metadata

Release files for solsticepy 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solsticepy 0.4.0
File Size Uploaded
solsticepy-0.4.0.tar.gz 57.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for solsticepy 0.4.0
File Interpreter ABI Platform
solsticepy-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 129.8 kB

Release files / solsticepy-0.4.0.tar.gz

Download URL solsticepy-0.4.0.tar.gz
Size 57.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f9bc6dec71fd65ff330ac7254980df2bd5a2951584b6c2ab1cfe85ba5ba7814f
BLAKE2b-256 checksum
How to use checksums
918053125e3ab7c6b1799d1d1159918b75010a84d044ecd25b4ea33e37071afb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / solsticepy-0.4.0-py3-none-any.whl

Download URL solsticepy-0.4.0-py3-none-any.whl
Size 72.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6159aa9754ce07acaa54a30b8f09a215f96b7678301b237d7d893771b053f9f1
BLAKE2b-256 checksum
How to use checksums
eff36afdf15381dcc7827d122e51c178701ac424ca7853977ca99e2e5ed5b371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.2

2 release files

0.3.1

1 release file

0.3

2 release files

0.2

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page