Skip to main content

Note: This software is in a pre-alpha state.

The main documentation for this package is located at www.sempy.org , but this page offers a minimal set of information to get started using Sempy.

About

Sempy is a numerical software package designed to solve partial differential equations arising from the analysis of fluid flow and heat transfer. It is written in Python and carries the intuitive syntax of this language. Furthermore, computational meshes can be imported from the Gmsh mesh generator, making Sempy flexible towards handling complex geometries.

Getting started

The quickest way to get started using the Sempy package is to install it with easy_install This can be achieved by e.g. typing:

$ easy_install sempy

on the command line. This requires an internet connection to work. Another possibility is to download the latest version as a zip or tar.gz file and then install it with:

$ python setup.py install

It might be necessary to use super user privileges on the above commands. For instance:

$ sudo easy_install sempy

Aslo, it might be necessary to run:

$ sudo easy_install --upgrade sempy

on a regular basis to obtain updated versions.

An example script

Solve the Poisson problem with a simple script:

import sempy

X = sempy.Space( filename = 'square', n = 4, dim = 2 )
A = sempy.operators.Laplacian( X ).matrix

f = sempy.Function( X, basis_coeff = 1.0 )
b = sempy.operators.Mass( X ).action_local( f.basis_coeff )
u = sempy.Function( X, basis_coeff = 0.0 )

[v, flag] = sempy.linsolvers.Krylov().solve( A, b, u.glob() )
u.basis_coeff = X.mapping_q( v )
u.plot()

Release files for sempy 0.0.18

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

Source distribution (sdist)

Source distribution for sempy 0.0.18
File Size Uploaded
sempy-0.0.18.tar.gz 605.6 kB Details

Release files / sempy-0.0.18.tar.gz

Download URL sempy-0.0.18.tar.gz
Size 605.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d313d3ff732764cf0eb4f071bb365d38acb47a2ed04d17059453402300b14338
BLAKE2b-256 checksum
How to use checksums
d0bfc0403c67247995e1e62aed4429146af1ec3e9b1fbeed49c947fa50980610
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.18 This release

1 release file

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