Skip to main content

Solving the linear theory of the Thermal Farley-Buneman Instability (TFBI).

Project description

tfbi_theory

tfbi_theory solves the linear theory of the Thermal Farley-Buneman Instability (TFBI).

Examples

(1) Solve TFBI theory given physical parameters (ds0).

import tfbi_theory as tt
ds0 = xr.Dataset(...)  # provide a Dataset with all required physical values...
kp = tt.kPickerLowres(ds0)
dsk = kp.get_ds()   # copy of ds0, but with ds['k'] = k from kPicker.
drel = tt.TfbiDisprelC.from_ds(dsk)
dsR = drel.solve()  # copy of dsk, but with ds['omega'] = solution to TFBI theory!

(2) Solve TFBI theory at values from a PlasmaCalculator object from PlasmaCalcs

import tfbi_theory as tt
import PlasmaCalcs as pc
cc = ... # any PlasmaCalculator object from PlasmaCalcs.
ds0 = cc.tfbi_ds()  # calls the PlasmaCalculator to load all required values
kp = tt.kPickerLowres(ds0)
dsk = kp.get_ds()   # copy of ds0, but with ds['k'] = k from kPicker.
drel = tt.TfbiDisprelC.from_ds(dsk)
dsR = drel.solve()  # copy of dsk, but with ds['omega'] = solution to TFBI theory!

(3) Solve TFBI theory at values from a PlasmaCalculator object from PlasmaCalcs (simplified)

import PlasmaCalcs as pc
cc = ... # any PlasmaCalculator object from PlasmaCalcs.
solver = cc.tfbi_solver()  # see help(solver) for more details.
solver.solve()

Installation

You can install the latest release via pip:

pip install tfbi_theory

Or you can install directly from git:

cd directory_where_you_want_this_code_to_be_installed
git clone https://gitlab.com/Sevans7/tfbi_theory
cd tfbi_theory  # into the directory where the pyproject.toml can be found.
pip install -e .   # you can drop the "-e" if you will never edit tfbi_theory.

License

Licensed under the MIT License; see also: LICENSE

Project status

Completed, more or less. Not really under active development.

Contributing

If you are interested in contributing, please feel free to reach out. I might be happy to discuss or work with you, depending on your goals and ideas. However, I am not actively looking for contributions at this time; the relevant project has been completed and I am not planning to further improve the code at this point.

If I am unavailable or you prefer to just get started, please feel free to instead just create your own fork of the code!

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

tfbi_theory-2025.6.0.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

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

tfbi_theory-2025.6.0-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

Details for the file tfbi_theory-2025.6.0.tar.gz.

File metadata

  • Download URL: tfbi_theory-2025.6.0.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for tfbi_theory-2025.6.0.tar.gz
Algorithm Hash digest
SHA256 9b28552f29e4c07ab56d1d3d195683cd8e196fa60331129e02f8bea243539dc2
MD5 ceba8a26fd60b35bc3ceedf08cec2446
BLAKE2b-256 42ed1fc8ce4b2abf9c41e025dbea0d518210bbe838bea712d426a36045382f12

See more details on using hashes here.

File details

Details for the file tfbi_theory-2025.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tfbi_theory-2025.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a84784395a1e836da8e1047f60c817ccf54bfdba7c0f161b4551cd3014a7931a
MD5 d2c610f407e6e1df80d7a70abab388a6
BLAKE2b-256 eb687a5910b4087fad59d280c617003d6308640a2ea0e0229edc8373679e0819

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