Skip to content

orestis42/current_density_visualization

Repository files navigation

Exercise in Current Density Visualization

Figure

Overview

A 3D visualization of a uniform arrangement along the z-axis containing the following electric current distributions:

  • In the region of space where $x > 0$ and $0 < y < h$, the spatial distribution with density: $$\mathbf{J} = A \left[ \left( 1 - e^{-bx} \right) \hat{x} + b(h - y)e^{-bx} \hat{y} \right]$$

  • In the section of the plane $y = 0$ where $x > 0$, the surface distribution with density: $$\mathbf{K} = -Ah \left( 1 - e^{-bx} \right) \hat{x}$$

where $A$, $b$, and $h$ are known positive constants. The entire space has magnetic permeability $\mu_0$, while the regions where $x < 0$, $y < 0$, or $y > h$ are non-conductive.

Installation

To install the necessary dependencies, use pipenv. It is recommended to use a virtual environment to manage your dependencies.

Clone the repository.

git clone [email protected]:orestis42/current_density_visualization.git

Navigate to the project directory.

cd current_density_visualization

Install dependencies using pipenv.

pipenv install

Build the Cython extension.

pipenv run python setup.py build_ext --inplace

Usage

pipenv run visualize

About

Exercise in Current Density Visualization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published