Skip to main content

Hydrodinamical equation solver

Project description

HyDES

Concept

HydroDinamical Equation Solver Code to numerically solve the hydrodynamical equations in 2 dimensions in a regular rectangular mesh. The code performs a first order staggered Lax-Friedrich scheme in time and a central first order derivative in space. There are several initial conditions to test and a some boundary conditions, like 0 derivative in the boundaries or periodic ones. The code is impleted originaly in IDL in may 2019 and it was transcripted to python in december 2021.

Installation

To install the library just pip install it with:

pip install hydes

Getting started

To start simulating your models just load the library, load the parameters (template loaded with load_sample_params()) compute the desired initial conditions with a perturbation and simulate the evolution of the sistem like:

import hydes as hd

params = hd.load_sample_params()
pert, pert_vx, pert_vy = hd.sample_perturbation()

hd.run_sim(params, pert, pert_vx, pert_vy)

if you also want to have a movie of the saved plots you can do:

import hydes as hd
from animation import animation

params = hd.load_sample_params()
pert, pert_vx, pert_vy = hd.sample_perturbation()

reults_path = hd.run_sim(params, pert, pert_vx, pert_vy)
frames = os.path.join(os.path.join(reults_path, 'plots'), '*')
animation(frames=frames, path_out=reults_path)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydes-0.0.5.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydes-0.0.5-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file hydes-0.0.5.tar.gz.

File metadata

  • Download URL: hydes-0.0.5.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for hydes-0.0.5.tar.gz
Algorithm Hash digest
SHA256 16e7e91c7d011273e6c3d8f39bf42f1dffdbc29a5c65384de4384555aceb1d82
MD5 46872c57beff1dc44d196554597e098b
BLAKE2b-256 ce651e79aa97ac175a8c70a95319fd3c52c064b5e393de07a06ea354c637cdd6

See more details on using hashes here.

File details

Details for the file hydes-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: hydes-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for hydes-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 425053b1bf6cf5f10924f939617670c06e9c9b7b98d35e5939bcaa1aa9c93773
MD5 9a5a4318ef08e372bafd47136fb48b49
BLAKE2b-256 7014760442407cf3a801d7e0076088fd41865b6fa0eea49330254484eaf4b3b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page