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-2026.7.0.tar.gz (51.5 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-2026.7.0-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tfbi_theory-2026.7.0.tar.gz
Algorithm Hash digest
SHA256 2f3d68c6827997e25adf4281e39d331ffd211b494df13beed49246c04408b3e7
MD5 c17af30345ab4acf23fc8d30ae023736
BLAKE2b-256 32c74813292737e0b3084fe3e57314eb38b13cbe085754bfc93cda16f9947745

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tfbi_theory-2026.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1887a22fea9c5991e892535e1fef5648db378947f05ae9f801f1615cc3308c2
MD5 5a3d8def65c2b84b68f2c4b1fbf88553
BLAKE2b-256 89aa558c634fca6eb1b64d01211cafa1679c60fcbf124f19e885f065e04c67d5

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